classpublicPriority 1
SoundEvent
com.hypixel.hytale.server.core.asset.type.soundevent.config.SoundEvent
implements JsonAssetWithMap<String, IndexedLookupTableAssetMap<String, SoundEvent>>, NetworkSerializable
17
Methods
17
Public Methods
16
Fields
3
Constructors
Constants
AssetBuilderCodec<String, SoundEvent>CODEC= AssetBuilderCodec.builder(
SoundEvent.class, SoundEvent::new, Codec.STRING, (t, k) -> t....
StringEMPTY= "EMPTY"
intEMPTY_ID= 0
SoundEventEMPTY_SOUND_EVENT= new SoundEvent("EMPTY")
ValidatorCache<String>VALIDATOR_CACHE= new ValidatorCache<>(new AssetKeyValidator<>(SoundEvent::getAssetStore))
Constructors
protected
SoundEvent()public
SoundEvent(String id, float volume, float pitch, float musicDuckingVolume, float ambientDuckingVolume, float startAttenuationDistance, float maxDistance, int maxInstance, boolean preventSoundInterruption, SoundEventLayer[] layers)public
SoundEvent(String id)Methods
Public Methods (17)
public
float getAmbientDuckingVolume()publicstatic
IndexedLookupTableAssetMap<String, SoundEvent> getAssetMap()publicstatic
AssetStore<String, SoundEvent, IndexedLookupTableAssetMap<String, SoundEvent>> getAssetStore()public
String getAudioCategoryId()@Nullable
public
int getAudioCategoryIndex()public
int getHighestNumberOfChannels()public
String getId()public
SoundEventLayer[] getLayers()public
float getMaxDistance()public
int getMaxInstance()public
float getMusicDuckingVolume()public
float getPitch()public
boolean getPreventSoundInterruption()public
float getStartAttenuationDistance()public
float getVolume()public
com.hypixel.hytale.protocol.SoundEvent toPacket()@Nonnull
public
String toString()@Nonnull@Override
Fields
Protected Fields (14)
protected
transient float ambientDuckingVolumeprotected
String audioCategoryIdprotected
transient int audioCategoryIndexprotected
AssetExtraInfo.Data dataprotected
transient int highestNumberOfChannelsprotected
String idprotected
SoundEventLayer[] layersprotected
float maxDistanceprotected
int maxInstanceprotected
transient float musicDuckingVolumeprotected
transient float pitchprotected
boolean preventSoundInterruptionprotected
float startAttenuationDistanceprotected
transient float volumePrivate/Package Fields (2)
private
AssetStore<String, SoundEvent, IndexedLookupTableAssetMap<String, SoundEvent>> ASSET_STOREprivate
SoftReference<com.hypixel.hytale.protocol.SoundEvent> cachedPacket