Class ItemCraftedCriterion

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

public class ItemCraftedCriterion extends Object implements AdvancementCriterion
  • Field Details

  • Constructor Details

    • ItemCraftedCriterion

      public ItemCraftedCriterion(net.kyori.adventure.key.Key itemId, int amount)
  • 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)
      Description copied from interface: AdvancementCriterion
      Evaluates whether the player currently meets the conditions of this criterion. This is typically used for continuous or state-based checks.
      Specified by:
      isMet in interface AdvancementCriterion
      Parameters:
      player - The Player to evaluate.
      Returns:
      True if the condition is met, false otherwise.