Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getTrailId(MemorySegment)
- getTrailId(MemorySegment, int)
- getTargetEntityPart(MemorySegment)
- getTargetEntityPart(MemorySegment, int)
- getTargetNodeName(MemorySegment)
- getTargetNodeName(MemorySegment, int)
- getPositionOffset(MemorySegment)
- getPositionOffset(MemorySegment, int)
- getRotationOffset(MemorySegment)
- getRotationOffset(MemorySegment, int)
- getFixedRotation(MemorySegment)
- getFixedRotation(MemorySegment, int)
- hasPositionOffset(MemorySegment, int)
- hasRotationOffset(MemorySegment, int)
- hasTrailId(MemorySegment, int)
- hasTargetNodeName(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class ModelTrail
java.lang.Object
com.hypixel.hytale.protocol.ModelTrail
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intbooleanstatic final intstatic final intorg.joml.Vector3fcstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionModelTrail(ModelTrail other) ModelTrail(String trailId, EntityPart targetEntityPart, String targetNodeName, org.joml.Vector3fc positionOffset, Direction rotationOffset, boolean fixedRotation) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic booleanstatic booleangetFixedRotation(MemorySegment mem, int offset) static org.joml.Vector3fcstatic org.joml.Vector3fcgetPositionOffset(MemorySegment mem, int offset) static Directionstatic DirectiongetRotationOffset(MemorySegment mem, int offset) static EntityPartstatic EntityPartgetTargetEntityPart(MemorySegment mem, int offset) static Stringstatic StringgetTargetNodeName(MemorySegment mem, int offset) static StringgetTrailId(MemorySegment mem) static StringgetTrailId(MemorySegment mem, int offset) inthashCode()static booleanhasPositionOffset(MemorySegment mem, int offset) static booleanhasRotationOffset(MemorySegment mem, int offset) static booleanhasTargetNodeName(MemorySegment mem, int offset) static booleanhasTrailId(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static ModelTrailtoObject(MemorySegment mem) static ModelTrailtoObject(MemorySegment mem, int offset) static ModelTrailtoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one ModelTrail 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:
-
trailId
-
targetEntityPart
-
targetNodeName
-
positionOffset
@Nullable public org.joml.Vector3fc positionOffset -
rotationOffset
-
fixedRotation
public boolean fixedRotation
-
-
Constructor Details
-
ModelTrail
public ModelTrail() -
ModelTrail
public ModelTrail(@Nullable String trailId, @Nonnull EntityPart targetEntityPart, @Nullable String targetNodeName, @Nullable org.joml.Vector3fc positionOffset, @Nullable Direction rotationOffset, boolean fixedRotation) -
ModelTrail
-
-
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. -
getTrailId
-
getTrailId
-
getTargetEntityPart
-
getTargetEntityPart
-
getTargetNodeName
-
getTargetNodeName
-
getPositionOffset
-
getPositionOffset
-
getRotationOffset
-
getRotationOffset
-
getFixedRotation
-
getFixedRotation
-
hasPositionOffset
-
hasRotationOffset
-
hasTrailId
-
hasTargetNodeName
-
toObject
-
toObject
-
toObject
Decodes one ModelTrail 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
-