Contents
Class AudioComponent
java.lang.Object
com.hypixel.hytale.server.core.modules.entity.component.AudioComponent
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
-
Field Summary
Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSound(int soundIndex) clone()booleanstatic ComponentType<EntityStore, AudioComponent> int[]Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Constructor Details
-
AudioComponent
public AudioComponent() -
AudioComponent
public AudioComponent(it.unimi.dsi.fastutil.ints.IntList soundEventIds)
-
-
Method Details
-
getComponentType
-
getSoundEventIds
public int[] getSoundEventIds() -
addSound
public void addSound(int soundIndex) -
consumeNetworkOutdated
public boolean consumeNetworkOutdated() -
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-