Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getFromValueIndex(MemorySegment)
- getFromValueIndex(MemorySegment, int)
- getToValueIndex(MemorySegment)
- getToValueIndex(MemorySegment, int)
- getDuration(MemorySegment)
- getDuration(MemorySegment, int)
- getCurve(MemorySegment)
- getCurve(MemorySegment, int)
- getSyncTo(MemorySegment)
- getSyncTo(MemorySegment, int)
- getDelay(MemorySegment)
- getDelay(MemorySegment, int)
- getPostEvent(MemorySegment)
- getPostEvent(MemorySegment, int)
- hasDuration(MemorySegment, int)
- hasDelay(MemorySegment, int)
- hasSyncTo(MemorySegment, int)
- hasPostEvent(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class StateTransition
java.lang.Object
com.hypixel.hytale.protocol.StateTransition
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intintstatic final intstatic final intintstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionStateTransition(int fromValueIndex, int toValueIndex, BarBeatDuration duration, FadeCurve curve, MusicSync syncTo, BarBeatDuration delay, String postEvent) StateTransition(StateTransition other) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic FadeCurvegetCurve(MemorySegment mem) static FadeCurvegetCurve(MemorySegment mem, int offset) static BarBeatDurationgetDelay(MemorySegment mem) static BarBeatDurationgetDelay(MemorySegment mem, int offset) static BarBeatDurationgetDuration(MemorySegment mem) static BarBeatDurationgetDuration(MemorySegment mem, int offset) static intstatic intgetFromValueIndex(MemorySegment mem, int offset) static Stringstatic StringgetPostEvent(MemorySegment mem, int offset) static MusicSyncgetSyncTo(MemorySegment mem) static MusicSyncgetSyncTo(MemorySegment mem, int offset) static intstatic intgetToValueIndex(MemorySegment mem, int offset) static booleanhasDelay(MemorySegment mem, int offset) static booleanhasDuration(MemorySegment mem, int offset) inthashCode()static booleanhasPostEvent(MemorySegment mem, int offset) static booleanhasSyncTo(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static StateTransitiontoObject(MemorySegment mem) static StateTransitiontoObject(MemorySegment mem, int offset) static StateTransitiontoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one StateTransition 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:
-
fromValueIndex
public int fromValueIndex -
toValueIndex
public int toValueIndex -
duration
-
curve
-
syncTo
-
delay
-
postEvent
-
-
Constructor Details
-
StateTransition
public StateTransition() -
StateTransition
public StateTransition(int fromValueIndex, int toValueIndex, @Nullable BarBeatDuration duration, @Nonnull FadeCurve curve, @Nullable MusicSync syncTo, @Nullable BarBeatDuration delay, @Nullable String postEvent) -
StateTransition
-
-
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. -
getFromValueIndex
-
getFromValueIndex
-
getToValueIndex
-
getToValueIndex
-
getDuration
-
getDuration
-
getCurve
-
getCurve
-
getSyncTo
-
getSyncTo
-
getDelay
-
getDelay
-
getPostEvent
-
getPostEvent
-
hasDuration
-
hasDelay
-
hasSyncTo
-
hasPostEvent
-
toObject
-
toObject
-
toObject
Decodes one StateTransition 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
-