public class ApplicableEffect extends AbstractProperty<String,Set<PotionEffect>>
Property
that applies a set of
PotionEffect
s on use, consumption, or on equip. The properties
are not mutable, but can be compared against.
Examples of these properties include: hunger from eating zombie flesh, regeneration from a golden apple, etc.
Property.Operator
operator, value
Constructor and Description |
---|
ApplicableEffect(Set<PotionEffect> value)
Creates a
ApplicableEffect with a specific set of PotionEffect s. |
ApplicableEffect(Set<PotionEffect> value,
Property.Operator op)
Creates a
ApplicableEffect with a specific set of PotionEffect s. |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Property<?,?> o) |
equals, getDefaultKey, getDefaultOperator, getKey, getOperator, getValue, hashCode, hashCodeOf, matches
public ApplicableEffect(@Nullable Set<PotionEffect> value)
ApplicableEffect
with a specific set of PotionEffect
s.value
- The potion effectspublic ApplicableEffect(@Nullable Set<PotionEffect> value, Property.Operator op)
ApplicableEffect
with a specific set of PotionEffect
s.value
- The potion effectsop
- The operator to use when comparing against other propertiespublic int compareTo(Property<?,?> o)