Class Sound

java.lang.Object
net.minecraft.client.sound.Sound
All Implemented Interfaces:
SoundContainer<Sound>

@Environment(CLIENT) public class Sound extends Object implements SoundContainer<Sound>
Mappings:
Namespace Name
named net/minecraft/client/sound/Sound
intermediary net/minecraft/class_1111
official hfe
  • Field Details

    • FINDER

      public static final ResourceFinder FINDER
      Mappings:
      Namespace Name Mixin selector
      named FINDER Lnet/minecraft/client/sound/Sound;FINDER:Lnet/minecraft/resource/ResourceFinder;
      intermediary field_40575 Lnet/minecraft/class_1111;field_40575:Lnet/minecraft/class_7654;
      official a Lhfe;a:Lals;
    • id

      private final Identifier id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/client/sound/Sound;id:Lnet/minecraft/util/Identifier;
      intermediary field_5469 Lnet/minecraft/class_1111;field_5469:Lnet/minecraft/class_2960;
      official b Lhfe;b:Lalz;
    • volume

      private final FloatSupplier volume
      Mappings:
      Namespace Name Mixin selector
      named volume Lnet/minecraft/client/sound/Sound;volume:Lnet/minecraft/util/math/floatprovider/FloatSupplier;
      intermediary field_5466 Lnet/minecraft/class_1111;field_5466:Lnet/minecraft/class_7373;
      official c Lhfe;c:Lbsq;
    • pitch

      private final FloatSupplier pitch
      Mappings:
      Namespace Name Mixin selector
      named pitch Lnet/minecraft/client/sound/Sound;pitch:Lnet/minecraft/util/math/floatprovider/FloatSupplier;
      intermediary field_5464 Lnet/minecraft/class_1111;field_5464:Lnet/minecraft/class_7373;
      official d Lhfe;d:Lbsq;
    • weight

      private final int weight
      Mappings:
      Namespace Name Mixin selector
      named weight Lnet/minecraft/client/sound/Sound;weight:I
      intermediary field_5468 Lnet/minecraft/class_1111;field_5468:I
      official e Lhfe;e:I
    • registrationType

      private final Sound.RegistrationType registrationType
      Mappings:
      Namespace Name Mixin selector
      named registrationType Lnet/minecraft/client/sound/Sound;registrationType:Lnet/minecraft/client/sound/Sound$RegistrationType;
      intermediary field_5470 Lnet/minecraft/class_1111;field_5470:Lnet/minecraft/class_1111$class_1112;
      official f Lhfe;f:Lhfe$a;
    • stream

      private final boolean stream
      Mappings:
      Namespace Name Mixin selector
      named stream Lnet/minecraft/client/sound/Sound;stream:Z
      intermediary field_5467 Lnet/minecraft/class_1111;field_5467:Z
      official g Lhfe;g:Z
    • preload

      private final boolean preload
      Mappings:
      Namespace Name Mixin selector
      named preload Lnet/minecraft/client/sound/Sound;preload:Z
      intermediary field_5465 Lnet/minecraft/class_1111;field_5465:Z
      official h Lhfe;h:Z
    • attenuation

      private final int attenuation
      Mappings:
      Namespace Name Mixin selector
      named attenuation Lnet/minecraft/client/sound/Sound;attenuation:I
      intermediary field_5463 Lnet/minecraft/class_1111;field_5463:I
      official i Lhfe;i:I
  • Constructor Details

    • Sound

      public Sound(Identifier id, FloatSupplier volume, FloatSupplier pitch, int weight, Sound.RegistrationType registrationType, boolean stream, boolean preload, int attenuation)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/sound/Sound;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/util/math/floatprovider/FloatSupplier;Lnet/minecraft/util/math/floatprovider/FloatSupplier;ILnet/minecraft/client/sound/Sound$RegistrationType;ZZI)V
      intermediary <init> Lnet/minecraft/class_1111;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_7373;Lnet/minecraft/class_7373;ILnet/minecraft/class_1111$class_1112;ZZI)V
      official <init> Lhfe;<init>(Lalz;Lbsq;Lbsq;ILhfe$a;ZZI)V
  • Method Details

    • getIdentifier

      public Identifier getIdentifier()
      Mappings:
      Namespace Name Mixin selector
      named getIdentifier Lnet/minecraft/client/sound/Sound;getIdentifier()Lnet/minecraft/util/Identifier;
      intermediary method_4767 Lnet/minecraft/class_1111;method_4767()Lnet/minecraft/class_2960;
      official a Lhfe;a()Lalz;
    • getLocation

      public Identifier getLocation()
      Mappings:
      Namespace Name Mixin selector
      named getLocation Lnet/minecraft/client/sound/Sound;getLocation()Lnet/minecraft/util/Identifier;
      intermediary method_4766 Lnet/minecraft/class_1111;method_4766()Lnet/minecraft/class_2960;
      official b Lhfe;b()Lalz;
    • getVolume

      public FloatSupplier getVolume()
      Mappings:
      Namespace Name Mixin selector
      named getVolume Lnet/minecraft/client/sound/Sound;getVolume()Lnet/minecraft/util/math/floatprovider/FloatSupplier;
      intermediary method_4771 Lnet/minecraft/class_1111;method_4771()Lnet/minecraft/class_7373;
      official c Lhfe;c()Lbsq;
    • getPitch

      public FloatSupplier getPitch()
      Mappings:
      Namespace Name Mixin selector
      named getPitch Lnet/minecraft/client/sound/Sound;getPitch()Lnet/minecraft/util/math/floatprovider/FloatSupplier;
      intermediary method_4772 Lnet/minecraft/class_1111;method_4772()Lnet/minecraft/class_7373;
      official d Lhfe;d()Lbsq;
    • getWeight

      public int getWeight()
      Specified by:
      getWeight in interface SoundContainer<Sound>
      Mappings:
      Namespace Name Mixin selector
      named getWeight Lnet/minecraft/client/sound/SoundContainer;getWeight()I
      intermediary method_4894 Lnet/minecraft/class_1148;method_4894()I
      official e Lhgo;e()I
    • getSound

      public Sound getSound(Random random)
      Specified by:
      getSound in interface SoundContainer<Sound>
      Mappings:
      Namespace Name Mixin selector
      named getSound Lnet/minecraft/client/sound/Sound;getSound(Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/client/sound/Sound;
      intermediary method_4765 Lnet/minecraft/class_1111;method_4765(Lnet/minecraft/class_5819;)Lnet/minecraft/class_1111;
      official a Lhfe;a(Lbam;)Lhfe;
    • preload

      public void preload(SoundSystem soundSystem)
      Specified by:
      preload in interface SoundContainer<Sound>
      Mappings:
      Namespace Name Mixin selector
      named preload Lnet/minecraft/client/sound/SoundContainer;preload(Lnet/minecraft/client/sound/SoundSystem;)V
      intermediary method_18188 Lnet/minecraft/class_1148;method_18188(Lnet/minecraft/class_1140;)V
      official a Lhgo;a(Lhgj;)V
    • getRegistrationType

      public Sound.RegistrationType getRegistrationType()
      Mappings:
      Namespace Name Mixin selector
      named getRegistrationType Lnet/minecraft/client/sound/Sound;getRegistrationType()Lnet/minecraft/client/sound/Sound$RegistrationType;
      intermediary method_4768 Lnet/minecraft/class_1111;method_4768()Lnet/minecraft/class_1111$class_1112;
      official f Lhfe;f()Lhfe$a;
    • isStreamed

      public boolean isStreamed()
      Mappings:
      Namespace Name Mixin selector
      named isStreamed Lnet/minecraft/client/sound/Sound;isStreamed()Z
      intermediary method_4769 Lnet/minecraft/class_1111;method_4769()Z
      official g Lhfe;g()Z
    • isPreloaded

      public boolean isPreloaded()
      Mappings:
      Namespace Name Mixin selector
      named isPreloaded Lnet/minecraft/client/sound/Sound;isPreloaded()Z
      intermediary method_4764 Lnet/minecraft/class_1111;method_4764()Z
      official h Lhfe;h()Z
    • getAttenuation

      public int getAttenuation()
      Mappings:
      Namespace Name Mixin selector
      named getAttenuation Lnet/minecraft/client/sound/Sound;getAttenuation()I
      intermediary method_4770 Lnet/minecraft/class_1111;method_4770()I
      official i Lhfe;i()I
    • toString

      public String toString()
      Overrides:
      toString in class Object