Class MusicTransition

java.lang.Object
com.hypixel.hytale.protocol.MusicTransition

public class MusicTransition extends Object
  • 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

      @Nullable public String id
    • fromContainerIndices

      @Nullable public int[] fromContainerIndices
    • toContainerIndices

      @Nullable public int[] toContainerIndices
    • exitAt

      @Nullable public MusicSync exitAt
    • align

      @Nonnull public DestinationAlign align
    • alignMarkerName

      @Nullable public String alignMarkerName
    • fadeOutDuration

      @Nullable public BarBeatDuration fadeOutDuration
    • fadeOutCurve

      @Nonnull public FadeCurve fadeOutCurve
    • fadeOutDelay

      @Nullable public BarBeatDuration fadeOutDelay
    • fadeInDuration

      @Nullable public BarBeatDuration fadeInDuration
    • fadeInCurve

      @Nonnull public FadeCurve fadeInCurve
    • playPostExit

      public boolean playPostExit
    • postEvent

      @Nullable public String postEvent
    • priority

      public int priority
    • specificity

      public int specificity
  • Constructor Details

    • MusicTransition

      public MusicTransition()
    • MusicTransition

      public MusicTransition(@Nullable String id, @Nullable int[] fromContainerIndices, @Nullable int[] toContainerIndices, @Nullable MusicSync exitAt, @Nonnull DestinationAlign align, @Nullable String alignMarkerName, @Nullable BarBeatDuration fadeOutDuration, @Nonnull FadeCurve fadeOutCurve, @Nullable BarBeatDuration fadeOutDelay, @Nullable BarBeatDuration fadeInDuration, @Nonnull FadeCurve fadeInCurve, boolean playPostExit, @Nullable String postEvent, int priority, int specificity)
    • MusicTransition

      public MusicTransition(@Nonnull MusicTransition 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.
    • getId

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

      @Nullable public static String getId(MemorySegment mem, int offset)
    • getFromContainerIndices

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

      @Nullable public static int[] getFromContainerIndices(MemorySegment mem, int offset)
    • getToContainerIndices

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

      @Nullable public static int[] getToContainerIndices(MemorySegment mem, int offset)
    • getExitAt

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

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

      public static DestinationAlign getAlign(MemorySegment mem)
    • getAlign

      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)
    • getFadeOutDuration

      @Nullable public static BarBeatDuration getFadeOutDuration(MemorySegment mem)
    • getFadeOutDuration

      @Nullable public static BarBeatDuration getFadeOutDuration(MemorySegment mem, int offset)
    • getFadeOutCurve

      public static FadeCurve getFadeOutCurve(MemorySegment mem)
    • getFadeOutCurve

      public static FadeCurve getFadeOutCurve(MemorySegment mem, int offset)
    • getFadeOutDelay

      @Nullable public static BarBeatDuration getFadeOutDelay(MemorySegment mem)
    • getFadeOutDelay

      @Nullable public static BarBeatDuration getFadeOutDelay(MemorySegment mem, int offset)
    • getFadeInDuration

      @Nullable public static BarBeatDuration getFadeInDuration(MemorySegment mem)
    • getFadeInDuration

      @Nullable public static BarBeatDuration getFadeInDuration(MemorySegment mem, int offset)
    • getFadeInCurve

      public static FadeCurve getFadeInCurve(MemorySegment mem)
    • getFadeInCurve

      public static FadeCurve getFadeInCurve(MemorySegment mem, int offset)
    • getPlayPostExit

      public static boolean getPlayPostExit(MemorySegment mem)
    • getPlayPostExit

      public static boolean getPlayPostExit(MemorySegment mem, int offset)
    • getPostEvent

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

      @Nullable public static String getPostEvent(MemorySegment mem, int offset)
    • getPriority

      public static int getPriority(MemorySegment mem)
    • getPriority

      public static int getPriority(MemorySegment mem, int offset)
    • getSpecificity

      public static int getSpecificity(MemorySegment mem)
    • getSpecificity

      public static int getSpecificity(MemorySegment mem, int offset)
    • hasFadeOutDuration

      public static boolean hasFadeOutDuration(MemorySegment mem, int offset)
    • hasFadeOutDelay

      public static boolean hasFadeOutDelay(MemorySegment mem, int offset)
    • hasFadeInDuration

      public static boolean hasFadeInDuration(MemorySegment mem, int offset)
    • hasId

      public static boolean hasId(MemorySegment mem, int offset)
    • hasFromContainerIndices

      public static boolean hasFromContainerIndices(MemorySegment mem, int offset)
    • hasToContainerIndices

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

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

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

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

      public static MusicTransition toObject(MemorySegment mem)
    • toObject

      public static MusicTransition toObject(MemorySegment mem, int offset)
    • toObject

      public static MusicTransition toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor)
      Decodes one MusicTransition 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)
    • computeSize

      public int computeSize()
    • clone

      public MusicTransition clone()
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object