Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getId(MemorySegment)
- getId(MemorySegment, int)
- getAuthority(MemorySegment)
- getAuthority(MemorySegment, int)
- getValues(MemorySegment)
- getValues(MemorySegment, int)
- getDefaultValueIndex(MemorySegment)
- getDefaultValueIndex(MemorySegment, int)
- getDefaultSyncTo(MemorySegment)
- getDefaultSyncTo(MemorySegment, int)
- getDefaultTransition(MemorySegment)
- getDefaultTransition(MemorySegment, int)
- getTransitions(MemorySegment)
- getTransitions(MemorySegment, int)
- getRevertWhenInactive(MemorySegment)
- getRevertWhenInactive(MemorySegment, int)
- hasId(MemorySegment, int)
- hasValues(MemorySegment, int)
- hasDefaultSyncTo(MemorySegment, int)
- hasDefaultTransition(MemorySegment, int)
- hasTransitions(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class AudioState
java.lang.Object
com.hypixel.hytale.protocol.AudioState
-
Field Summary
FieldsModifier and TypeFieldDescriptionintstatic final intstatic final intstatic final intbooleanString[]static final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionAudioState(AudioState other) AudioState(String id, AudioStateAuthority authority, String[] values, int defaultValueIndex, MusicSync defaultSyncTo, StateTransition defaultTransition, StateTransition[] transitions, boolean revertWhenInactive) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic AudioStateAuthoritystatic AudioStateAuthoritygetAuthority(MemorySegment mem, int offset) static MusicSyncstatic MusicSyncgetDefaultSyncTo(MemorySegment mem, int offset) static StateTransitionstatic StateTransitiongetDefaultTransition(MemorySegment mem, int offset) static intstatic intgetDefaultValueIndex(MemorySegment mem, int offset) static StringgetId(MemorySegment mem) static StringgetId(MemorySegment mem, int offset) static booleanstatic booleangetRevertWhenInactive(MemorySegment mem, int offset) static StateTransition[]static StateTransition[]getTransitions(MemorySegment mem, int offset) static String[]getValues(MemorySegment mem) static String[]getValues(MemorySegment mem, int offset) static booleanhasDefaultSyncTo(MemorySegment mem, int offset) static booleanhasDefaultTransition(MemorySegment mem, int offset) inthashCode()static booleanhasId(MemorySegment mem, int offset) static booleanhasTransitions(MemorySegment mem, int offset) static booleanhasValues(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static AudioStatetoObject(MemorySegment mem) static AudioStatetoObject(MemorySegment mem, int offset) static AudioStatetoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one AudioState 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
-
authority
-
values
-
defaultValueIndex
public int defaultValueIndex -
defaultSyncTo
-
defaultTransition
-
transitions
-
revertWhenInactive
public boolean revertWhenInactive
-
-
Constructor Details
-
AudioState
public AudioState() -
AudioState
public AudioState(@Nullable String id, @Nonnull AudioStateAuthority authority, @Nullable String[] values, int defaultValueIndex, @Nullable MusicSync defaultSyncTo, @Nullable StateTransition defaultTransition, @Nullable StateTransition[] transitions, boolean revertWhenInactive) -
AudioState
-
-
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
-
getAuthority
-
getAuthority
-
getValues
-
getValues
-
getDefaultValueIndex
-
getDefaultValueIndex
-
getDefaultSyncTo
-
getDefaultSyncTo
-
getDefaultTransition
-
getDefaultTransition
-
getTransitions
-
getTransitions
-
getRevertWhenInactive
-
getRevertWhenInactive
-
hasId
-
hasValues
-
hasDefaultSyncTo
-
hasDefaultTransition
-
hasTransitions
-
toObject
-
toObject
-
toObject
Decodes one AudioState 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
-