Class AudioStateComponent

java.lang.Object
com.hypixel.hytale.builtin.audio.components.AudioStateComponent
All Implemented Interfaces:
Component<EntityStore>, Cloneable

public class AudioStateComponent extends Object implements Component<EntityStore>
Per-player component tracking current values of every server-authority AudioState axis.
  • Constructor Details

    • AudioStateComponent

      public AudioStateComponent()
  • Method Details

    • getComponentType

      public static ComponentType<EntityStore, AudioStateComponent> getComponentType()
    • setValue

      public void setValue(int axisIndex, int valueIndex, @Nullable StateTransition transitionOverride)
      Set the current value for a server-authority axis. The transition override (nullable) is the duration/curve/sync the client should use when applying this change. Null means "use the axis's matching transition from its edge list or DefaultTransition".
    • getCurrentValueIndices

      public int[] getCurrentValueIndices()
    • getValueVersions

      public int[] getValueVersions()
    • getActiveTransitionOverrides

      public StateTransition[] getActiveTransitionOverrides()
    • getLastSentValueVersions

      public int[] getLastSentValueVersions()
    • setLastSentValueVersion

      public void setLastSentValueVersion(int axisIndex, int version)
    • getPooledPacket

      @Nonnull public SetAudioState getPooledPacket()
    • clone

      @Nullable public Component<EntityStore> clone()
      Specified by:
      clone in interface Component<EntityStore>
      Returns:
      a clone instance of the original component instance.