类 Sound
- java.lang.Object
-
- net.minecraft.client.sound.Sound
-
- 所有已实现的接口:
SoundContainer<Sound>
@Environment(CLIENT) public class Sound extends Object implements SoundContainer<Sound>
- Mappings:
Namespace Name official eyrintermediary net/minecraft/class_1111named net/minecraft/client/sound/Sound
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classSound.RegistrationType
-
字段概要
字段 修饰符和类型 字段 说明 private intattenuationprivate Identifieridprivate floatpitchprivate booleanpreloadprivate Sound.RegistrationTyperegistrationTypeprivate booleanstreamprivate floatvolumeprivate intweight
-
构造器概要
构造器 构造器 说明 Sound(String id, float volume, float pitch, int weight, Sound.RegistrationType registrationType, boolean stream, boolean preload, int attenuation)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intgetAttenuation()IdentifiergetIdentifier()IdentifiergetLocation()floatgetPitch()Sound.RegistrationTypegetRegistrationType()SoundgetSound()floatgetVolume()intgetWeight()booleanisPreloaded()booleanisStreamed()voidpreload(SoundSystem soundSystem)StringtoString()
-
-
-
字段详细资料
-
id
private final Identifier id
- Mappings:
Namespace Name Mixin selector official aLeyr;a:Lwp;intermediary field_5469Lnet/minecraft/class_1111;field_5469:Lnet/minecraft/class_2960;named idLnet/minecraft/client/sound/Sound;id:Lnet/minecraft/util/Identifier;
-
volume
private final float volume
- Mappings:
Namespace Name Mixin selector official bLeyr;b:Fintermediary field_5466Lnet/minecraft/class_1111;field_5466:Fnamed volumeLnet/minecraft/client/sound/Sound;volume:F
-
pitch
private final float pitch
- Mappings:
Namespace Name Mixin selector official cLeyr;c:Fintermediary field_5464Lnet/minecraft/class_1111;field_5464:Fnamed pitchLnet/minecraft/client/sound/Sound;pitch:F
-
weight
private final int weight
- Mappings:
Namespace Name Mixin selector official dLeyr;d:Iintermediary field_5468Lnet/minecraft/class_1111;field_5468:Inamed weightLnet/minecraft/client/sound/Sound;weight:I
-
registrationType
private final Sound.RegistrationType registrationType
- Mappings:
Namespace Name Mixin selector official eLeyr;e:Leyr$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 fLeyr;f: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 gLeyr;g: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 hLeyr;h:Iintermediary field_5463Lnet/minecraft/class_1111;field_5463:Inamed attenuationLnet/minecraft/client/sound/Sound;attenuation:I
-
-
构造器详细资料
-
Sound
public Sound(String id, float volume, float pitch, int weight, Sound.RegistrationType registrationType, boolean stream, boolean preload, int attenuation)
- Mappings:
Namespace Name Mixin selector official <init>Leyr;<init>(Ljava/lang/String;FFILeyr$a;ZZI)Vintermediary <init>Lnet/minecraft/class_1111;<init>(Ljava/lang/String;FFILnet/minecraft/class_1111$class_1112;ZZI)Vnamed <init>Lnet/minecraft/client/sound/Sound;<init>(Ljava/lang/String;FFILnet/minecraft/client/sound/Sound$RegistrationType;ZZI)V
-
-
方法详细资料
-
getIdentifier
public Identifier getIdentifier()
- Mappings:
Namespace Name Mixin selector official aLeyr;a()Lwp;intermediary method_4767Lnet/minecraft/class_1111;method_4767()Lnet/minecraft/class_2960;named getIdentifierLnet/minecraft/client/sound/Sound;getIdentifier()Lnet/minecraft/util/Identifier;
-
getLocation
public Identifier getLocation()
- Mappings:
Namespace Name Mixin selector official bLeyr;b()Lwp;intermediary method_4766Lnet/minecraft/class_1111;method_4766()Lnet/minecraft/class_2960;named getLocationLnet/minecraft/client/sound/Sound;getLocation()Lnet/minecraft/util/Identifier;
-
getVolume
public float getVolume()
- Mappings:
Namespace Name Mixin selector official cLeyr;c()Fintermediary method_4771Lnet/minecraft/class_1111;method_4771()Fnamed getVolumeLnet/minecraft/client/sound/Sound;getVolume()F
-
getPitch
public float getPitch()
- Mappings:
Namespace Name Mixin selector official dLeyr;d()Fintermediary method_4772Lnet/minecraft/class_1111;method_4772()Fnamed getPitchLnet/minecraft/client/sound/Sound;getPitch()F
-
getWeight
public int getWeight()
- 指定者:
getWeight在接口中SoundContainer<Sound>- Mappings:
Namespace Name Mixin selector official eLezw;e()Iintermediary method_4894Lnet/minecraft/class_1148;method_4894()Inamed getWeightLnet/minecraft/client/sound/SoundContainer;getWeight()I
-
getSound
public Sound getSound()
- 指定者:
getSound在接口中SoundContainer<Sound>- Mappings:
Namespace Name Mixin selector official fLeyr;f()Leyr;intermediary method_4765Lnet/minecraft/class_1111;method_4765()Lnet/minecraft/class_1111;named getSoundLnet/minecraft/client/sound/Sound;getSound()Lnet/minecraft/client/sound/Sound;
-
preload
public void preload(SoundSystem soundSystem)
- 指定者:
preload在接口中SoundContainer<Sound>- Mappings:
Namespace Name Mixin selector official aLezw;a(Lezr;)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
public Sound.RegistrationType getRegistrationType()
- Mappings:
Namespace Name Mixin selector official gLeyr;g()Leyr$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 hLeyr;h()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 iLeyr;i()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 jLeyr;j()Iintermediary method_4770Lnet/minecraft/class_1111;method_4770()Inamed getAttenuationLnet/minecraft/client/sound/Sound;getAttenuation()I
-
toString
public String toString()
-
-