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 net.minecraft.client.resources.sounds.SoundInstance
SoundInstance.Attenuation -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AbstractMinecartprivate final Playerprivate final booleanFields inherited from class net.minecraft.client.resources.sounds.AbstractSoundInstance
attenuation, delay, identifier, looping, pitch, random, relative, sound, source, volume, x, y, z -
Constructor Summary
ConstructorsConstructorDescriptionRidingMinecartSoundInstance(Player pPlayer, AbstractMinecart pMinecart, boolean pUnderwaterSound, SoundEvent pSoundEvent, float pVolumeMin, float pVolumeMax, float pVolumeAmplifier) -
Method Summary
Modifier and TypeMethodDescriptionprotected floatprotected booleanprotected booleanMethods inherited from class net.minecraft.client.resources.sounds.RidingEntitySoundInstance
canPlaySound, canStartSilent, tickMethods 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
-
minecart
-
underwaterSound
private final boolean underwaterSound
-
-
Constructor Details
-
RidingMinecartSoundInstance
public RidingMinecartSoundInstance(Player pPlayer, AbstractMinecart pMinecart, boolean pUnderwaterSound, SoundEvent pSoundEvent, float pVolumeMin, float pVolumeMax, float pVolumeAmplifier)
-
-
Method Details
-
shouldNotPlayUnderwaterSound
protected boolean shouldNotPlayUnderwaterSound()- Overrides:
shouldNotPlayUnderwaterSoundin classRidingEntitySoundInstance
-
getEntitySpeed
protected float getEntitySpeed()- Overrides:
getEntitySpeedin classRidingEntitySoundInstance
-
shoudlPlaySound
protected boolean shoudlPlaySound()- Overrides:
shoudlPlaySoundin classRidingEntitySoundInstance
-