Contents
Class ForcedMusicTracker
java.lang.Object
com.hypixel.hytale.builtin.audio.components.ForcedMusicTracker
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
Per-player forced-music state. Holds the desired container index (the authoritative
value driving what this client should play), the last index already sent to the client
for dirty-checking, and a pooled
UpdateForcedMusic packet reused on each send.-
Field Summary
Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()static ComponentType<EntityStore, ForcedMusicTracker> intintvoidsetCurrentContainerIndex(int index) voidsetLastSentContainerIndex(int index) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Constructor Details
-
ForcedMusicTracker
public ForcedMusicTracker()
-
-
Method Details
-
getComponentType
-
setCurrentContainerIndex
public void setCurrentContainerIndex(int index) -
getCurrentContainerIndex
public int getCurrentContainerIndex() -
setLastSentContainerIndex
public void setLastSentContainerIndex(int index) -
getLastSentContainerIndex
public int getLastSentContainerIndex() -
getMusicPacket
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-