Class AbstractSoundInstance

java.lang.Object
net.minecraft.client.sound.AbstractSoundInstance
All Implemented Interfaces:
SoundInstance
Direct Known Subclasses:
MovingSoundInstance, PositionedSoundInstance

@Environment(CLIENT) public abstract class AbstractSoundInstance extends Object implements SoundInstance
Mappings:
Namespace Name
named net/minecraft/client/sound/AbstractSoundInstance
intermediary net/minecraft/class_1102
official hhy
  • Field Details Link icon

    • sound Link icon

      protected Sound sound
      Mappings:
      Namespace Name Mixin selector
      named sound Lnet/minecraft/client/sound/AbstractSoundInstance;sound:Lnet/minecraft/client/sound/Sound;
      intermediary field_5444 Lnet/minecraft/class_1102;field_5444:Lnet/minecraft/class_1111;
      official a Lhhy;a:Lhin;
    • category Link icon

      protected final SoundCategory category
      Mappings:
      Namespace Name Mixin selector
      named category Lnet/minecraft/client/sound/AbstractSoundInstance;category:Lnet/minecraft/sound/SoundCategory;
      intermediary field_5447 Lnet/minecraft/class_1102;field_5447:Lnet/minecraft/class_3419;
      official b Lhhy;b:Lawb;
    • id Link icon

      protected final Identifier id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/client/sound/AbstractSoundInstance;id:Lnet/minecraft/util/Identifier;
      intermediary field_5448 Lnet/minecraft/class_1102;field_5448:Lnet/minecraft/class_2960;
      official c Lhhy;c:Lakv;
    • volume Link icon

      protected float volume
      Mappings:
      Namespace Name Mixin selector
      named volume Lnet/minecraft/client/sound/AbstractSoundInstance;volume:F
      intermediary field_5442 Lnet/minecraft/class_1102;field_5442:F
      official d Lhhy;d:F
    • pitch Link icon

      protected float pitch
      Mappings:
      Namespace Name Mixin selector
      named pitch Lnet/minecraft/client/sound/AbstractSoundInstance;pitch:F
      intermediary field_5441 Lnet/minecraft/class_1102;field_5441:F
      official e Lhhy;e:F
    • x Link icon

      protected double x
      Mappings:
      Namespace Name Mixin selector
      named x Lnet/minecraft/client/sound/AbstractSoundInstance;x:D
      intermediary field_5439 Lnet/minecraft/class_1102;field_5439:D
      official f Lhhy;f:D
    • y Link icon

      protected double y
      Mappings:
      Namespace Name Mixin selector
      named y Lnet/minecraft/client/sound/AbstractSoundInstance;y:D
      intermediary field_5450 Lnet/minecraft/class_1102;field_5450:D
      official g Lhhy;g:D
    • z Link icon

      protected double z
      Mappings:
      Namespace Name Mixin selector
      named z Lnet/minecraft/client/sound/AbstractSoundInstance;z:D
      intermediary field_5449 Lnet/minecraft/class_1102;field_5449:D
      official h Lhhy;h:D
    • repeat Link icon

      protected boolean repeat
      Mappings:
      Namespace Name Mixin selector
      named repeat Lnet/minecraft/client/sound/AbstractSoundInstance;repeat:Z
      intermediary field_5446 Lnet/minecraft/class_1102;field_5446:Z
      official i Lhhy;i:Z
    • repeatDelay Link icon

      protected int repeatDelay
      Mappings:
      Namespace Name Mixin selector
      named repeatDelay Lnet/minecraft/client/sound/AbstractSoundInstance;repeatDelay:I
      intermediary field_5451 Lnet/minecraft/class_1102;field_5451:I
      official j Lhhy;j:I
    • attenuationType Link icon

      protected SoundInstance.AttenuationType attenuationType
      Mappings:
      Namespace Name Mixin selector
      named attenuationType Lnet/minecraft/client/sound/AbstractSoundInstance;attenuationType:Lnet/minecraft/client/sound/SoundInstance$AttenuationType;
      intermediary field_5440 Lnet/minecraft/class_1102;field_5440:Lnet/minecraft/class_1113$class_1114;
      official k Lhhy;k:Lhiq$a;
    • relative Link icon

      protected boolean relative
      Mappings:
      Namespace Name Mixin selector
      named relative Lnet/minecraft/client/sound/AbstractSoundInstance;relative:Z
      intermediary field_18936 Lnet/minecraft/class_1102;field_18936:Z
      official l Lhhy;l:Z
    • random Link icon

      protected Random random
      Mappings:
      Namespace Name Mixin selector
      named random Lnet/minecraft/client/sound/AbstractSoundInstance;random:Lnet/minecraft/util/math/random/Random;
      intermediary field_38800 Lnet/minecraft/class_1102;field_38800:Lnet/minecraft/class_5819;
      official m Lhhy;m:Lazh;
  • Constructor Details Link icon

    • AbstractSoundInstance Link icon

      protected AbstractSoundInstance(SoundEvent sound, SoundCategory category, Random random)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/sound/AbstractSoundInstance;<init>(Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;Lnet/minecraft/util/math/random/Random;)V
      intermediary <init> Lnet/minecraft/class_1102;<init>(Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;Lnet/minecraft/class_5819;)V
      official <init> Lhhy;<init>(Lavz;Lawb;Lazh;)V
    • AbstractSoundInstance Link icon

      protected AbstractSoundInstance(Identifier soundId, SoundCategory category, Random random)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/sound/AbstractSoundInstance;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/sound/SoundCategory;Lnet/minecraft/util/math/random/Random;)V
      intermediary <init> Lnet/minecraft/class_1102;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_3419;Lnet/minecraft/class_5819;)V
      official <init> Lhhy;<init>(Lakv;Lawb;Lazh;)V
  • Method Details Link icon

    • getId Link icon

      public Identifier getId()
      Specified by:
      getId in interface SoundInstance
      Mappings:
      Namespace Name Mixin selector
      named getId Lnet/minecraft/client/sound/SoundInstance;getId()Lnet/minecraft/util/Identifier;
      intermediary method_4775 Lnet/minecraft/class_1113;method_4775()Lnet/minecraft/class_2960;
      official a Lhiq;a()Lakv;
    • getSoundSet Link icon

      public WeightedSoundSet getSoundSet(SoundManager soundManager)
      Specified by:
      getSoundSet in interface SoundInstance
      Mappings:
      Namespace Name Mixin selector
      named getSoundSet Lnet/minecraft/client/sound/SoundInstance;getSoundSet(Lnet/minecraft/client/sound/SoundManager;)Lnet/minecraft/client/sound/WeightedSoundSet;
      intermediary method_4783 Lnet/minecraft/class_1113;method_4783(Lnet/minecraft/class_1144;)Lnet/minecraft/class_1146;
      official a Lhiq;a(Lhjw;)Lhjx;
    • getSound Link icon

      public Sound getSound()
      Specified by:
      getSound in interface SoundInstance
      Mappings:
      Namespace Name Mixin selector
      named getSound Lnet/minecraft/client/sound/SoundInstance;getSound()Lnet/minecraft/client/sound/Sound;
      intermediary method_4776 Lnet/minecraft/class_1113;method_4776()Lnet/minecraft/class_1111;
      official b Lhiq;b()Lhin;
    • getCategory Link icon

      public SoundCategory getCategory()
      Specified by:
      getCategory in interface SoundInstance
      Mappings:
      Namespace Name Mixin selector
      named getCategory Lnet/minecraft/client/sound/SoundInstance;getCategory()Lnet/minecraft/sound/SoundCategory;
      intermediary method_4774 Lnet/minecraft/class_1113;method_4774()Lnet/minecraft/class_3419;
      official c Lhiq;c()Lawb;
    • isRepeatable Link icon

      public boolean isRepeatable()
      Specified by:
      isRepeatable in interface SoundInstance
      Mappings:
      Namespace Name Mixin selector
      named isRepeatable Lnet/minecraft/client/sound/SoundInstance;isRepeatable()Z
      intermediary method_4786 Lnet/minecraft/class_1113;method_4786()Z
      official d Lhiq;d()Z
    • getRepeatDelay Link icon

      public int getRepeatDelay()
      Specified by:
      getRepeatDelay in interface SoundInstance
      Mappings:
      Namespace Name Mixin selector
      named getRepeatDelay Lnet/minecraft/client/sound/SoundInstance;getRepeatDelay()I
      intermediary method_4780 Lnet/minecraft/class_1113;method_4780()I
      official e Lhiq;e()I
    • getVolume Link icon

      public float getVolume()
      Specified by:
      getVolume in interface SoundInstance
      Mappings:
      Namespace Name Mixin selector
      named getVolume Lnet/minecraft/client/sound/SoundInstance;getVolume()F
      intermediary method_4781 Lnet/minecraft/class_1113;method_4781()F
      official f Lhiq;f()F
    • getPitch Link icon

      public float getPitch()
      Specified by:
      getPitch in interface SoundInstance
      Mappings:
      Namespace Name Mixin selector
      named getPitch Lnet/minecraft/client/sound/SoundInstance;getPitch()F
      intermediary method_4782 Lnet/minecraft/class_1113;method_4782()F
      official g Lhiq;g()F
    • getX Link icon

      public double getX()
      Specified by:
      getX in interface SoundInstance
      Mappings:
      Namespace Name Mixin selector
      named getX Lnet/minecraft/client/sound/SoundInstance;getX()D
      intermediary method_4784 Lnet/minecraft/class_1113;method_4784()D
      official h Lhiq;h()D
    • getY Link icon

      public double getY()
      Specified by:
      getY in interface SoundInstance
      Mappings:
      Namespace Name Mixin selector
      named getY Lnet/minecraft/client/sound/SoundInstance;getY()D
      intermediary method_4779 Lnet/minecraft/class_1113;method_4779()D
      official i Lhiq;i()D
    • getZ Link icon

      public double getZ()
      Specified by:
      getZ in interface SoundInstance
      Mappings:
      Namespace Name Mixin selector
      named getZ Lnet/minecraft/client/sound/SoundInstance;getZ()D
      intermediary method_4778 Lnet/minecraft/class_1113;method_4778()D
      official j Lhiq;j()D
    • getAttenuationType Link icon

      public SoundInstance.AttenuationType getAttenuationType()
      Specified by:
      getAttenuationType in interface SoundInstance
      Mappings:
      Namespace Name Mixin selector
      named getAttenuationType Lnet/minecraft/client/sound/SoundInstance;getAttenuationType()Lnet/minecraft/client/sound/SoundInstance$AttenuationType;
      intermediary method_4777 Lnet/minecraft/class_1113;method_4777()Lnet/minecraft/class_1113$class_1114;
      official k Lhiq;k()Lhiq$a;
    • isRelative Link icon

      public boolean isRelative()
      Specified by:
      isRelative in interface SoundInstance
      Mappings:
      Namespace Name Mixin selector
      named isRelative Lnet/minecraft/client/sound/SoundInstance;isRelative()Z
      intermediary method_4787 Lnet/minecraft/class_1113;method_4787()Z
      official l Lhiq;l()Z
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object