Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- HorizontalMusicContainer()
- HorizontalMusicContainer(float, int, float, Rangef, Rangef, float, float, MusicTransitionType, float, MusicSync, DestinationAlign, String, boolean, float, String, int, TempoSettings, StateBinding[], StingerBinding[], MusicTransitionType, float, int[], int, int[])
- HorizontalMusicContainer(HorizontalMusicContainer)
- Method Details
- requireBounds(MemorySegment, int)
- getVolume(MemorySegment)
- getVolume(MemorySegment, int)
- getLoopCount(MemorySegment)
- getLoopCount(MemorySegment, int)
- getWeight(MemorySegment)
- getWeight(MemorySegment, int)
- getSilenceAfter(MemorySegment)
- getSilenceAfter(MemorySegment, int)
- getExitSilence(MemorySegment)
- getExitSilence(MemorySegment, int)
- getFadeInDuration(MemorySegment)
- getFadeInDuration(MemorySegment, int)
- getFadeOutDuration(MemorySegment)
- getFadeOutDuration(MemorySegment, int)
- getTransitionType(MemorySegment)
- getTransitionType(MemorySegment, int)
- getTransitionDuration(MemorySegment)
- getTransitionDuration(MemorySegment, int)
- getExitAt(MemorySegment)
- getExitAt(MemorySegment, int)
- getAlign(MemorySegment)
- getAlign(MemorySegment, int)
- getAlignMarkerName(MemorySegment)
- getAlignMarkerName(MemorySegment, int)
- getPlayToCompletion(MemorySegment)
- getPlayToCompletion(MemorySegment, int)
- getResumeMemoryDuration(MemorySegment)
- getResumeMemoryDuration(MemorySegment, int)
- getNameTranslationKey(MemorySegment)
- getNameTranslationKey(MemorySegment, int)
- getAudioCategoryIndex(MemorySegment)
- getAudioCategoryIndex(MemorySegment, int)
- getTempo(MemorySegment)
- getTempo(MemorySegment, int)
- getStateBindings(MemorySegment)
- getStateBindings(MemorySegment, int)
- getStingers(MemorySegment)
- getStingers(MemorySegment, int)
- getDefaultPhaseTransitionType(MemorySegment)
- getDefaultPhaseTransitionType(MemorySegment, int)
- getDefaultPhaseTransitionDuration(MemorySegment)
- getDefaultPhaseTransitionDuration(MemorySegment, int)
- getChildren(MemorySegment)
- getChildren(MemorySegment, int)
- getAudioStateIndex(MemorySegment)
- getAudioStateIndex(MemorySegment, int)
- getPhaseValueIndices(MemorySegment)
- getPhaseValueIndices(MemorySegment, int)
- hasSilenceAfter(MemorySegment, int)
- hasExitSilence(MemorySegment, int)
- hasAlign(MemorySegment, int)
- hasTempo(MemorySegment, int)
- hasExitAt(MemorySegment, int)
- hasAlignMarkerName(MemorySegment, int)
- hasNameTranslationKey(MemorySegment, int)
- hasStateBindings(MemorySegment, int)
- hasStingers(MemorySegment, int)
- hasChildren(MemorySegment, int)
- hasPhaseValueIndices(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class HorizontalMusicContainer
java.lang.Object
com.hypixel.hytale.protocol.MusicContainer
com.hypixel.hytale.protocol.HorizontalMusicContainer
-
Field Summary
FieldsModifier and TypeFieldDescriptionintint[]floatstatic final intstatic final intstatic final intint[]static final intstatic final intFields inherited from class MusicContainer
align, alignMarkerName, audioCategoryIndex, exitAt, exitSilence, fadeInDuration, fadeOutDuration, loopCount, nameTranslationKey, playToCompletion, resumeMemoryDuration, silenceAfter, stateBindings, stingers, tempo, transitionDuration, transitionType, volume, weight -
Constructor Summary
ConstructorsConstructorDescriptionHorizontalMusicContainer(float volume, int loopCount, float weight, Rangef silenceAfter, Rangef exitSilence, float fadeInDuration, float fadeOutDuration, MusicTransitionType transitionType, float transitionDuration, MusicSync exitAt, DestinationAlign align, String alignMarkerName, boolean playToCompletion, float resumeMemoryDuration, String nameTranslationKey, int audioCategoryIndex, TempoSettings tempo, StateBinding[] stateBindings, StingerBinding[] stingers, MusicTransitionType defaultPhaseTransitionType, float defaultPhaseTransitionDuration, int[] children, int audioStateIndex, int[] phaseValueIndices) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic DestinationAligngetAlign(MemorySegment mem) static DestinationAligngetAlign(MemorySegment mem, int offset) static Stringstatic StringgetAlignMarkerName(MemorySegment mem, int offset) static intstatic intgetAudioCategoryIndex(MemorySegment mem, int offset) static intstatic intgetAudioStateIndex(MemorySegment mem, int offset) static int[]getChildren(MemorySegment mem) static int[]getChildren(MemorySegment mem, int offset) static floatstatic floatgetDefaultPhaseTransitionDuration(MemorySegment mem, int offset) static MusicTransitionTypestatic MusicTransitionTypegetDefaultPhaseTransitionType(MemorySegment mem, int offset) static MusicSyncgetExitAt(MemorySegment mem) static MusicSyncgetExitAt(MemorySegment mem, int offset) static Rangefstatic RangefgetExitSilence(MemorySegment mem, int offset) static floatstatic floatgetFadeInDuration(MemorySegment mem, int offset) static floatstatic floatgetFadeOutDuration(MemorySegment mem, int offset) static intstatic intgetLoopCount(MemorySegment mem, int offset) static Stringstatic StringgetNameTranslationKey(MemorySegment mem, int offset) static int[]static int[]getPhaseValueIndices(MemorySegment mem, int offset) static booleanstatic booleangetPlayToCompletion(MemorySegment mem, int offset) static floatstatic floatgetResumeMemoryDuration(MemorySegment mem, int offset) static Rangefstatic RangefgetSilenceAfter(MemorySegment mem, int offset) static StateBinding[]static StateBinding[]getStateBindings(MemorySegment mem, int offset) static StingerBinding[]getStingers(MemorySegment mem) static StingerBinding[]getStingers(MemorySegment mem, int offset) static TempoSettingsgetTempo(MemorySegment mem) static TempoSettingsgetTempo(MemorySegment mem, int offset) static floatstatic floatgetTransitionDuration(MemorySegment mem, int offset) static MusicTransitionTypestatic MusicTransitionTypegetTransitionType(MemorySegment mem, int offset) static floatgetVolume(MemorySegment mem) static floatgetVolume(MemorySegment mem, int offset) static floatgetWeight(MemorySegment mem) static floatgetWeight(MemorySegment mem, int offset) static booleanhasAlign(MemorySegment mem, int offset) static booleanhasAlignMarkerName(MemorySegment mem, int offset) static booleanhasChildren(MemorySegment mem, int offset) static booleanhasExitAt(MemorySegment mem, int offset) static booleanhasExitSilence(MemorySegment mem, int offset) inthashCode()static booleanhasNameTranslationKey(MemorySegment mem, int offset) static booleanhasPhaseValueIndices(MemorySegment mem, int offset) static booleanhasSilenceAfter(MemorySegment mem, int offset) static booleanhasStateBindings(MemorySegment mem, int offset) static booleanhasStingers(MemorySegment mem, int offset) static booleanhasTempo(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static HorizontalMusicContainertoObject(MemorySegment mem) static HorizontalMusicContainertoObject(MemorySegment mem, int offset) static HorizontalMusicContainertoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one HorizontalMusicContainer and reports the end of its encoding through the cursor.Methods inherited from class MusicContainer
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:
-
defaultPhaseTransitionType
-
defaultPhaseTransitionDuration
public float defaultPhaseTransitionDuration -
children
@Nullable public int[] children -
audioStateIndex
public int audioStateIndex -
phaseValueIndices
@Nullable public int[] phaseValueIndices
-
-
Constructor Details
-
HorizontalMusicContainer
public HorizontalMusicContainer() -
HorizontalMusicContainer
public HorizontalMusicContainer(float volume, int loopCount, float weight, @Nullable Rangef silenceAfter, @Nullable Rangef exitSilence, float fadeInDuration, float fadeOutDuration, @Nonnull MusicTransitionType transitionType, float transitionDuration, @Nullable MusicSync exitAt, @Nullable DestinationAlign align, @Nullable String alignMarkerName, boolean playToCompletion, float resumeMemoryDuration, @Nullable String nameTranslationKey, int audioCategoryIndex, @Nullable TempoSettings tempo, @Nullable StateBinding[] stateBindings, @Nullable StingerBinding[] stingers, @Nonnull MusicTransitionType defaultPhaseTransitionType, float defaultPhaseTransitionDuration, @Nullable int[] children, int audioStateIndex, @Nullable int[] phaseValueIndices) -
HorizontalMusicContainer
-
-
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. -
getVolume
-
getVolume
-
getLoopCount
-
getLoopCount
-
getWeight
-
getWeight
-
getSilenceAfter
-
getSilenceAfter
-
getExitSilence
-
getExitSilence
-
getFadeInDuration
-
getFadeInDuration
-
getFadeOutDuration
-
getFadeOutDuration
-
getTransitionType
-
getTransitionType
-
getTransitionDuration
-
getTransitionDuration
-
getExitAt
-
getExitAt
-
getAlign
-
getAlign
-
getAlignMarkerName
-
getAlignMarkerName
-
getPlayToCompletion
-
getPlayToCompletion
-
getResumeMemoryDuration
-
getResumeMemoryDuration
-
getNameTranslationKey
-
getNameTranslationKey
-
getAudioCategoryIndex
-
getAudioCategoryIndex
-
getTempo
-
getTempo
-
getStateBindings
-
getStateBindings
-
getStingers
-
getStingers
-
getDefaultPhaseTransitionType
-
getDefaultPhaseTransitionType
-
getDefaultPhaseTransitionDuration
-
getDefaultPhaseTransitionDuration
-
getChildren
-
getChildren
-
getAudioStateIndex
-
getAudioStateIndex
-
getPhaseValueIndices
-
getPhaseValueIndices
-
hasSilenceAfter
-
hasExitSilence
-
hasAlign
-
hasTempo
-
hasExitAt
-
hasAlignMarkerName
-
hasNameTranslationKey
-
hasStateBindings
-
hasStingers
-
hasChildren
-
hasPhaseValueIndices
-
toObject
-
toObject
-
toObject
public static HorizontalMusicContainer toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor) Decodes one HorizontalMusicContainer 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 classMusicContainer
-
computeSize
public int computeSize()- Specified by:
computeSizein classMusicContainer
-
clone
-
equals
-
hashCode
-