Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getWaitForDataFrom(MemorySegment)
- getWaitForDataFrom(MemorySegment, int)
- getEffects(MemorySegment)
- getEffects(MemorySegment, int)
- getHorizontalSpeedMultiplier(MemorySegment)
- getHorizontalSpeedMultiplier(MemorySegment, int)
- getRunTime(MemorySegment)
- getRunTime(MemorySegment, int)
- getOnItemChangeBehavior(MemorySegment)
- getOnItemChangeBehavior(MemorySegment, int)
- getSettings(MemorySegment)
- getSettings(MemorySegment, int)
- getRules(MemorySegment)
- getRules(MemorySegment, int)
- getTags(MemorySegment)
- getTags(MemorySegment, int)
- getCamera(MemorySegment)
- getCamera(MemorySegment, int)
- getChainId(MemorySegment)
- getChainId(MemorySegment, int)
- getChainingAllowance(MemorySegment)
- getChainingAllowance(MemorySegment, int)
- getChainingNext(MemorySegment)
- getChainingNext(MemorySegment, int)
- getFlags(MemorySegment)
- getFlags(MemorySegment, int)
- hasEffects(MemorySegment, int)
- hasSettings(MemorySegment, int)
- hasTags(MemorySegment, int)
- hasCamera(MemorySegment, int)
- hasChainId(MemorySegment, int)
- hasFlags(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class ChainingInteraction
java.lang.Object
com.hypixel.hytale.protocol.Interaction
com.hypixel.hytale.protocol.ChainingInteraction
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatint[]static final intstatic final intstatic final intstatic final intstatic final intFields inherited from class Interaction
camera, effects, horizontalSpeedMultiplier, onItemChangeBehavior, rules, runTime, settings, tags, waitForDataFrom -
Constructor Summary
ConstructorsConstructorDescriptionChainingInteraction(WaitForDataFrom waitForDataFrom, InteractionEffects effects, float horizontalSpeedMultiplier, float runTime, InteractionItemChangeBehavior onItemChangeBehavior, Map<GameMode, InteractionSettings> settings, InteractionRules rules, int[] tags, InteractionCameraSettings camera, String chainId, float chainingAllowance, int[] chainingNext, Map<String, Integer> flags) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic InteractionCameraSettingsgetCamera(MemorySegment mem) static InteractionCameraSettingsgetCamera(MemorySegment mem, int offset) static StringgetChainId(MemorySegment mem) static StringgetChainId(MemorySegment mem, int offset) static floatstatic floatgetChainingAllowance(MemorySegment mem, int offset) static int[]static int[]getChainingNext(MemorySegment mem, int offset) static InteractionEffectsgetEffects(MemorySegment mem) static InteractionEffectsgetEffects(MemorySegment mem, int offset) getFlags(MemorySegment mem) getFlags(MemorySegment mem, int offset) static floatstatic floatgetHorizontalSpeedMultiplier(MemorySegment mem, int offset) getOnItemChangeBehavior(MemorySegment mem, int offset) static InteractionRulesgetRules(MemorySegment mem) static InteractionRulesgetRules(MemorySegment mem, int offset) static floatgetRunTime(MemorySegment mem) static floatgetRunTime(MemorySegment mem, int offset) static Map<GameMode, InteractionSettings> getSettings(MemorySegment mem) static Map<GameMode, InteractionSettings> getSettings(MemorySegment mem, int offset) static int[]getTags(MemorySegment mem) static int[]getTags(MemorySegment mem, int offset) static WaitForDataFromstatic WaitForDataFromgetWaitForDataFrom(MemorySegment mem, int offset) static booleanhasCamera(MemorySegment mem, int offset) static booleanhasChainId(MemorySegment mem, int offset) static booleanhasEffects(MemorySegment mem, int offset) static booleanhasFlags(MemorySegment mem, int offset) inthashCode()static booleanhasSettings(MemorySegment mem, int offset) static booleanhasTags(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static ChainingInteractiontoObject(MemorySegment mem) static ChainingInteractiontoObject(MemorySegment mem, int offset) static ChainingInteractiontoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one ChainingInteraction and reports the end of its encoding through the cursor.Methods inherited from class Interaction
computeSizeWithTypeId, getTypeId, serializeWithTypeId
-
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:
-
chainId
-
chainingAllowance
public float chainingAllowance -
chainingNext
@Nonnull public int[] chainingNext -
flags
-
-
Constructor Details
-
ChainingInteraction
public ChainingInteraction() -
ChainingInteraction
public ChainingInteraction(@Nonnull WaitForDataFrom waitForDataFrom, @Nullable InteractionEffects effects, float horizontalSpeedMultiplier, float runTime, @Nonnull InteractionItemChangeBehavior onItemChangeBehavior, @Nullable Map<GameMode, InteractionSettings> settings, @Nonnull InteractionRules rules, @Nullable int[] tags, @Nullable InteractionCameraSettings camera, @Nullable String chainId, float chainingAllowance, @Nonnull int[] chainingNext, @Nullable Map<String, Integer> flags) -
ChainingInteraction
-
-
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. -
getWaitForDataFrom
-
getWaitForDataFrom
-
getEffects
-
getEffects
-
getHorizontalSpeedMultiplier
-
getHorizontalSpeedMultiplier
-
getRunTime
-
getRunTime
-
getOnItemChangeBehavior
-
getOnItemChangeBehavior
-
getSettings
-
getSettings
@Nullable public static Map<GameMode, InteractionSettings> getSettings(MemorySegment mem, int offset) -
getRules
-
getRules
-
getTags
-
getTags
-
getCamera
-
getCamera
-
getChainId
-
getChainId
-
getChainingAllowance
-
getChainingAllowance
-
getChainingNext
-
getChainingNext
-
getFlags
-
getFlags
-
hasEffects
-
hasSettings
-
hasTags
-
hasCamera
-
hasChainId
-
hasFlags
-
toObject
-
toObject
-
toObject
public static ChainingInteraction toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor) Decodes one ChainingInteraction 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
- Specified by:
serializein classInteraction
-
computeSize
public int computeSize()- Specified by:
computeSizein classInteraction
-
clone
-
equals
-
hashCode
-