Class SoundEvent

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

public class SoundEvent extends Object
Mappings:
Namespace Name
official ajv
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 Lajv;a:Lcom/mojang/serialization/Codec;
      intermediary field_24628 Lnet/minecraft/class_3414;field_24628:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/sound/SoundEvent;CODEC:Lcom/mojang/serialization/Codec;
    • id

      private final Identifier id
      Mappings:
      Namespace Name Mixin selector
      official b Lajv;b:Labb;
      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 c Lajv;c: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 d Lajv;d:Z
      intermediary field_38691 Lnet/minecraft/class_3414;field_38691:Z
      named staticDistance Lnet/minecraft/sound/SoundEvent;staticDistance:Z
  • Constructor Details

    • SoundEvent

      public SoundEvent(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lajv;<init>(Labb;)V
      intermediary <init> Lnet/minecraft/class_3414;<init>(Lnet/minecraft/class_2960;)V
      named <init> Lnet/minecraft/sound/SoundEvent;<init>(Lnet/minecraft/util/Identifier;)V
    • SoundEvent

      public SoundEvent(Identifier id, float distanceToTravel)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lajv;<init>(Labb;F)V
      intermediary <init> Lnet/minecraft/class_3414;<init>(Lnet/minecraft/class_2960;F)V
      named <init> Lnet/minecraft/sound/SoundEvent;<init>(Lnet/minecraft/util/Identifier;F)V
    • SoundEvent

      private SoundEvent(Identifier id, float distanceToTravel, boolean useStaticDistance)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lajv;<init>(Labb;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

    • getId

      public Identifier getId()
      Mappings:
      Namespace Name Mixin selector
      official a Lajv;a()Labb;
      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 Lajv;a(F)F
      intermediary method_43044 Lnet/minecraft/class_3414;method_43044(F)F
      named getDistanceToTravel Lnet/minecraft/sound/SoundEvent;getDistanceToTravel(F)F