Package net.minecraft.sound
Class MusicSound
java.lang.Object
net.minecraft.sound.MusicSound
public class MusicSound extends Object
- Mappings:
Namespace Name official aed
intermediary net/minecraft/class_5195
named net/minecraft/sound/MusicSound
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<MusicSound>
CODEC
private int
maxDelay
private int
minDelay
private boolean
replaceCurrentMusic
private SoundEvent
sound
-
Constructor Summary
Constructors Constructor Description MusicSound(SoundEvent sound, int minDelay, int maxDelay, boolean replaceCurrentMusic)
-
Method Summary
Modifier and Type Method Description int
getMaxDelay()
int
getMinDelay()
SoundEvent
getSound()
boolean
shouldReplaceCurrentMusic()
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official a
Laed;a:Lcom/mojang/serialization/Codec;
intermediary field_24627
Lnet/minecraft/class_5195;field_24627:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/sound/MusicSound;CODEC:Lcom/mojang/serialization/Codec;
-
sound
- Mappings:
Namespace Name Mixin selector official b
Laed;b:Laef;
intermediary field_24057
Lnet/minecraft/class_5195;field_24057:Lnet/minecraft/class_3414;
named sound
Lnet/minecraft/sound/MusicSound;sound:Lnet/minecraft/sound/SoundEvent;
-
minDelay
private final int minDelay- Mappings:
Namespace Name Mixin selector official c
Laed;c:I
intermediary field_24058
Lnet/minecraft/class_5195;field_24058:I
named minDelay
Lnet/minecraft/sound/MusicSound;minDelay:I
-
maxDelay
private final int maxDelay- Mappings:
Namespace Name Mixin selector official d
Laed;d:I
intermediary field_24059
Lnet/minecraft/class_5195;field_24059:I
named maxDelay
Lnet/minecraft/sound/MusicSound;maxDelay:I
-
replaceCurrentMusic
private final boolean replaceCurrentMusic- Mappings:
Namespace Name Mixin selector official e
Laed;e:Z
intermediary field_24060
Lnet/minecraft/class_5195;field_24060:Z
named replaceCurrentMusic
Lnet/minecraft/sound/MusicSound;replaceCurrentMusic:Z
-
-
Constructor Details
-
MusicSound
- Mappings:
Namespace Name Mixin selector official <init>
Laed;<init>(Laef;IIZ)V
intermediary <init>
Lnet/minecraft/class_5195;<init>(Lnet/minecraft/class_3414;IIZ)V
named <init>
Lnet/minecraft/sound/MusicSound;<init>(Lnet/minecraft/sound/SoundEvent;IIZ)V
-
-
Method Details
-
getSound
- Mappings:
Namespace Name Mixin selector official a
Laed;a()Laef;
intermediary method_27279
Lnet/minecraft/class_5195;method_27279()Lnet/minecraft/class_3414;
named getSound
Lnet/minecraft/sound/MusicSound;getSound()Lnet/minecraft/sound/SoundEvent;
-
getMinDelay
- Mappings:
Namespace Name Mixin selector official b
Laed;b()I
intermediary method_27280
Lnet/minecraft/class_5195;method_27280()I
named getMinDelay
Lnet/minecraft/sound/MusicSound;getMinDelay()I
-
getMaxDelay
- Mappings:
Namespace Name Mixin selector official c
Laed;c()I
intermediary method_27281
Lnet/minecraft/class_5195;method_27281()I
named getMaxDelay
Lnet/minecraft/sound/MusicSound;getMaxDelay()I
-
shouldReplaceCurrentMusic
- Mappings:
Namespace Name Mixin selector official d
Laed;d()Z
intermediary method_27282
Lnet/minecraft/class_5195;method_27282()Z
named shouldReplaceCurrentMusic
Lnet/minecraft/sound/MusicSound;shouldReplaceCurrentMusic()Z
-