Class AdvancementEvent.AdvancementEarnEvent

Enclosing class:
AdvancementEvent

public static class AdvancementEvent.AdvancementEarnEvent extends AdvancementEvent
Fired when the player earns an advancement. An advancement is earned once its requirements are complete.

Note that advancements may be hidden from the player or used in background mechanics, such as recipe advancements for unlocking recipes in the recipe book.

This event is not cancellable, and does not have a result.

This event is fired on the main Forge event bus, only on the logical server.

See Also:
  • Constructor Details

    • AdvancementEarnEvent

      public AdvancementEarnEvent(Player player, Advancement earned)
  • Method Details