HyCodeYourTale
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)

protectedtransient float ambientDuckingVolume
protectedString audioCategoryId
protectedtransient int audioCategoryIndex
protectedAssetExtraInfo.Data data
protectedtransient int highestNumberOfChannels
protectedString id
protectedSoundEventLayer[] layers
protectedfloat maxDistance
protectedint maxInstance
protectedtransient float musicDuckingVolume
protectedtransient float pitch
protectedboolean preventSoundInterruption
protectedfloat startAttenuationDistance
protectedtransient float volume

Private/Package Fields (2)

privateAssetStore<String, SoundEvent, IndexedLookupTableAssetMap<String, SoundEvent>> ASSET_STORE
privateSoftReference<com.hypixel.hytale.protocol.SoundEvent> cachedPacket

Related Classes