Class RidingEntitySoundInstance
java.lang.Object
net.minecraft.client.resources.sounds.AbstractSoundInstance
net.minecraft.client.resources.sounds.AbstractTickableSoundInstance
net.minecraft.client.resources.sounds.RidingEntitySoundInstance
- All Implemented Interfaces:
SoundInstance,TickableSoundInstance
- Direct Known Subclasses:
RidingMinecartSoundInstance
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.resources.sounds.SoundInstance
SoundInstance.Attenuation -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Entityprivate final Playerprivate final booleanprivate final floatprivate final floatprivate final floatFields inherited from class net.minecraft.client.resources.sounds.AbstractSoundInstance
attenuation, delay, identifier, looping, pitch, random, relative, sound, source, volume, x, y, z -
Constructor Summary
ConstructorsConstructorDescriptionRidingEntitySoundInstance(Player player, Entity entity, boolean underwaterSound, SoundEvent soundEvent, SoundSource source, float volumeMin, float volumeMax, float volumeAmplifier) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanprotected floatprotected booleanprotected booleanvoidtick()Methods inherited from class net.minecraft.client.resources.sounds.AbstractTickableSoundInstance
isStopped, stopMethods inherited from class net.minecraft.client.resources.sounds.AbstractSoundInstance
getAttenuation, getDelay, getIdentifier, getPitch, getSound, getSource, getVolume, getX, getY, getZ, isLooping, isRelative, resolve, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.client.resources.sounds.SoundInstance
getAttenuation, getDelay, getIdentifier, getPitch, getSound, getSource, getStream, getVolume, getX, getY, getZ, isLooping, isRelative, resolve
-
Field Details
-
player
-
entity
-
underwaterSound
private final boolean underwaterSound -
volumeMin
private final float volumeMin -
volumeMax
private final float volumeMax -
volumeAmplifier
private final float volumeAmplifier
-
-
Constructor Details
-
RidingEntitySoundInstance
public RidingEntitySoundInstance(Player player, Entity entity, boolean underwaterSound, SoundEvent soundEvent, SoundSource source, float volumeMin, float volumeMax, float volumeAmplifier)
-
-
Method Details
-
canPlaySound
public boolean canPlaySound() -
canStartSilent
public boolean canStartSilent() -
shouldNotPlayUnderwaterSound
protected boolean shouldNotPlayUnderwaterSound() -
getEntitySpeed
protected float getEntitySpeed() -
shoudlPlaySound
protected boolean shoudlPlaySound() -
tick
public void tick()
-