Package net.minecraft.client.sound
Class MovingMinecartSoundInstance
java.lang.Object
net.minecraft.client.sound.AbstractSoundInstance
net.minecraft.client.sound.MovingSoundInstance
net.minecraft.client.sound.MovingMinecartSoundInstance
- All Implemented Interfaces:
SoundInstance,TickableSoundInstance
@Environment(CLIENT) public class MovingMinecartSoundInstance extends MovingSoundInstance
A sound instance played when a minecart is moving.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.sound.SoundInstance
SoundInstance.AttenuationType -
Field Summary
Fields Modifier and Type Field Description private floatdistanceprivate AbstractMinecartEntityminecartFields inherited from class net.minecraft.client.sound.AbstractSoundInstance
attenuationType, category, id, looping, pitch, repeat, repeatDelay, sound, volume, x, y, z -
Constructor Summary
Constructors Constructor Description MovingMinecartSoundInstance(AbstractMinecartEntity minecart) -
Method Summary
Modifier and Type Method Description booleancanPlay()booleanshouldAlwaysPlay()voidtick()Methods inherited from class net.minecraft.client.sound.MovingSoundInstance
isDone, setDoneMethods inherited from class net.minecraft.client.sound.AbstractSoundInstance
getAttenuationType, getCategory, getId, getPitch, getRepeatDelay, getSound, getSoundSet, getVolume, getX, getY, getZ, isLooping, isRepeatable, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.client.sound.SoundInstance
getAttenuationType, getCategory, getId, getPitch, getRepeatDelay, getSound, getSoundSet, getVolume, getX, getY, getZ, isLooping, isRepeatable
-
Field Details
-
minecart
-
distance
private float distance
-
-
Constructor Details
-
MovingMinecartSoundInstance
-
-
Method Details
-
canPlay
public boolean canPlay() -
shouldAlwaysPlay
public boolean shouldAlwaysPlay() -
tick
public void tick()
-