Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- NULLABLE_BIT_FIELD_SIZE
- FIXED_BLOCK_SIZE
- VARIABLE_FIELD_COUNT
- VARIABLE_BLOCK_START
- MAX_SIZE
- state
- progress
- operationCounter
- rootInteraction
- totalForks
- entityId
- enteredRootInteraction
- blockPosition
- blockFace
- blockRotation
- placedBlockId
- chargeValue
- forkCounts
- chainingIndex
- flagIndex
- hitEntities
- attackerPos
- attackerRot
- raycastHit
- raycastDistance
- raycastNormal
- movementDirection
- applyForceState
- nextLabel
- generatedUUID
- Constructor Details
- InteractionSyncData()
- InteractionSyncData(InteractionState, float, int, int, int, int, int, BlockPosition, BlockFace, BlockRotation, int, float, Map, int, int, SelectedHitEntity[], Position, Direction, Position, float, Vector3fc, MovementDirection, ApplyForceState, int, UUID)
- InteractionSyncData(InteractionSyncData)
- Method Details
- requireBounds(MemorySegment, int)
- getState(MemorySegment)
- getState(MemorySegment, int)
- getProgress(MemorySegment)
- getProgress(MemorySegment, int)
- getOperationCounter(MemorySegment)
- getOperationCounter(MemorySegment, int)
- getRootInteraction(MemorySegment)
- getRootInteraction(MemorySegment, int)
- getTotalForks(MemorySegment)
- getTotalForks(MemorySegment, int)
- getEntityId(MemorySegment)
- getEntityId(MemorySegment, int)
- getEnteredRootInteraction(MemorySegment)
- getEnteredRootInteraction(MemorySegment, int)
- getBlockPosition(MemorySegment)
- getBlockPosition(MemorySegment, int)
- getBlockFace(MemorySegment)
- getBlockFace(MemorySegment, int)
- getBlockRotation(MemorySegment)
- getBlockRotation(MemorySegment, int)
- getPlacedBlockId(MemorySegment)
- getPlacedBlockId(MemorySegment, int)
- getChargeValue(MemorySegment)
- getChargeValue(MemorySegment, int)
- getForkCounts(MemorySegment)
- getForkCounts(MemorySegment, int)
- getChainingIndex(MemorySegment)
- getChainingIndex(MemorySegment, int)
- getFlagIndex(MemorySegment)
- getFlagIndex(MemorySegment, int)
- getHitEntities(MemorySegment)
- getHitEntities(MemorySegment, int)
- getAttackerPos(MemorySegment)
- getAttackerPos(MemorySegment, int)
- getAttackerRot(MemorySegment)
- getAttackerRot(MemorySegment, int)
- getRaycastHit(MemorySegment)
- getRaycastHit(MemorySegment, int)
- getRaycastDistance(MemorySegment)
- getRaycastDistance(MemorySegment, int)
- getRaycastNormal(MemorySegment)
- getRaycastNormal(MemorySegment, int)
- getMovementDirection(MemorySegment)
- getMovementDirection(MemorySegment, int)
- getApplyForceState(MemorySegment)
- getApplyForceState(MemorySegment, int)
- getNextLabel(MemorySegment)
- getNextLabel(MemorySegment, int)
- getGeneratedUUID(MemorySegment)
- getGeneratedUUID(MemorySegment, int)
- hasBlockPosition(MemorySegment, int)
- hasBlockRotation(MemorySegment, int)
- hasAttackerPos(MemorySegment, int)
- hasAttackerRot(MemorySegment, int)
- hasRaycastHit(MemorySegment, int)
- hasRaycastNormal(MemorySegment, int)
- hasGeneratedUUID(MemorySegment, int)
- hasForkCounts(MemorySegment, int)
- hasHitEntities(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class InteractionSyncData
java.lang.Object
com.hypixel.hytale.protocol.InteractionSyncData
-
Field Summary
FieldsModifier and TypeFieldDescriptionintfloatintintstatic final intintstatic final intintstatic final intintintfloatfloatorg.joml.Vector3fcintintstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionInteractionSyncData(InteractionState state, float progress, int operationCounter, int rootInteraction, int totalForks, int entityId, int enteredRootInteraction, BlockPosition blockPosition, BlockFace blockFace, BlockRotation blockRotation, int placedBlockId, float chargeValue, Map<InteractionType, Integer> forkCounts, int chainingIndex, int flagIndex, SelectedHitEntity[] hitEntities, Position attackerPos, Direction attackerRot, Position raycastHit, float raycastDistance, org.joml.Vector3fc raycastNormal, MovementDirection movementDirection, ApplyForceState applyForceState, int nextLabel, UUID generatedUUID) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic ApplyForceStatestatic ApplyForceStategetApplyForceState(MemorySegment mem, int offset) static Positionstatic PositiongetAttackerPos(MemorySegment mem, int offset) static Directionstatic DirectiongetAttackerRot(MemorySegment mem, int offset) static BlockFacestatic BlockFacegetBlockFace(MemorySegment mem, int offset) static BlockPositionstatic BlockPositiongetBlockPosition(MemorySegment mem, int offset) static BlockRotationstatic BlockRotationgetBlockRotation(MemorySegment mem, int offset) static intstatic intgetChainingIndex(MemorySegment mem, int offset) static floatstatic floatgetChargeValue(MemorySegment mem, int offset) static intstatic intgetEnteredRootInteraction(MemorySegment mem, int offset) static intgetEntityId(MemorySegment mem) static intgetEntityId(MemorySegment mem, int offset) static intstatic intgetFlagIndex(MemorySegment mem, int offset) static Map<InteractionType, Integer> static Map<InteractionType, Integer> getForkCounts(MemorySegment mem, int offset) static UUIDstatic UUIDgetGeneratedUUID(MemorySegment mem, int offset) static SelectedHitEntity[]static SelectedHitEntity[]getHitEntities(MemorySegment mem, int offset) static MovementDirectionstatic MovementDirectiongetMovementDirection(MemorySegment mem, int offset) static intstatic intgetNextLabel(MemorySegment mem, int offset) static intstatic intgetOperationCounter(MemorySegment mem, int offset) static intstatic intgetPlacedBlockId(MemorySegment mem, int offset) static floatgetProgress(MemorySegment mem) static floatgetProgress(MemorySegment mem, int offset) static floatstatic floatgetRaycastDistance(MemorySegment mem, int offset) static Positionstatic PositiongetRaycastHit(MemorySegment mem, int offset) static org.joml.Vector3fcstatic org.joml.Vector3fcgetRaycastNormal(MemorySegment mem, int offset) static intstatic intgetRootInteraction(MemorySegment mem, int offset) static InteractionStategetState(MemorySegment mem) static InteractionStategetState(MemorySegment mem, int offset) static intstatic intgetTotalForks(MemorySegment mem, int offset) static booleanhasAttackerPos(MemorySegment mem, int offset) static booleanhasAttackerRot(MemorySegment mem, int offset) static booleanhasBlockPosition(MemorySegment mem, int offset) static booleanhasBlockRotation(MemorySegment mem, int offset) static booleanhasForkCounts(MemorySegment mem, int offset) static booleanhasGeneratedUUID(MemorySegment mem, int offset) inthashCode()static booleanhasHitEntities(MemorySegment mem, int offset) static booleanhasRaycastHit(MemorySegment mem, int offset) static booleanhasRaycastNormal(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static InteractionSyncDatatoObject(MemorySegment mem) static InteractionSyncDatatoObject(MemorySegment mem, int offset) static InteractionSyncDatatoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one InteractionSyncData 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:
-
state
-
progress
public float progress -
operationCounter
public int operationCounter -
rootInteraction
public int rootInteraction -
totalForks
public int totalForks -
entityId
public int entityId -
enteredRootInteraction
public int enteredRootInteraction -
blockPosition
-
blockFace
-
blockRotation
-
placedBlockId
public int placedBlockId -
chargeValue
public float chargeValue -
forkCounts
-
chainingIndex
public int chainingIndex -
flagIndex
public int flagIndex -
hitEntities
-
attackerPos
-
attackerRot
-
raycastHit
-
raycastDistance
public float raycastDistance -
raycastNormal
@Nullable public org.joml.Vector3fc raycastNormal -
movementDirection
-
applyForceState
-
nextLabel
public int nextLabel -
generatedUUID
-
-
Constructor Details
-
InteractionSyncData
public InteractionSyncData() -
InteractionSyncData
public InteractionSyncData(@Nonnull InteractionState state, float progress, int operationCounter, int rootInteraction, int totalForks, int entityId, int enteredRootInteraction, @Nullable BlockPosition blockPosition, @Nonnull BlockFace blockFace, @Nullable BlockRotation blockRotation, int placedBlockId, float chargeValue, @Nullable Map<InteractionType, Integer> forkCounts, int chainingIndex, int flagIndex, @Nullable SelectedHitEntity[] hitEntities, @Nullable Position attackerPos, @Nullable Direction attackerRot, @Nullable Position raycastHit, float raycastDistance, @Nullable org.joml.Vector3fc raycastNormal, @Nonnull MovementDirection movementDirection, @Nonnull ApplyForceState applyForceState, int nextLabel, @Nullable UUID generatedUUID) -
InteractionSyncData
-
-
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. -
getState
-
getState
-
getProgress
-
getProgress
-
getOperationCounter
-
getOperationCounter
-
getRootInteraction
-
getRootInteraction
-
getTotalForks
-
getTotalForks
-
getEntityId
-
getEntityId
-
getEnteredRootInteraction
-
getEnteredRootInteraction
-
getBlockPosition
-
getBlockPosition
-
getBlockFace
-
getBlockFace
-
getBlockRotation
-
getBlockRotation
-
getPlacedBlockId
-
getPlacedBlockId
-
getChargeValue
-
getChargeValue
-
getForkCounts
-
getForkCounts
-
getChainingIndex
-
getChainingIndex
-
getFlagIndex
-
getFlagIndex
-
getHitEntities
-
getHitEntities
-
getAttackerPos
-
getAttackerPos
-
getAttackerRot
-
getAttackerRot
-
getRaycastHit
-
getRaycastHit
-
getRaycastDistance
-
getRaycastDistance
-
getRaycastNormal
-
getRaycastNormal
-
getMovementDirection
-
getMovementDirection
-
getApplyForceState
-
getApplyForceState
-
getNextLabel
-
getNextLabel
-
getGeneratedUUID
-
getGeneratedUUID
-
hasBlockPosition
-
hasBlockRotation
-
hasAttackerPos
-
hasAttackerRot
-
hasRaycastHit
-
hasRaycastNormal
-
hasGeneratedUUID
-
hasForkCounts
-
hasHitEntities
-
toObject
-
toObject
-
toObject
public static InteractionSyncData toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor) Decodes one InteractionSyncData 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
-