Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getOp(MemorySegment)
- getOp(MemorySegment, int)
- getPredictable(MemorySegment)
- getPredictable(MemorySegment, int)
- getValue(MemorySegment)
- getValue(MemorySegment, int)
- getModifiers(MemorySegment)
- getModifiers(MemorySegment, int)
- getModifierKey(MemorySegment)
- getModifierKey(MemorySegment, int)
- getModifier(MemorySegment)
- getModifier(MemorySegment, int)
- hasModifier(MemorySegment, int)
- hasModifiers(MemorySegment, int)
- hasModifierKey(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class EntityStatUpdate
java.lang.Object
com.hypixel.hytale.protocol.EntityStatUpdate
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intbooleanfloatstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionEntityStatUpdate(EntityStatOp op, boolean predictable, float value, Map<String, Modifier> modifiers, String modifierKey, Modifier modifier) EntityStatUpdate(EntityStatUpdate other) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic ModifiergetModifier(MemorySegment mem) static ModifiergetModifier(MemorySegment mem, int offset) static Stringstatic StringgetModifierKey(MemorySegment mem, int offset) getModifiers(MemorySegment mem, int offset) static EntityStatOpgetOp(MemorySegment mem) static EntityStatOpgetOp(MemorySegment mem, int offset) static booleanstatic booleangetPredictable(MemorySegment mem, int offset) static floatgetValue(MemorySegment mem) static floatgetValue(MemorySegment mem, int offset) inthashCode()static booleanhasModifier(MemorySegment mem, int offset) static booleanhasModifierKey(MemorySegment mem, int offset) static booleanhasModifiers(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static EntityStatUpdatetoObject(MemorySegment mem) static EntityStatUpdatetoObject(MemorySegment mem, int offset) static EntityStatUpdatetoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one EntityStatUpdate and reports the end of its encoding through the cursor.
-
Field Details
-
NULLABLE_BIT_FIELD_SIZE
public static final int NULLABLE_BIT_FIELD_SIZE- See Also:
-
FIXED_BLOCK_SIZE
public static final int FIXED_BLOCK_SIZE- See Also:
-
VARIABLE_FIELD_COUNT
public static final int VARIABLE_FIELD_COUNT- See Also:
-
VARIABLE_BLOCK_START
public static final int VARIABLE_BLOCK_START- See Also:
-
MAX_SIZE
public static final int MAX_SIZE- See Also:
-
op
-
predictable
public boolean predictable -
value
public float value -
modifiers
-
modifierKey
-
modifier
-
-
Constructor Details
-
EntityStatUpdate
public EntityStatUpdate() -
EntityStatUpdate
-
EntityStatUpdate
-
-
Method Details
-
requireBounds
Checks that the fixed block fits. The per-field getters read without their own bound check, so call this once before reading fields out of an untrusted segment. -
getOp
-
getOp
-
getPredictable
-
getPredictable
-
getValue
-
getValue
-
getModifiers
-
getModifiers
-
getModifierKey
-
getModifierKey
-
getModifier
-
getModifier
-
hasModifier
-
hasModifiers
-
hasModifierKey
-
toObject
-
toObject
-
toObject
Decodes one EntityStatUpdate and reports the end of its encoding through the cursor. The variable block is decoded in field order against a running position, and each offset slot must name that position, so the fields decoded are the bytes walked. -
serialize
-
computeSize
public int computeSize() -
clone
-
equals
-
hashCode
-