public class ApplicableEffectProperty 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 |
---|
ApplicableEffectProperty(Set<PotionEffect> value)
Creates a
ApplicableEffectProperty with a specific set of PotionEffect s. |
ApplicableEffectProperty(Set<PotionEffect> value,
Property.Operator op)
Creates a
ApplicableEffectProperty 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, toString
public ApplicableEffectProperty(@Nullable Set<PotionEffect> value)
ApplicableEffectProperty
with a specific set of PotionEffect
s.value
- The potion effectspublic ApplicableEffectProperty(@Nullable Set<PotionEffect> value, Property.Operator op)
ApplicableEffectProperty
with a specific set of PotionEffect
s.value
- The potion effectsop
- The operator to use when comparing against other propertiespublic int compareTo(Property<?,?> o)