Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getBeamIndex(MemorySegment)
- getBeamIndex(MemorySegment, int)
- getSourceScale(MemorySegment)
- getSourceScale(MemorySegment, int)
- getSourceNodeName(MemorySegment)
- getSourceNodeName(MemorySegment, int)
- getSourceOffset(MemorySegment)
- getSourceOffset(MemorySegment, int)
- getTargetScale(MemorySegment)
- getTargetScale(MemorySegment, int)
- getTargetNetworkId(MemorySegment)
- getTargetNetworkId(MemorySegment, int)
- getTargetNodeName(MemorySegment)
- getTargetNodeName(MemorySegment, int)
- getTargetOffset(MemorySegment)
- getTargetOffset(MemorySegment, int)
- getTargetPosition(MemorySegment)
- getTargetPosition(MemorySegment, int)
- hasTargetPosition(MemorySegment, int)
- hasSourceNodeName(MemorySegment, int)
- hasTargetNodeName(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class BeamInstance
java.lang.Object
com.hypixel.hytale.protocol.BeamInstance
-
Field Summary
FieldsModifier and TypeFieldDescriptionintstatic final intstatic final intstatic final intorg.joml.Vector3fcfloatintorg.joml.Vector3fcorg.joml.Vector3fcfloatstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionBeamInstance(int beamIndex, float sourceScale, String sourceNodeName, org.joml.Vector3fc sourceOffset, float targetScale, int targetNetworkId, String targetNodeName, org.joml.Vector3fc targetOffset, org.joml.Vector3fc targetPosition) BeamInstance(BeamInstance other) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic intstatic intgetBeamIndex(MemorySegment mem, int offset) static Stringstatic StringgetSourceNodeName(MemorySegment mem, int offset) static org.joml.Vector3fcstatic org.joml.Vector3fcgetSourceOffset(MemorySegment mem, int offset) static floatstatic floatgetSourceScale(MemorySegment mem, int offset) static intstatic intgetTargetNetworkId(MemorySegment mem, int offset) static Stringstatic StringgetTargetNodeName(MemorySegment mem, int offset) static org.joml.Vector3fcstatic org.joml.Vector3fcgetTargetOffset(MemorySegment mem, int offset) static org.joml.Vector3fcstatic org.joml.Vector3fcgetTargetPosition(MemorySegment mem, int offset) static floatstatic floatgetTargetScale(MemorySegment mem, int offset) inthashCode()static booleanhasSourceNodeName(MemorySegment mem, int offset) static booleanhasTargetNodeName(MemorySegment mem, int offset) static booleanhasTargetPosition(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static BeamInstancetoObject(MemorySegment mem) static BeamInstancetoObject(MemorySegment mem, int offset) static BeamInstancetoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one BeamInstance 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:
-
beamIndex
public int beamIndex -
sourceScale
public float sourceScale -
sourceNodeName
-
sourceOffset
@Nonnull public org.joml.Vector3fc sourceOffset -
targetScale
public float targetScale -
targetNetworkId
public int targetNetworkId -
targetNodeName
-
targetOffset
@Nonnull public org.joml.Vector3fc targetOffset -
targetPosition
@Nullable public org.joml.Vector3fc targetPosition
-
-
Constructor Details
-
BeamInstance
public BeamInstance() -
BeamInstance
-
BeamInstance
-
-
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. -
getBeamIndex
-
getBeamIndex
-
getSourceScale
-
getSourceScale
-
getSourceNodeName
-
getSourceNodeName
-
getSourceOffset
-
getSourceOffset
-
getTargetScale
-
getTargetScale
-
getTargetNetworkId
-
getTargetNetworkId
-
getTargetNodeName
-
getTargetNodeName
-
getTargetOffset
-
getTargetOffset
-
getTargetPosition
-
getTargetPosition
-
hasTargetPosition
-
hasSourceNodeName
-
hasTargetNodeName
-
toObject
-
toObject
-
toObject
Decodes one BeamInstance 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
-