Class WrapperPlayServerUpdateAttributes.Property
java.lang.Object
com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerUpdateAttributes.Property
- Enclosing class:
WrapperPlayServerUpdateAttributes
-
Constructor Summary
ConstructorDescriptionProperty
(Attribute attribute, double value, List<WrapperPlayServerUpdateAttributes.PropertyModifier> modifiers) Property
(String key, double value, List<WrapperPlayServerUpdateAttributes.PropertyModifier> modifiers) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
double
double
getKey()
Deprecated.double
getValue()
boolean
removeModifier
(ResourceLocation modifierId) boolean
removeModifier
(ResourceLocation modifierId, UUID modifierUId) boolean
removeModifier
(UUID modifierId) boolean
void
setAttribute
(Attribute attribute) void
setDirty()
void
Deprecated.void
void
setValue
(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()
-