Class SoundEvent

java.lang.Object
net.minecraft.sound.SoundEvent

public class SoundEvent extends Object
Mappings:
Namespace Name
official aln
intermediary net/minecraft/class_3414
named net/minecraft/sound/SoundEvent
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<SoundEvent> 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

      public static final com.mojang.serialization.Codec<RegistryEntry<SoundEvent>> 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

      private final Identifier 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

      private SoundEvent(Identifier id, float distanceToTravel, boolean useStaticDistance)
      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

      private static SoundEvent of(Identifier id, Optional<Float> distanceToTravel)
      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

      public static SoundEvent of(Identifier id)
      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

      public static SoundEvent of(Identifier id, float distanceToTravel)
      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

      public Identifier 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

      private Optional<Float> 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

      public void writeBuf(PacketByteBuf buf)
      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

      public static SoundEvent fromBuf(PacketByteBuf buf)
      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;