Package net.minecraft.client.sound
Class Sound
java.lang.Object
net.minecraft.client.sound.Sound
- All Implemented Interfaces:
SoundContainer<Sound>
- Mappings:
Namespace Name official fxkintermediary net/minecraft/class_1111named net/minecraft/client/sound/Sound
-
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 official aLfxk;a:Lacj;intermediary field_40575Lnet/minecraft/class_1111;field_40575:Lnet/minecraft/class_7654;named FINDERLnet/minecraft/client/sound/Sound;FINDER:Lnet/minecraft/resource/ResourceFinder;
-
id
- Mappings:
Namespace Name Mixin selector official bLfxk;b:Lacq;intermediary field_5469Lnet/minecraft/class_1111;field_5469:Lnet/minecraft/class_2960;named idLnet/minecraft/client/sound/Sound;id:Lnet/minecraft/util/Identifier;
-
volume
- Mappings:
Namespace Name Mixin selector official cLfxk;c:Lbde;intermediary field_5466Lnet/minecraft/class_1111;field_5466:Lnet/minecraft/class_7373;named volumeLnet/minecraft/client/sound/Sound;volume:Lnet/minecraft/util/math/floatprovider/FloatSupplier;
-
pitch
- Mappings:
Namespace Name Mixin selector official dLfxk;d:Lbde;intermediary field_5464Lnet/minecraft/class_1111;field_5464:Lnet/minecraft/class_7373;named pitchLnet/minecraft/client/sound/Sound;pitch:Lnet/minecraft/util/math/floatprovider/FloatSupplier;
-
weight
private final int weight- Mappings:
Namespace Name Mixin selector official eLfxk;e:Iintermediary field_5468Lnet/minecraft/class_1111;field_5468:Inamed weightLnet/minecraft/client/sound/Sound;weight:I
-
registrationType
- Mappings:
Namespace Name Mixin selector official fLfxk;f:Lfxk$a;intermediary field_5470Lnet/minecraft/class_1111;field_5470:Lnet/minecraft/class_1111$class_1112;named registrationTypeLnet/minecraft/client/sound/Sound;registrationType:Lnet/minecraft/client/sound/Sound$RegistrationType;
-
stream
private final boolean stream- Mappings:
Namespace Name Mixin selector official gLfxk;g:Zintermediary field_5467Lnet/minecraft/class_1111;field_5467:Znamed streamLnet/minecraft/client/sound/Sound;stream:Z
-
preload
private final boolean preload- Mappings:
Namespace Name Mixin selector official hLfxk;h:Zintermediary field_5465Lnet/minecraft/class_1111;field_5465:Znamed preloadLnet/minecraft/client/sound/Sound;preload:Z
-
attenuation
private final int attenuation- Mappings:
Namespace Name Mixin selector official iLfxk;i:Iintermediary field_5463Lnet/minecraft/class_1111;field_5463:Inamed attenuationLnet/minecraft/client/sound/Sound;attenuation: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 official <init>Lfxk;<init>(Ljava/lang/String;Lbde;Lbde;ILfxk$a;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)Vnamed <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)V
-
-
Method Details
-
getIdentifier
- Mappings:
Namespace Name Mixin selector official aLfxk;a()Lacq;intermediary method_4767Lnet/minecraft/class_1111;method_4767()Lnet/minecraft/class_2960;named getIdentifierLnet/minecraft/client/sound/Sound;getIdentifier()Lnet/minecraft/util/Identifier;
-
getLocation
- Mappings:
Namespace Name Mixin selector official bLfxk;b()Lacq;intermediary method_4766Lnet/minecraft/class_1111;method_4766()Lnet/minecraft/class_2960;named getLocationLnet/minecraft/client/sound/Sound;getLocation()Lnet/minecraft/util/Identifier;
-
getVolume
- Mappings:
Namespace Name Mixin selector official cLfxk;c()Lbde;intermediary method_4771Lnet/minecraft/class_1111;method_4771()Lnet/minecraft/class_7373;named getVolumeLnet/minecraft/client/sound/Sound;getVolume()Lnet/minecraft/util/math/floatprovider/FloatSupplier;
-
getPitch
- Mappings:
Namespace Name Mixin selector official dLfxk;d()Lbde;intermediary method_4772Lnet/minecraft/class_1111;method_4772()Lnet/minecraft/class_7373;named getPitchLnet/minecraft/client/sound/Sound;getPitch()Lnet/minecraft/util/math/floatprovider/FloatSupplier;
-
getWeight
public int getWeight()- Specified by:
getWeightin interfaceSoundContainer<Sound>- Mappings:
Namespace Name Mixin selector official eLfyt;e()Iintermediary method_4894Lnet/minecraft/class_1148;method_4894()Inamed getWeightLnet/minecraft/client/sound/SoundContainer;getWeight()I
-
getSound
- Specified by:
getSoundin interfaceSoundContainer<Sound>- Mappings:
Namespace Name Mixin selector official aLfxk;a(Lapf;)Lfxk;intermediary method_4765Lnet/minecraft/class_1111;method_4765(Lnet/minecraft/class_5819;)Lnet/minecraft/class_1111;named getSoundLnet/minecraft/client/sound/Sound;getSound(Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/client/sound/Sound;
-
preload
- Specified by:
preloadin interfaceSoundContainer<Sound>- Mappings:
Namespace Name Mixin selector official aLfyt;a(Lfyo;)Vintermediary method_18188Lnet/minecraft/class_1148;method_18188(Lnet/minecraft/class_1140;)Vnamed preloadLnet/minecraft/client/sound/SoundContainer;preload(Lnet/minecraft/client/sound/SoundSystem;)V
-
getRegistrationType
- Mappings:
Namespace Name Mixin selector official fLfxk;f()Lfxk$a;intermediary method_4768Lnet/minecraft/class_1111;method_4768()Lnet/minecraft/class_1111$class_1112;named getRegistrationTypeLnet/minecraft/client/sound/Sound;getRegistrationType()Lnet/minecraft/client/sound/Sound$RegistrationType;
-
isStreamed
public boolean isStreamed()- Mappings:
Namespace Name Mixin selector official gLfxk;g()Zintermediary method_4769Lnet/minecraft/class_1111;method_4769()Znamed isStreamedLnet/minecraft/client/sound/Sound;isStreamed()Z
-
isPreloaded
public boolean isPreloaded()- Mappings:
Namespace Name Mixin selector official hLfxk;h()Zintermediary method_4764Lnet/minecraft/class_1111;method_4764()Znamed isPreloadedLnet/minecraft/client/sound/Sound;isPreloaded()Z
-
getAttenuation
public int getAttenuation()- Mappings:
Namespace Name Mixin selector official iLfxk;i()Iintermediary method_4770Lnet/minecraft/class_1111;method_4770()Inamed getAttenuationLnet/minecraft/client/sound/Sound;getAttenuation()I
-
toString
-