Class RidingMinecartSoundInstance
java.lang.Object
net.minecraft.client.resources.sounds.AbstractSoundInstance
net.minecraft.client.resources.sounds.AbstractTickableSoundInstance
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 AbstractMinecartprivate Playerprivate booleanprivate static floatprivate static float -
Constructor Summary
ConstructorsConstructorDescriptionRidingMinecartSoundInstance(Player p_174940_, AbstractMinecart p_174941_, boolean p_174942_) -
Method Summary
Methods inherited from class net.minecraft.client.resources.sounds.AbstractTickableSoundInstance
isStopped, stopMethods inherited from class net.minecraft.client.resources.sounds.AbstractSoundInstance
getAttenuation, getDelay, getLocation, 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, getLocation, getPitch, getSound, getSource, getVolume, getX, getY, getZ, isLooping, isRelative, resolve
-
Field Details
-
VOLUME_MIN
private static final float VOLUME_MIN- See Also:
- Constant Field Values
-
VOLUME_MAX
private static final float VOLUME_MAX- See Also:
- Constant Field Values
-
player
-
minecart
-
underwaterSound
private final boolean underwaterSound
-
-
Constructor Details
-
RidingMinecartSoundInstance
public RidingMinecartSoundInstance(Player p_174940_, AbstractMinecart p_174941_, boolean p_174942_)
-
-
Method Details
-
canPlaySound
public boolean canPlaySound() -
canStartSilent
public boolean canStartSilent() -
tick
public void tick()
-