Package net.minecraft.client.sound
Class MinecartInsideSoundInstance
java.lang.Object
net.minecraft.client.sound.AbstractSoundInstance
net.minecraft.client.sound.MovingSoundInstance
net.minecraft.client.sound.MinecartInsideSoundInstance
- All Implemented Interfaces:
SoundInstance,TickableSoundInstance
@Environment(CLIENT) public class MinecartInsideSoundInstance extends MovingSoundInstance
A sound instance played when a player is riding a minecart.
-
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 booleanfield_27773private AbstractMinecartEntityminecartprivate PlayerEntityplayerFields 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 MinecartInsideSoundInstance(PlayerEntity player, AbstractMinecartEntity minecart, boolean bool) -
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
-
player
-
minecart
-
field_27773
private final boolean field_27773
-
-
Constructor Details
-
MinecartInsideSoundInstance
public MinecartInsideSoundInstance(PlayerEntity player, AbstractMinecartEntity minecart, boolean bool)
-
-
Method Details
-
canPlay
public boolean canPlay() -
shouldAlwaysPlay
public boolean shouldAlwaysPlay() -
tick
public void tick()
-