Class AudioComponent
java.lang.Object
com.hypixel.hytale.server.core.modules.entity.component.AudioComponent
- All Implemented Interfaces:
Component<EntityStore>,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate it.unimi.dsi.fastutil.ints.IntListFields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSound(int soundIndex) clone()booleanstatic ComponentType<EntityStore, AudioComponent> int[]Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.Component
cloneSerializable
-
Field Details
-
soundEventIds
private it.unimi.dsi.fastutil.ints.IntList soundEventIds -
isNetworkOutdated
private boolean isNetworkOutdated
-
-
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>- Overrides:
clonein classObject
-