Class AutoGrantCriterion
java.lang.Object
com.github.darksoulq.abyssallib.world.advancement.criterion.AutoGrantCriterion
- All Implemented Interfaces:
AdvancementCriterion
An advancement criterion that automatically evaluates to true.
Used for granting initial root advancements or immediate rewards.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec<AutoGrantCriterion> The codec used for serializing and deserializing the auto-grant criterion.static final CriterionType<AutoGrantCriterion> The registered type definition for the auto-grant criterion. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AdvancementCriterion
isMet
-
Field Details
-
CODEC
The codec used for serializing and deserializing the auto-grant criterion. -
TYPE
The registered type definition for the auto-grant criterion.
-
-
Constructor Details
-
AutoGrantCriterion
public AutoGrantCriterion()Constructs a new AutoGrantCriterion.
-
-
Method Details
-
getType
Description copied from interface:AdvancementCriterionRetrieves the type definition associated with this specific criterion instance. This is used for identifying the logic and serialization codec.- Specified by:
getTypein interfaceAdvancementCriterion- Returns:
- The
CriterionTypecharacterizing this instance.
-
isMet
public boolean isMet(org.bukkit.entity.Player player) Always evaluates to true.- Specified by:
isMetin interfaceAdvancementCriterion- Parameters:
player- The player to evaluate.- Returns:
- true.
-