Class AutoGrantCriterion

java.lang.Object
com.github.darksoulq.abyssallib.world.advancement.criterion.AutoGrantCriterion
All Implemented Interfaces:
AdvancementCriterion

public class AutoGrantCriterion extends Object implements AdvancementCriterion
An advancement criterion that automatically evaluates to true. Used for granting initial root advancements or immediate rewards.
  • Field Details

  • Constructor Details

    • AutoGrantCriterion

      public AutoGrantCriterion()
      Constructs a new AutoGrantCriterion.
  • Method Details

    • getType

      public CriterionType<?> getType()
      Description copied from interface: AdvancementCriterion
      Retrieves the type definition associated with this specific criterion instance. This is used for identifying the logic and serialization codec.
      Specified by:
      getType in interface AdvancementCriterion
      Returns:
      The CriterionType characterizing this instance.
    • isMet

      public boolean isMet(org.bukkit.entity.Player player)
      Always evaluates to true.
      Specified by:
      isMet in interface AdvancementCriterion
      Parameters:
      player - The player to evaluate.
      Returns:
      true.