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.
- Mappings:
Namespace Name official eynintermediary net/minecraft/class_1107named net/minecraft/client/sound/MinecartInsideSoundInstance
-
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 static floatfield_33006private static floatfield_33007private 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
-
field_33006
private static final float field_33006- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official mLeyn;m:Fintermediary field_33006Lnet/minecraft/class_1107;field_33006:Fnamed field_33006Lnet/minecraft/client/sound/MinecartInsideSoundInstance;field_33006:F
-
field_33007
private static final float field_33007- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official nLeyn;n:Fintermediary field_33007Lnet/minecraft/class_1107;field_33007:Fnamed field_33007Lnet/minecraft/client/sound/MinecartInsideSoundInstance;field_33007:F
-
player
- Mappings:
Namespace Name Mixin selector official oLeyn;o:Lbjf;intermediary field_5457Lnet/minecraft/class_1107;field_5457:Lnet/minecraft/class_1657;named playerLnet/minecraft/client/sound/MinecartInsideSoundInstance;player:Lnet/minecraft/entity/player/PlayerEntity;
-
minecart
- Mappings:
Namespace Name Mixin selector official pLeyn;p:Lbku;intermediary field_5456Lnet/minecraft/class_1107;field_5456:Lnet/minecraft/class_1688;named minecartLnet/minecraft/client/sound/MinecartInsideSoundInstance;minecart:Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;
-
field_27773
private final boolean field_27773- Mappings:
Namespace Name Mixin selector official qLeyn;q:Zintermediary field_27773Lnet/minecraft/class_1107;field_27773:Znamed field_27773Lnet/minecraft/client/sound/MinecartInsideSoundInstance;field_27773:Z
-
-
Constructor Details
-
MinecartInsideSoundInstance
public MinecartInsideSoundInstance(PlayerEntity player, AbstractMinecartEntity minecart, boolean bool)- Mappings:
Namespace Name Mixin selector official <init>Leyn;<init>(Lbjf;Lbku;Z)Vintermediary <init>Lnet/minecraft/class_1107;<init>(Lnet/minecraft/class_1657;Lnet/minecraft/class_1688;Z)Vnamed <init>Lnet/minecraft/client/sound/MinecartInsideSoundInstance;<init>(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;Z)V
-
-
Method Details
-
canPlay
public boolean canPlay()- Mappings:
Namespace Name Mixin selector official sLeys;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 rLeys;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 qLeyt;q()Vintermediary method_16896Lnet/minecraft/class_1117;method_16896()Vnamed tickLnet/minecraft/client/sound/TickableSoundInstance;tick()V
-