Contents
Class AudioStateComponent
java.lang.Object
com.hypixel.hytale.builtin.audio.components.AudioStateComponent
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
Per-player component tracking current values of every server-authority
AudioState
axis.-
Field Summary
Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()static ComponentType<EntityStore, AudioStateComponent> int[]int[]int[]voidsetLastSentValueVersion(int axisIndex, int version) voidsetValue(int axisIndex, int valueIndex, StateTransition transitionOverride) Set the current value for a server-authority axis.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Constructor Details
-
AudioStateComponent
public AudioStateComponent()
-
-
Method Details
-
getComponentType
-
setValue
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
-
getLastSentValueVersions
public int[] getLastSentValueVersions() -
setLastSentValueVersion
public void setLastSentValueVersion(int axisIndex, int version) -
getPooledPacket
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-