Class HorizontalMusicContainer

java.lang.Object
com.hypixel.hytale.protocol.MusicContainer
com.hypixel.hytale.protocol.HorizontalMusicContainer

public class HorizontalMusicContainer extends MusicContainer
  • 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

      @Nonnull public MusicTransitionType 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

      public HorizontalMusicContainer(@Nonnull HorizontalMusicContainer other)
  • Method Details

    • requireBounds

      public static void requireBounds(MemorySegment mem, int offset)
      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

      public static float getVolume(MemorySegment mem)
    • getVolume

      public static float getVolume(MemorySegment mem, int offset)
    • getLoopCount

      public static int getLoopCount(MemorySegment mem)
    • getLoopCount

      public static int getLoopCount(MemorySegment mem, int offset)
    • getWeight

      public static float getWeight(MemorySegment mem)
    • getWeight

      public static float getWeight(MemorySegment mem, int offset)
    • getSilenceAfter

      @Nullable public static Rangef getSilenceAfter(MemorySegment mem)
    • getSilenceAfter

      @Nullable public static Rangef getSilenceAfter(MemorySegment mem, int offset)
    • getExitSilence

      @Nullable public static Rangef getExitSilence(MemorySegment mem)
    • getExitSilence

      @Nullable public static Rangef getExitSilence(MemorySegment mem, int offset)
    • getFadeInDuration

      public static float getFadeInDuration(MemorySegment mem)
    • getFadeInDuration

      public static float getFadeInDuration(MemorySegment mem, int offset)
    • getFadeOutDuration

      public static float getFadeOutDuration(MemorySegment mem)
    • getFadeOutDuration

      public static float getFadeOutDuration(MemorySegment mem, int offset)
    • getTransitionType

      public static MusicTransitionType getTransitionType(MemorySegment mem)
    • getTransitionType

      public static MusicTransitionType getTransitionType(MemorySegment mem, int offset)
    • getTransitionDuration

      public static float getTransitionDuration(MemorySegment mem)
    • getTransitionDuration

      public static float getTransitionDuration(MemorySegment mem, int offset)
    • getExitAt

      @Nullable public static MusicSync getExitAt(MemorySegment mem)
    • getExitAt

      @Nullable public static MusicSync getExitAt(MemorySegment mem, int offset)
    • getAlign

      @Nullable public static DestinationAlign getAlign(MemorySegment mem)
    • getAlign

      @Nullable public static DestinationAlign getAlign(MemorySegment mem, int offset)
    • getAlignMarkerName

      @Nullable public static String getAlignMarkerName(MemorySegment mem)
    • getAlignMarkerName

      @Nullable public static String getAlignMarkerName(MemorySegment mem, int offset)
    • getPlayToCompletion

      public static boolean getPlayToCompletion(MemorySegment mem)
    • getPlayToCompletion

      public static boolean getPlayToCompletion(MemorySegment mem, int offset)
    • getResumeMemoryDuration

      public static float getResumeMemoryDuration(MemorySegment mem)
    • getResumeMemoryDuration

      public static float getResumeMemoryDuration(MemorySegment mem, int offset)
    • getNameTranslationKey

      @Nullable public static String getNameTranslationKey(MemorySegment mem)
    • getNameTranslationKey

      @Nullable public static String getNameTranslationKey(MemorySegment mem, int offset)
    • getAudioCategoryIndex

      public static int getAudioCategoryIndex(MemorySegment mem)
    • getAudioCategoryIndex

      public static int getAudioCategoryIndex(MemorySegment mem, int offset)
    • getTempo

      @Nullable public static TempoSettings getTempo(MemorySegment mem)
    • getTempo

      @Nullable public static TempoSettings getTempo(MemorySegment mem, int offset)
    • getStateBindings

      @Nullable public static StateBinding[] getStateBindings(MemorySegment mem)
    • getStateBindings

      @Nullable public static StateBinding[] getStateBindings(MemorySegment mem, int offset)
    • getStingers

      @Nullable public static StingerBinding[] getStingers(MemorySegment mem)
    • getStingers

      @Nullable public static StingerBinding[] getStingers(MemorySegment mem, int offset)
    • getDefaultPhaseTransitionType

      public static MusicTransitionType getDefaultPhaseTransitionType(MemorySegment mem)
    • getDefaultPhaseTransitionType

      public static MusicTransitionType getDefaultPhaseTransitionType(MemorySegment mem, int offset)
    • getDefaultPhaseTransitionDuration

      public static float getDefaultPhaseTransitionDuration(MemorySegment mem)
    • getDefaultPhaseTransitionDuration

      public static float getDefaultPhaseTransitionDuration(MemorySegment mem, int offset)
    • getChildren

      @Nullable public static int[] getChildren(MemorySegment mem)
    • getChildren

      @Nullable public static int[] getChildren(MemorySegment mem, int offset)
    • getAudioStateIndex

      public static int getAudioStateIndex(MemorySegment mem)
    • getAudioStateIndex

      public static int getAudioStateIndex(MemorySegment mem, int offset)
    • getPhaseValueIndices

      @Nullable public static int[] getPhaseValueIndices(MemorySegment mem)
    • getPhaseValueIndices

      @Nullable public static int[] getPhaseValueIndices(MemorySegment mem, int offset)
    • hasSilenceAfter

      public static boolean hasSilenceAfter(MemorySegment mem, int offset)
    • hasExitSilence

      public static boolean hasExitSilence(MemorySegment mem, int offset)
    • hasAlign

      public static boolean hasAlign(MemorySegment mem, int offset)
    • hasTempo

      public static boolean hasTempo(MemorySegment mem, int offset)
    • hasExitAt

      public static boolean hasExitAt(MemorySegment mem, int offset)
    • hasAlignMarkerName

      public static boolean hasAlignMarkerName(MemorySegment mem, int offset)
    • hasNameTranslationKey

      public static boolean hasNameTranslationKey(MemorySegment mem, int offset)
    • hasStateBindings

      public static boolean hasStateBindings(MemorySegment mem, int offset)
    • hasStingers

      public static boolean hasStingers(MemorySegment mem, int offset)
    • hasChildren

      public static boolean hasChildren(MemorySegment mem, int offset)
    • hasPhaseValueIndices

      public static boolean hasPhaseValueIndices(MemorySegment mem, int offset)
    • toObject

      public static HorizontalMusicContainer toObject(MemorySegment mem)
    • toObject

      public static HorizontalMusicContainer toObject(MemorySegment mem, int offset)
    • 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

      public int serialize(@Nonnull MemorySegment mem, int offset)
      Specified by:
      serialize in class MusicContainer
    • computeSize

      public int computeSize()
      Specified by:
      computeSize in class MusicContainer
    • clone

      public HorizontalMusicContainer clone()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object