public class ApplicableEffectProperty extends AbstractProperty<String,Set<PotionEffect>>
Property that applies a set of
PotionEffects 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.Operatoroperator, value| Constructor and Description |
|---|
ApplicableEffectProperty(Set<PotionEffect> value)
Creates a
ApplicableEffectProperty with a specific set of PotionEffects. |
ApplicableEffectProperty(Set<PotionEffect> value,
Property.Operator op)
Creates a
ApplicableEffectProperty with a specific set of PotionEffects. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Property<?,?> o) |
equals, getDefaultKey, getDefaultOperator, getKey, getOperator, getValue, hashCode, hashCodeOf, matches, toStringpublic ApplicableEffectProperty(@Nullable Set<PotionEffect> value)
ApplicableEffectProperty with a specific set of PotionEffects.value - The potion effectspublic ApplicableEffectProperty(@Nullable Set<PotionEffect> value, Property.Operator op)
ApplicableEffectProperty with a specific set of PotionEffects.value - The potion effectsop - The operator to use when comparing against other propertiespublic int compareTo(Property<?,?> o)