Package net.minecraft.sound
Class SoundEvent
java.lang.Object
net.minecraft.sound.SoundEvent
- Mappings:
Namespace Name official aln
intermediary net/minecraft/class_3414
named net/minecraft/sound/SoundEvent
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SoundEvent>
private static final float
private final float
static final com.mojang.serialization.Codec<RegistryEntry<SoundEvent>>
private final Identifier
private final boolean
-
Constructor Summary
ModifierConstructorDescriptionprivate
SoundEvent
(Identifier id, float distanceToTravel, boolean useStaticDistance) -
Method Summary
Modifier and TypeMethodDescriptionstatic SoundEvent
fromBuf
(PacketByteBuf buf) float
getDistanceToTravel
(float volume) getId()
static SoundEvent
of
(Identifier id) static SoundEvent
of
(Identifier id, float distanceToTravel) private static SoundEvent
of
(Identifier id, Optional<Float> distanceToTravel) void
writeBuf
(PacketByteBuf buf)
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official a
Laln;a:Lcom/mojang/serialization/Codec;
intermediary field_41698
Lnet/minecraft/class_3414;field_41698:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/sound/SoundEvent;CODEC:Lcom/mojang/serialization/Codec;
-
ENTRY_CODEC
- Mappings:
Namespace Name Mixin selector official b
Laln;b:Lcom/mojang/serialization/Codec;
intermediary field_41699
Lnet/minecraft/class_3414;field_41699:Lcom/mojang/serialization/Codec;
named ENTRY_CODEC
Lnet/minecraft/sound/SoundEvent;ENTRY_CODEC:Lcom/mojang/serialization/Codec;
-
DEFAULT_DISTANCE_TO_TRAVEL
private static final float DEFAULT_DISTANCE_TO_TRAVEL- See Also:
- Mappings:
Namespace Name Mixin selector official c
Laln;c:F
intermediary field_41661
Lnet/minecraft/class_3414;field_41661:F
named DEFAULT_DISTANCE_TO_TRAVEL
Lnet/minecraft/sound/SoundEvent;DEFAULT_DISTANCE_TO_TRAVEL:F
-
id
- Mappings:
Namespace Name Mixin selector official d
Laln;d:Lacf;
intermediary field_14533
Lnet/minecraft/class_3414;field_14533:Lnet/minecraft/class_2960;
named id
Lnet/minecraft/sound/SoundEvent;id:Lnet/minecraft/util/Identifier;
-
distanceToTravel
private final float distanceToTravel- Mappings:
Namespace Name Mixin selector official e
Laln;e:F
intermediary field_38690
Lnet/minecraft/class_3414;field_38690:F
named distanceToTravel
Lnet/minecraft/sound/SoundEvent;distanceToTravel:F
-
staticDistance
private final boolean staticDistance- Mappings:
Namespace Name Mixin selector official f
Laln;f:Z
intermediary field_38691
Lnet/minecraft/class_3414;field_38691:Z
named staticDistance
Lnet/minecraft/sound/SoundEvent;staticDistance:Z
-
-
Constructor Details
-
SoundEvent
- Mappings:
Namespace Name Mixin selector official <init>
Laln;<init>(Lacf;FZ)V
intermediary <init>
Lnet/minecraft/class_3414;<init>(Lnet/minecraft/class_2960;FZ)V
named <init>
Lnet/minecraft/sound/SoundEvent;<init>(Lnet/minecraft/util/Identifier;FZ)V
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector official a
Laln;a(Lacf;Ljava/util/Optional;)Laln;
intermediary method_47956
Lnet/minecraft/class_3414;method_47956(Lnet/minecraft/class_2960;Ljava/util/Optional;)Lnet/minecraft/class_3414;
named of
Lnet/minecraft/sound/SoundEvent;of(Lnet/minecraft/util/Identifier;Ljava/util/Optional;)Lnet/minecraft/sound/SoundEvent;
-
of
- Mappings:
Namespace Name Mixin selector official a
Laln;a(Lacf;)Laln;
intermediary method_47908
Lnet/minecraft/class_3414;method_47908(Lnet/minecraft/class_2960;)Lnet/minecraft/class_3414;
named of
Lnet/minecraft/sound/SoundEvent;of(Lnet/minecraft/util/Identifier;)Lnet/minecraft/sound/SoundEvent;
-
of
- Mappings:
Namespace Name Mixin selector official a
Laln;a(Lacf;F)Laln;
intermediary method_47909
Lnet/minecraft/class_3414;method_47909(Lnet/minecraft/class_2960;F)Lnet/minecraft/class_3414;
named of
Lnet/minecraft/sound/SoundEvent;of(Lnet/minecraft/util/Identifier;F)Lnet/minecraft/sound/SoundEvent;
-
getId
- Mappings:
Namespace Name Mixin selector official a
Laln;a()Lacf;
intermediary method_14833
Lnet/minecraft/class_3414;method_14833()Lnet/minecraft/class_2960;
named getId
Lnet/minecraft/sound/SoundEvent;getId()Lnet/minecraft/util/Identifier;
-
getDistanceToTravel
public float getDistanceToTravel(float volume) - Mappings:
Namespace Name Mixin selector official a
Laln;a(F)F
intermediary method_43044
Lnet/minecraft/class_3414;method_43044(F)F
named getDistanceToTravel
Lnet/minecraft/sound/SoundEvent;getDistanceToTravel(F)F
-
getStaticDistanceToTravel
- Mappings:
Namespace Name Mixin selector official b
Laln;b()Ljava/util/Optional;
intermediary method_47959
Lnet/minecraft/class_3414;method_47959()Ljava/util/Optional;
named getStaticDistanceToTravel
Lnet/minecraft/sound/SoundEvent;getStaticDistanceToTravel()Ljava/util/Optional;
-
writeBuf
- Mappings:
Namespace Name Mixin selector official a
Laln;a(Lsd;)V
intermediary method_47958
Lnet/minecraft/class_3414;method_47958(Lnet/minecraft/class_2540;)V
named writeBuf
Lnet/minecraft/sound/SoundEvent;writeBuf(Lnet/minecraft/network/PacketByteBuf;)V
-
fromBuf
- Mappings:
Namespace Name Mixin selector official b
Laln;b(Lsd;)Laln;
intermediary method_47961
Lnet/minecraft/class_3414;method_47961(Lnet/minecraft/class_2540;)Lnet/minecraft/class_3414;
named fromBuf
Lnet/minecraft/sound/SoundEvent;fromBuf(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/sound/SoundEvent;
-