Package net.minecraft.sound
Record Class SoundEvent
java.lang.Object
java.lang.Record
net.minecraft.sound.SoundEvent
- Record Components:
id
-fixedRange
-
- Mappings:
Namespace Name named net/minecraft/sound/SoundEvent
intermediary net/minecraft/class_3414
official axe
named id
intermediary comp_3319
official e
named fixedRange
intermediary comp_3320
official f
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<SoundEvent> static final com.mojang.serialization.Codec
<RegistryEntry<SoundEvent>> static final PacketCodec
<RegistryByteBuf, RegistryEntry<SoundEvent>> The field for thefixedRange
record component.private final Identifier
The field for theid
record component.static final PacketCodec
<ByteBuf, SoundEvent> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefixedRange
record component.float
getDistanceToTravel
(float volume) final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.static SoundEvent
of
(Identifier id) static SoundEvent
of
(Identifier id, float fixedRange) private static SoundEvent
of
(Identifier id, Optional<Float> fixedRange) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
id
The field for theid
record component. -
fixedRange
The field for thefixedRange
record component. -
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
Laxe;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
Laxe;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
Laxe;c:Lzt;
-
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
Laxe;d:Lzt;
-
-
Constructor Details
-
SoundEvent
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/sound/SoundEvent;<init>(Lnet/minecraft/util/Identifier;Ljava/util/Optional;)V
intermediary <init>
Lnet/minecraft/class_3414;<init>(Lnet/minecraft/class_2960;Ljava/util/Optional;)V
official <init>
Laxe;<init>(Lalz;Ljava/util/Optional;)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
Laxe;a(Lalz;Ljava/util/Optional;)Laxe;
-
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
Laxe;a(Lalz;)Laxe;
-
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
Laxe;a(Lalz;F)Laxe;
-
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
Laxe;a(F)F
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
fixedRange
Returns the value of thefixedRange
record component.- Returns:
- the value of the
fixedRange
record component
-