Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getCooldownId(MemorySegment)
- getCooldownId(MemorySegment, int)
- getCooldown(MemorySegment)
- getCooldown(MemorySegment, int)
- getClickBypass(MemorySegment)
- getClickBypass(MemorySegment, int)
- getChargeTimes(MemorySegment)
- getChargeTimes(MemorySegment, int)
- getSkipCooldownReset(MemorySegment)
- getSkipCooldownReset(MemorySegment, int)
- getInterruptRecharge(MemorySegment)
- getInterruptRecharge(MemorySegment, int)
- hasCooldownId(MemorySegment, int)
- hasChargeTimes(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class InteractionCooldown
java.lang.Object
com.hypixel.hytale.protocol.InteractionCooldown
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloat[]booleanfloatstatic final intbooleanstatic final intstatic final intbooleanstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionInteractionCooldown(String cooldownId, float cooldown, boolean clickBypass, float[] chargeTimes, boolean skipCooldownReset, boolean interruptRecharge) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic float[]static float[]getChargeTimes(MemorySegment mem, int offset) static booleanstatic booleangetClickBypass(MemorySegment mem, int offset) static floatgetCooldown(MemorySegment mem) static floatgetCooldown(MemorySegment mem, int offset) static Stringstatic StringgetCooldownId(MemorySegment mem, int offset) static booleanstatic booleangetInterruptRecharge(MemorySegment mem, int offset) static booleanstatic booleangetSkipCooldownReset(MemorySegment mem, int offset) static booleanhasChargeTimes(MemorySegment mem, int offset) static booleanhasCooldownId(MemorySegment mem, int offset) inthashCode()static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static InteractionCooldowntoObject(MemorySegment mem) static InteractionCooldowntoObject(MemorySegment mem, int offset) static InteractionCooldowntoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one InteractionCooldown 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:
-
cooldownId
-
cooldown
public float cooldown -
clickBypass
public boolean clickBypass -
chargeTimes
@Nullable public float[] chargeTimes -
skipCooldownReset
public boolean skipCooldownReset -
interruptRecharge
public boolean interruptRecharge
-
-
Constructor Details
-
InteractionCooldown
public InteractionCooldown() -
InteractionCooldown
public InteractionCooldown(@Nullable String cooldownId, float cooldown, boolean clickBypass, @Nullable float[] chargeTimes, boolean skipCooldownReset, boolean interruptRecharge) -
InteractionCooldown
-
-
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. -
getCooldownId
-
getCooldownId
-
getCooldown
-
getCooldown
-
getClickBypass
-
getClickBypass
-
getChargeTimes
-
getChargeTimes
-
getSkipCooldownReset
-
getSkipCooldownReset
-
getInterruptRecharge
-
getInterruptRecharge
-
hasCooldownId
-
hasChargeTimes
-
toObject
-
toObject
-
toObject
public static InteractionCooldown toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor) Decodes one InteractionCooldown 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
-