Package net.minecraft.sound
Class SoundEvent
java.lang.Object
net.minecraft.sound.SoundEvent
- Mappings:
Namespace Name named net/minecraft/sound/SoundEvent
intermediary net/minecraft/class_3414
official avn
-
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>> static final PacketCodec
<RegistryByteBuf, RegistryEntry<SoundEvent>> private final Identifier
static final PacketCodec
<ByteBuf, SoundEvent> private final boolean
-
Constructor Summary
ModifierConstructorDescriptionprivate
SoundEvent
(Identifier id, float distanceToTravel, boolean useStaticDistance) -
Method Summary
Modifier and TypeMethodDescriptionfloat
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)
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/sound/SoundEvent;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_41698
Lnet/minecraft/class_3414;field_41698:Lcom/mojang/serialization/Codec;
official a
Lavn;a:Lcom/mojang/serialization/Codec;
-
ENTRY_CODEC
- Mappings:
Namespace Name Mixin selector named ENTRY_CODEC
Lnet/minecraft/sound/SoundEvent;ENTRY_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_41699
Lnet/minecraft/class_3414;field_41699:Lcom/mojang/serialization/Codec;
official b
Lavn;b:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODEC
Lnet/minecraft/sound/SoundEvent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_48278
Lnet/minecraft/class_3414;field_48278:Lnet/minecraft/class_9139;
official c
Lavn;c:Lyw;
-
ENTRY_PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named ENTRY_PACKET_CODEC
Lnet/minecraft/sound/SoundEvent;ENTRY_PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_48279
Lnet/minecraft/class_3414;field_48279:Lnet/minecraft/class_9139;
official d
Lavn;d:Lyw;
-
DEFAULT_DISTANCE_TO_TRAVEL
private static final float DEFAULT_DISTANCE_TO_TRAVEL- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_DISTANCE_TO_TRAVEL
Lnet/minecraft/sound/SoundEvent;DEFAULT_DISTANCE_TO_TRAVEL:F
intermediary field_41661
Lnet/minecraft/class_3414;field_41661:F
official e
Lavn;e:F
-
id
- Mappings:
Namespace Name Mixin selector named id
Lnet/minecraft/sound/SoundEvent;id:Lnet/minecraft/util/Identifier;
intermediary field_14533
Lnet/minecraft/class_3414;field_14533:Lnet/minecraft/class_2960;
official f
Lavn;f:Lakq;
-
distanceToTravel
private final float distanceToTravel- Mappings:
Namespace Name Mixin selector named distanceToTravel
Lnet/minecraft/sound/SoundEvent;distanceToTravel:F
intermediary field_38690
Lnet/minecraft/class_3414;field_38690:F
official g
Lavn;g:F
-
staticDistance
private final boolean staticDistance- Mappings:
Namespace Name Mixin selector named staticDistance
Lnet/minecraft/sound/SoundEvent;staticDistance:Z
intermediary field_38691
Lnet/minecraft/class_3414;field_38691:Z
official h
Lavn;h:Z
-
-
Constructor Details
-
SoundEvent
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/sound/SoundEvent;<init>(Lnet/minecraft/util/Identifier;FZ)V
intermediary <init>
Lnet/minecraft/class_3414;<init>(Lnet/minecraft/class_2960;FZ)V
official <init>
Lavn;<init>(Lakq;FZ)V
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector named of
Lnet/minecraft/sound/SoundEvent;of(Lnet/minecraft/util/Identifier;Ljava/util/Optional;)Lnet/minecraft/sound/SoundEvent;
intermediary method_47956
Lnet/minecraft/class_3414;method_47956(Lnet/minecraft/class_2960;Ljava/util/Optional;)Lnet/minecraft/class_3414;
official a
Lavn;a(Lakq;Ljava/util/Optional;)Lavn;
-
of
- Mappings:
Namespace Name Mixin selector named of
Lnet/minecraft/sound/SoundEvent;of(Lnet/minecraft/util/Identifier;)Lnet/minecraft/sound/SoundEvent;
intermediary method_47908
Lnet/minecraft/class_3414;method_47908(Lnet/minecraft/class_2960;)Lnet/minecraft/class_3414;
official a
Lavn;a(Lakq;)Lavn;
-
of
- Mappings:
Namespace Name Mixin selector named of
Lnet/minecraft/sound/SoundEvent;of(Lnet/minecraft/util/Identifier;F)Lnet/minecraft/sound/SoundEvent;
intermediary method_47909
Lnet/minecraft/class_3414;method_47909(Lnet/minecraft/class_2960;F)Lnet/minecraft/class_3414;
official a
Lavn;a(Lakq;F)Lavn;
-
getId
- Mappings:
Namespace Name Mixin selector named getId
Lnet/minecraft/sound/SoundEvent;getId()Lnet/minecraft/util/Identifier;
intermediary method_14833
Lnet/minecraft/class_3414;method_14833()Lnet/minecraft/class_2960;
official a
Lavn;a()Lakq;
-
getDistanceToTravel
public float getDistanceToTravel(float volume) - Mappings:
Namespace Name Mixin selector named getDistanceToTravel
Lnet/minecraft/sound/SoundEvent;getDistanceToTravel(F)F
intermediary method_43044
Lnet/minecraft/class_3414;method_43044(F)F
official a
Lavn;a(F)F
-
getStaticDistanceToTravel
- Mappings:
Namespace Name Mixin selector named getStaticDistanceToTravel
Lnet/minecraft/sound/SoundEvent;getStaticDistanceToTravel()Ljava/util/Optional;
intermediary method_47959
Lnet/minecraft/class_3414;method_47959()Ljava/util/Optional;
official b
Lavn;b()Ljava/util/Optional;
-