Class RidingMinecartSoundInstance
java.lang.Object
net.minecraft.client.resources.sounds.AbstractSoundInstance
net.minecraft.client.resources.sounds.AbstractTickableSoundInstance
net.minecraft.client.resources.sounds.RidingEntitySoundInstance
net.minecraft.client.resources.sounds.RidingMinecartSoundInstance
- All Implemented Interfaces:
SoundInstance, TickableSoundInstance
-
Nested Class Summary
Nested classes/interfaces inherited from interface SoundInstance
SoundInstance.Attenuation -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AbstractMinecartprivate final Playerprivate final booleanFields inherited from class AbstractSoundInstance
attenuation, delay, identifier, looping, pitch, random, relative, sound, source, volume, x, y, z -
Constructor Summary
ConstructorsConstructorDescriptionRidingMinecartSoundInstance(Player player, AbstractMinecart minecart, boolean underwaterSound, SoundEvent soundEvent, float volumeMin, float volumeMax, float volumeAmplifier) -
Method Summary
Modifier and TypeMethodDescriptionprotected floatprotected booleanprotected booleanMethods inherited from class RidingEntitySoundInstance
canPlaySound, canStartSilent, tickMethods inherited from class AbstractTickableSoundInstance
isStopped, stopMethods inherited from class AbstractSoundInstance
getAttenuation, getDelay, getIdentifier, getPitch, getSound, getSource, getVolume, getX, getY, getZ, isLooping, isRelative, resolve, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface SoundInstance
getAttenuation, getDelay, getIdentifier, getPitch, getSound, getSource, getStream, getVolume, getX, getY, getZ, isLooping, isRelative, resolve
-
Field Details
-
player
-
minecart
-
underwaterSound
private final boolean underwaterSound
-
-
Constructor Details
-
RidingMinecartSoundInstance
public RidingMinecartSoundInstance(Player player, AbstractMinecart minecart, boolean underwaterSound, SoundEvent soundEvent, float volumeMin, float volumeMax, float volumeAmplifier)
-
-
Method Details
-
shouldNotPlayUnderwaterSound
protected boolean shouldNotPlayUnderwaterSound()- Overrides:
shouldNotPlayUnderwaterSoundin classRidingEntitySoundInstance
-
getEntitySpeed
protected float getEntitySpeed()- Overrides:
getEntitySpeedin classRidingEntitySoundInstance
-
shoudlPlaySound
protected boolean shoudlPlaySound()- Overrides:
shoudlPlaySoundin classRidingEntitySoundInstance
-