Skip to content

EntityStatOp

Package: com.hypixel.hytale.protocol

public enum EntityStatOp

Identifies the operation to perform on an entity stat value.

ConstantOrdinalDescription
Init0Initialize the stat with a base value.
Remove1Remove the stat entirely.
PutModifier2Add or update a named modifier.
RemoveModifier3Remove a named modifier.
Add4Add to the current value.
Set5Set the value directly.
Minimize6Set to the minimum of current and given value.
Maximize7Set to the maximum of current and given value.
Reset8Reset to the stat’s defined reset value.
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.

Serialized as a single byte (08). The static VALUES array is used for O(1) lookup by ordinal.

Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.