Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getId(MemorySegment)
- getId(MemorySegment, int)
- getInteractions(MemorySegment)
- getInteractions(MemorySegment, int)
- getCooldown(MemorySegment)
- getCooldown(MemorySegment, int)
- getSettings(MemorySegment)
- getSettings(MemorySegment, int)
- getRules(MemorySegment)
- getRules(MemorySegment, int)
- getTags(MemorySegment)
- getTags(MemorySegment, int)
- getClickQueuingTimeout(MemorySegment)
- getClickQueuingTimeout(MemorySegment, int)
- getRequireNewClick(MemorySegment)
- getRequireNewClick(MemorySegment, int)
- getHudInputBindingEntry(MemorySegment)
- getHudInputBindingEntry(MemorySegment, int)
- hasId(MemorySegment, int)
- hasCooldown(MemorySegment, int)
- hasSettings(MemorySegment, int)
- hasTags(MemorySegment, int)
- hasHudInputBindingEntry(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class RootInteraction
java.lang.Object
com.hypixel.hytale.protocol.RootInteraction
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatstatic final intint[]static final intstatic final intbooleanint[]static final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionRootInteraction(RootInteraction other) RootInteraction(String id, int[] interactions, InteractionCooldown cooldown, Map<GameMode, RootInteractionSettings> settings, InteractionRules rules, int[] tags, float clickQueuingTimeout, boolean requireNewClick, String hudInputBindingEntry) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic floatstatic floatgetClickQueuingTimeout(MemorySegment mem, int offset) static InteractionCooldowngetCooldown(MemorySegment mem) static InteractionCooldowngetCooldown(MemorySegment mem, int offset) static Stringstatic StringgetHudInputBindingEntry(MemorySegment mem, int offset) static StringgetId(MemorySegment mem) static StringgetId(MemorySegment mem, int offset) static int[]static int[]getInteractions(MemorySegment mem, int offset) static booleanstatic booleangetRequireNewClick(MemorySegment mem, int offset) static InteractionRulesgetRules(MemorySegment mem) static InteractionRulesgetRules(MemorySegment mem, int offset) static Map<GameMode, RootInteractionSettings> getSettings(MemorySegment mem) static Map<GameMode, RootInteractionSettings> getSettings(MemorySegment mem, int offset) static int[]getTags(MemorySegment mem) static int[]getTags(MemorySegment mem, int offset) static booleanhasCooldown(MemorySegment mem, int offset) inthashCode()static booleanhasHudInputBindingEntry(MemorySegment mem, int offset) static booleanhasId(MemorySegment mem, int offset) 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 RootInteractiontoObject(MemorySegment mem) static RootInteractiontoObject(MemorySegment mem, int offset) static RootInteractiontoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one RootInteraction 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:
-
id
-
interactions
@Nonnull public int[] interactions -
cooldown
-
settings
-
rules
-
tags
@Nullable public int[] tags -
clickQueuingTimeout
public float clickQueuingTimeout -
requireNewClick
public boolean requireNewClick -
hudInputBindingEntry
-
-
Constructor Details
-
RootInteraction
public RootInteraction() -
RootInteraction
public RootInteraction(@Nullable String id, @Nonnull int[] interactions, @Nullable InteractionCooldown cooldown, @Nullable Map<GameMode, RootInteractionSettings> settings, @Nonnull InteractionRules rules, @Nullable int[] tags, float clickQueuingTimeout, boolean requireNewClick, @Nullable String hudInputBindingEntry) -
RootInteraction
-
-
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. -
getId
-
getId
-
getInteractions
-
getInteractions
-
getCooldown
-
getCooldown
-
getSettings
-
getSettings
@Nullable public static Map<GameMode, RootInteractionSettings> getSettings(MemorySegment mem, int offset) -
getRules
-
getRules
-
getTags
-
getTags
-
getClickQueuingTimeout
-
getClickQueuingTimeout
-
getRequireNewClick
-
getRequireNewClick
-
getHudInputBindingEntry
-
getHudInputBindingEntry
-
hasId
-
hasCooldown
-
hasSettings
-
hasTags
-
hasHudInputBindingEntry
-
toObject
-
toObject
-
toObject
Decodes one RootInteraction 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
-