Class PotionEffectCriterion
java.lang.Object
com.github.darksoulq.abyssallib.world.advancement.criterion.PotionEffectCriterion
- All Implemented Interfaces:
AdvancementCriterion
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec<PotionEffectCriterion> static final CriterionType<PotionEffectCriterion> -
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
-
TYPE
-
-
Constructor Details
-
PotionEffectCriterion
public PotionEffectCriterion(org.bukkit.potion.PotionEffectType effect)
-
-
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) Description copied from interface:AdvancementCriterionEvaluates whether the player currently meets the conditions of this criterion. This is typically used for continuous or state-based checks.- Specified by:
isMetin interfaceAdvancementCriterion- Parameters:
player- ThePlayerto evaluate.- Returns:
- True if the condition is met, false otherwise.
-