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 hin
-
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(Identifier 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 aLhin;a:Lako;
-
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 bLhin;b:Lakv;
-
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 cLhin;c:Lbrt;
-
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 dLhin;d:Lbrt;
-
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 eLhin;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 fLhin;f:Lhin$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 gLhin;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 hLhin;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 iLhin;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)Vintermediary <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)Vofficial <init>Lhin;<init>(Lakv;Lbrt;Lbrt;ILhin$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 aLhin;a()Lakv;
-
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 bLhin;b()Lakv;
-
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 cLhin;c()Lbrt;
-
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 dLhin;d()Lbrt;
-
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 eLhjy;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 aLhin;a(Lazh;)Lhin;
-
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 aLhjy;a(Lhjt;)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 fLhin;f()Lhin$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 gLhin;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 hLhin;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 iLhin;i()I
-
toString
-