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
- activeHotbarSlot
- activeUtilitySlot
- activeToolsSlot
- itemInHandId
- utilityItemId
- toolsItemId
- initial
- desync
- overrideRootInteraction
- interactionType
- equipSlot
- chainId
- forkedId
- data
- state
- newForks
- operationBaseIndex
- interactionData
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getActiveHotbarSlot(MemorySegment)
- getActiveHotbarSlot(MemorySegment, int)
- getActiveUtilitySlot(MemorySegment)
- getActiveUtilitySlot(MemorySegment, int)
- getActiveToolsSlot(MemorySegment)
- getActiveToolsSlot(MemorySegment, int)
- getItemInHandId(MemorySegment)
- getItemInHandId(MemorySegment, int)
- getUtilityItemId(MemorySegment)
- getUtilityItemId(MemorySegment, int)
- getToolsItemId(MemorySegment)
- getToolsItemId(MemorySegment, int)
- getInitial(MemorySegment)
- getInitial(MemorySegment, int)
- getDesync(MemorySegment)
- getDesync(MemorySegment, int)
- getOverrideRootInteraction(MemorySegment)
- getOverrideRootInteraction(MemorySegment, int)
- getInteractionType(MemorySegment)
- getInteractionType(MemorySegment, int)
- getEquipSlot(MemorySegment)
- getEquipSlot(MemorySegment, int)
- getChainId(MemorySegment)
- getChainId(MemorySegment, int)
- getForkedId(MemorySegment)
- getForkedId(MemorySegment, int)
- getData(MemorySegment)
- getData(MemorySegment, int)
- getState(MemorySegment)
- getState(MemorySegment, int)
- getNewForks(MemorySegment)
- getNewForks(MemorySegment, int)
- getOperationBaseIndex(MemorySegment)
- getOperationBaseIndex(MemorySegment, int)
- getInteractionData(MemorySegment)
- getInteractionData(MemorySegment, int)
- hasItemInHandId(MemorySegment, int)
- hasUtilityItemId(MemorySegment, int)
- hasToolsItemId(MemorySegment, int)
- hasForkedId(MemorySegment, int)
- hasData(MemorySegment, int)
- hasNewForks(MemorySegment, int)
- hasInteractionData(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class SyncInteractionChain
java.lang.Object
com.hypixel.hytale.protocol.packets.interaction.SyncInteractionChain
-
Field Summary
FieldsModifier and TypeFieldDescriptionintintintintbooleanintstatic final intbooleanstatic final intstatic final intintintstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionSyncInteractionChain(int activeHotbarSlot, int activeUtilitySlot, int activeToolsSlot, String itemInHandId, String utilityItemId, String toolsItemId, boolean initial, boolean desync, int overrideRootInteraction, InteractionType interactionType, int equipSlot, int chainId, ForkedChainId forkedId, InteractionChainData data, InteractionState state, SyncInteractionChain[] newForks, int operationBaseIndex, InteractionSyncData[] interactionData) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic intstatic intgetActiveHotbarSlot(MemorySegment mem, int offset) static intstatic intgetActiveToolsSlot(MemorySegment mem, int offset) static intstatic intgetActiveUtilitySlot(MemorySegment mem, int offset) static intgetChainId(MemorySegment mem) static intgetChainId(MemorySegment mem, int offset) static InteractionChainDatagetData(MemorySegment mem) static InteractionChainDatagetData(MemorySegment mem, int offset) static booleangetDesync(MemorySegment mem) static booleangetDesync(MemorySegment mem, int offset) static intstatic intgetEquipSlot(MemorySegment mem, int offset) static ForkedChainIdgetForkedId(MemorySegment mem) static ForkedChainIdgetForkedId(MemorySegment mem, int offset) static booleangetInitial(MemorySegment mem) static booleangetInitial(MemorySegment mem, int offset) static InteractionSyncData[]static InteractionSyncData[]getInteractionData(MemorySegment mem, int offset) static InteractionTypestatic InteractionTypegetInteractionType(MemorySegment mem, int offset) static Stringstatic StringgetItemInHandId(MemorySegment mem, int offset) static SyncInteractionChain[]getNewForks(MemorySegment mem) static SyncInteractionChain[]getNewForks(MemorySegment mem, int offset) static intstatic intgetOperationBaseIndex(MemorySegment mem, int offset) static intstatic intgetOverrideRootInteraction(MemorySegment mem, int offset) static InteractionStategetState(MemorySegment mem) static InteractionStategetState(MemorySegment mem, int offset) static Stringstatic StringgetToolsItemId(MemorySegment mem, int offset) static Stringstatic StringgetUtilityItemId(MemorySegment mem, int offset) static booleanhasData(MemorySegment mem, int offset) static booleanhasForkedId(MemorySegment mem, int offset) inthashCode()static booleanhasInteractionData(MemorySegment mem, int offset) static booleanhasItemInHandId(MemorySegment mem, int offset) static booleanhasNewForks(MemorySegment mem, int offset) static booleanhasToolsItemId(MemorySegment mem, int offset) static booleanhasUtilityItemId(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static SyncInteractionChaintoObject(MemorySegment mem) static SyncInteractionChaintoObject(MemorySegment mem, int offset) static SyncInteractionChaintoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one SyncInteractionChain 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:
-
activeHotbarSlot
public int activeHotbarSlot -
activeUtilitySlot
public int activeUtilitySlot -
activeToolsSlot
public int activeToolsSlot -
itemInHandId
-
utilityItemId
-
toolsItemId
-
initial
public boolean initial -
desync
public boolean desync -
overrideRootInteraction
public int overrideRootInteraction -
interactionType
-
equipSlot
public int equipSlot -
chainId
public int chainId -
forkedId
-
data
-
state
-
newForks
-
operationBaseIndex
public int operationBaseIndex -
interactionData
-
-
Constructor Details
-
SyncInteractionChain
public SyncInteractionChain() -
SyncInteractionChain
public SyncInteractionChain(int activeHotbarSlot, int activeUtilitySlot, int activeToolsSlot, @Nullable String itemInHandId, @Nullable String utilityItemId, @Nullable String toolsItemId, boolean initial, boolean desync, int overrideRootInteraction, @Nonnull InteractionType interactionType, int equipSlot, int chainId, @Nullable ForkedChainId forkedId, @Nullable InteractionChainData data, @Nonnull InteractionState state, @Nullable SyncInteractionChain[] newForks, int operationBaseIndex, @Nullable InteractionSyncData[] interactionData) -
SyncInteractionChain
-
-
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. -
getActiveHotbarSlot
-
getActiveHotbarSlot
-
getActiveUtilitySlot
-
getActiveUtilitySlot
-
getActiveToolsSlot
-
getActiveToolsSlot
-
getItemInHandId
-
getItemInHandId
-
getUtilityItemId
-
getUtilityItemId
-
getToolsItemId
-
getToolsItemId
-
getInitial
-
getInitial
-
getDesync
-
getDesync
-
getOverrideRootInteraction
-
getOverrideRootInteraction
-
getInteractionType
-
getInteractionType
-
getEquipSlot
-
getEquipSlot
-
getChainId
-
getChainId
-
getForkedId
-
getForkedId
-
getData
-
getData
-
getState
-
getState
-
getNewForks
-
getNewForks
-
getOperationBaseIndex
-
getOperationBaseIndex
-
getInteractionData
-
getInteractionData
-
hasItemInHandId
-
hasUtilityItemId
-
hasToolsItemId
-
hasForkedId
-
hasData
-
hasNewForks
-
hasInteractionData
-
toObject
-
toObject
-
toObject
public static SyncInteractionChain toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor) Decodes one SyncInteractionChain and reports the end of its encoding through the cursor. A value of this type may hold further values of it, and decoding such a chain recurses once per link. The cursor counts the links so the chain cannot outrun the stack. -
serialize
-
computeSize
public int computeSize() -
clone
-
equals
-
hashCode
-