EntityStatOp
Package: com.hypixel.hytale.protocol
public enum EntityStatOpIdentifies the operation to perform on an entity stat value.
Constants
Section titled “Constants”| Constant | Ordinal | Description |
|---|---|---|
Init | 0 | Initialize the stat with a base value. |
Remove | 1 | Remove the stat entirely. |
PutModifier | 2 | Add or update a named modifier. |
RemoveModifier | 3 | Remove a named modifier. |
Add | 4 | Add to the current value. |
Set | 5 | Set the value directly. |
Minimize | 6 | Set to the minimum of current and given value. |
Maximize | 7 | Set to the maximum of current and given value. |
Reset | 8 | Reset to the stat’s defined reset value. |
Methods
Section titled “Methods”public int getValue()Returns the integer wire value for this EntityStatOp constant.
public static EntityStatOp fromValue(int value)Returns the EntityStatOp constant for the given wire value. Throws ProtocolException if the value is out of range.
Serialization
Section titled “Serialization”Serialized as a single byte (0—8). The static VALUES array is used for O(1) lookup by ordinal.
Related Types
Section titled “Related Types”
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.