Package net.minecraft.client.sound
Class Sound
java.lang.Object
net.minecraft.client.sound.Sound
- All Implemented Interfaces:
SoundContainer<Sound>
- Mappings:
Namespace Name named net/minecraft/client/sound/Soundintermediary net/minecraft/class_1111official gsm
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intstatic final ResourceFinderprivate final Identifierprivate final FloatSupplierprivate final booleanprivate final Sound.RegistrationTypeprivate final booleanprivate final FloatSupplierprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionSound(String id, FloatSupplier volume, FloatSupplier pitch, int weight, Sound.RegistrationType registrationType, boolean stream, boolean preload, int attenuation) -
Method Summary
Modifier and TypeMethodDescriptionintgetPitch()intbooleanbooleanvoidpreload(SoundSystem soundSystem) toString()
-
Field Details
-
FINDER
- Mappings:
Namespace Name Mixin selector named FINDERLnet/minecraft/client/sound/Sound;FINDER:Lnet/minecraft/resource/ResourceFinder;intermediary field_40575Lnet/minecraft/class_1111;field_40575:Lnet/minecraft/class_7654;official aLgsm;a:Laky;
-
id
- Mappings:
Namespace Name Mixin selector named idLnet/minecraft/client/sound/Sound;id:Lnet/minecraft/util/Identifier;intermediary field_5469Lnet/minecraft/class_1111;field_5469:Lnet/minecraft/class_2960;official bLgsm;b:Lalf;
-
volume
- Mappings:
Namespace Name Mixin selector named volumeLnet/minecraft/client/sound/Sound;volume:Lnet/minecraft/util/math/floatprovider/FloatSupplier;intermediary field_5466Lnet/minecraft/class_1111;field_5466:Lnet/minecraft/class_7373;official cLgsm;c:Lbqe;
-
pitch
- Mappings:
Namespace Name Mixin selector named pitchLnet/minecraft/client/sound/Sound;pitch:Lnet/minecraft/util/math/floatprovider/FloatSupplier;intermediary field_5464Lnet/minecraft/class_1111;field_5464:Lnet/minecraft/class_7373;official dLgsm;d:Lbqe;
-
weight
private final int weight- Mappings:
Namespace Name Mixin selector named weightLnet/minecraft/client/sound/Sound;weight:Iintermediary field_5468Lnet/minecraft/class_1111;field_5468:Iofficial eLgsm;e:I
-
registrationType
- Mappings:
Namespace Name Mixin selector named registrationTypeLnet/minecraft/client/sound/Sound;registrationType:Lnet/minecraft/client/sound/Sound$RegistrationType;intermediary field_5470Lnet/minecraft/class_1111;field_5470:Lnet/minecraft/class_1111$class_1112;official fLgsm;f:Lgsm$a;
-
stream
private final boolean stream- Mappings:
Namespace Name Mixin selector named streamLnet/minecraft/client/sound/Sound;stream:Zintermediary field_5467Lnet/minecraft/class_1111;field_5467:Zofficial gLgsm;g:Z
-
preload
private final boolean preload- Mappings:
Namespace Name Mixin selector named preloadLnet/minecraft/client/sound/Sound;preload:Zintermediary field_5465Lnet/minecraft/class_1111;field_5465:Zofficial hLgsm;h:Z
-
attenuation
private final int attenuation- Mappings:
Namespace Name Mixin selector named attenuationLnet/minecraft/client/sound/Sound;attenuation:Iintermediary field_5463Lnet/minecraft/class_1111;field_5463:Iofficial iLgsm;i:I
-
-
Constructor Details
-
Sound
public Sound(String 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>(Ljava/lang/String;Lnet/minecraft/util/math/floatprovider/FloatSupplier;Lnet/minecraft/util/math/floatprovider/FloatSupplier;ILnet/minecraft/client/sound/Sound$RegistrationType;ZZI)Vintermediary <init>Lnet/minecraft/class_1111;<init>(Ljava/lang/String;Lnet/minecraft/class_7373;Lnet/minecraft/class_7373;ILnet/minecraft/class_1111$class_1112;ZZI)Vofficial <init>Lgsm;<init>(Ljava/lang/String;Lbqe;Lbqe;ILgsm$a;ZZI)V
-
-
Method Details
-
getIdentifier
- Mappings:
Namespace Name Mixin selector named getIdentifierLnet/minecraft/client/sound/Sound;getIdentifier()Lnet/minecraft/util/Identifier;intermediary method_4767Lnet/minecraft/class_1111;method_4767()Lnet/minecraft/class_2960;official aLgsm;a()Lalf;
-
getLocation
- Mappings:
Namespace Name Mixin selector named getLocationLnet/minecraft/client/sound/Sound;getLocation()Lnet/minecraft/util/Identifier;intermediary method_4766Lnet/minecraft/class_1111;method_4766()Lnet/minecraft/class_2960;official bLgsm;b()Lalf;
-
getVolume
- Mappings:
Namespace Name Mixin selector named getVolumeLnet/minecraft/client/sound/Sound;getVolume()Lnet/minecraft/util/math/floatprovider/FloatSupplier;intermediary method_4771Lnet/minecraft/class_1111;method_4771()Lnet/minecraft/class_7373;official cLgsm;c()Lbqe;
-
getPitch
- Mappings:
Namespace Name Mixin selector named getPitchLnet/minecraft/client/sound/Sound;getPitch()Lnet/minecraft/util/math/floatprovider/FloatSupplier;intermediary method_4772Lnet/minecraft/class_1111;method_4772()Lnet/minecraft/class_7373;official dLgsm;d()Lbqe;
-
getWeight
public int getWeight()- Specified by:
getWeightin interfaceSoundContainer<Sound>- Mappings:
Namespace Name Mixin selector named getWeightLnet/minecraft/client/sound/SoundContainer;getWeight()Iintermediary method_4894Lnet/minecraft/class_1148;method_4894()Iofficial eLgtz;e()I
-
getSound
- Specified by:
getSoundin interfaceSoundContainer<Sound>- Mappings:
Namespace Name Mixin selector named getSoundLnet/minecraft/client/sound/Sound;getSound(Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/client/sound/Sound;intermediary method_4765Lnet/minecraft/class_1111;method_4765(Lnet/minecraft/class_5819;)Lnet/minecraft/class_1111;official aLgsm;a(Lazh;)Lgsm;
-
preload
- Specified by:
preloadin interfaceSoundContainer<Sound>- Mappings:
Namespace Name Mixin selector named preloadLnet/minecraft/client/sound/SoundContainer;preload(Lnet/minecraft/client/sound/SoundSystem;)Vintermediary method_18188Lnet/minecraft/class_1148;method_18188(Lnet/minecraft/class_1140;)Vofficial aLgtz;a(Lgtu;)V
-
getRegistrationType
- Mappings:
Namespace Name Mixin selector named getRegistrationTypeLnet/minecraft/client/sound/Sound;getRegistrationType()Lnet/minecraft/client/sound/Sound$RegistrationType;intermediary method_4768Lnet/minecraft/class_1111;method_4768()Lnet/minecraft/class_1111$class_1112;official fLgsm;f()Lgsm$a;
-
isStreamed
public boolean isStreamed()- Mappings:
Namespace Name Mixin selector named isStreamedLnet/minecraft/client/sound/Sound;isStreamed()Zintermediary method_4769Lnet/minecraft/class_1111;method_4769()Zofficial gLgsm;g()Z
-
isPreloaded
public boolean isPreloaded()- Mappings:
Namespace Name Mixin selector named isPreloadedLnet/minecraft/client/sound/Sound;isPreloaded()Zintermediary method_4764Lnet/minecraft/class_1111;method_4764()Zofficial hLgsm;h()Z
-
getAttenuation
public int getAttenuation()- Mappings:
Namespace Name Mixin selector named getAttenuationLnet/minecraft/client/sound/Sound;getAttenuation()Iintermediary method_4770Lnet/minecraft/class_1111;method_4770()Iofficial iLgsm;i()I
-
toString
-