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.
- Mappings:
Namespace Name official eufintermediary net/minecraft/class_1108named net/minecraft/client/sound/MovingMinecartSoundInstance
-
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
- Mappings:
Namespace Name Mixin selector official mLeuf;m:Lbja;intermediary field_5458Lnet/minecraft/class_1108;field_5458:Lnet/minecraft/class_1688;named minecartLnet/minecraft/client/sound/MovingMinecartSoundInstance;minecart:Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;
-
distance
private float distance- Mappings:
Namespace Name Mixin selector official nLeuf;n:Fintermediary field_5459Lnet/minecraft/class_1108;field_5459:Fnamed distanceLnet/minecraft/client/sound/MovingMinecartSoundInstance;distance:F
-
-
Constructor Details
-
MovingMinecartSoundInstance
- Mappings:
Namespace Name Mixin selector official <init>Leuf;<init>(Lbja;)Vintermediary <init>Lnet/minecraft/class_1108;<init>(Lnet/minecraft/class_1688;)Vnamed <init>Lnet/minecraft/client/sound/MovingMinecartSoundInstance;<init>(Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;)V
-
-
Method Details
-
canPlay
public boolean canPlay()- Mappings:
Namespace Name Mixin selector official sLeul;s()Zintermediary method_26273Lnet/minecraft/class_1113;method_26273()Znamed canPlayLnet/minecraft/client/sound/SoundInstance;canPlay()Z
-
shouldAlwaysPlay
public boolean shouldAlwaysPlay()- Mappings:
Namespace Name Mixin selector official rLeul;r()Zintermediary method_4785Lnet/minecraft/class_1113;method_4785()Znamed shouldAlwaysPlayLnet/minecraft/client/sound/SoundInstance;shouldAlwaysPlay()Z
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector official qLeum;q()Vintermediary method_16896Lnet/minecraft/class_1117;method_16896()Vnamed tickLnet/minecraft/client/sound/TickableSoundInstance;tick()V
-