Class WrapperPlayServerUpdateAttributes.Property
java.lang.Object
com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerUpdateAttributes.Property
- Enclosing class:
WrapperPlayServerUpdateAttributes
-
Constructor Summary
ConstructorsConstructorDescriptionProperty(Attribute attribute, double value, List<WrapperPlayServerUpdateAttributes.PropertyModifier> modifiers) Property(String key, double value, List<WrapperPlayServerUpdateAttributes.PropertyModifier> modifiers) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoiddoubledoublegetKey()Deprecated.doublegetValue()booleanremoveModifier(ResourceLocation modifierId) booleanremoveModifier(ResourceLocation modifierId, UUID modifierUId) booleanremoveModifier(UUID modifierId) booleanvoidsetAttribute(Attribute attribute) voidsetDirty()voidDeprecated.voidvoidsetValue(double value)
-
Constructor Details
-
Property
@Deprecated public Property(String key, double value, List<WrapperPlayServerUpdateAttributes.PropertyModifier> modifiers) Deprecated. -
Property
public Property(Attribute attribute, double value, List<WrapperPlayServerUpdateAttributes.PropertyModifier> modifiers)
-
-
Method Details
-
calcValue
public double calcValue() -
calcValue0
public double calcValue0() -
getAttribute
-
setAttribute
-
getKey
Deprecated. -
setKey
Deprecated. -
getValue
public double getValue() -
setValue
public void setValue(double value) -
addModifier
-
removeModifier
-
removeModifier
-
removeModifier
-
removeModifierIf
public boolean removeModifierIf(Predicate<WrapperPlayServerUpdateAttributes.PropertyModifier> predicate) -
getModifiers
-
setModifiers
-
setDirty
public void setDirty()
-