类 Sound
java.lang.Object
net.minecraft.client.resources.sounds.Sound
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private final int
private final ResourceLocation
private final SampledFloat
private final boolean
static final FileToIdConverter
private final boolean
private final Sound.Type
private final SampledFloat
private final int
-
构造器概要
构造器构造器说明Sound
(ResourceLocation p_343656_, SampledFloat p_235135_, SampledFloat p_235136_, int p_235137_, Sound.Type p_235138_, boolean p_235139_, boolean p_235140_, int p_235141_) -
方法概要
修饰符和类型方法说明int
getPath()
getPitch()
getSound
(RandomSource p_235143_) getType()
int
void
preloadIfRequired
(SoundEngine p_119789_) boolean
boolean
toString()
-
字段详细资料
-
SOUND_LISTER
-
location
-
volume
-
pitch
-
weight
private final int weight -
type
-
stream
private final boolean stream -
preload
private final boolean preload -
attenuationDistance
private final int attenuationDistance
-
-
构造器详细资料
-
Sound
public Sound(ResourceLocation p_343656_, SampledFloat p_235135_, SampledFloat p_235136_, int p_235137_, Sound.Type p_235138_, boolean p_235139_, boolean p_235140_, int p_235141_)
-
-
方法详细资料
-
getLocation
-
getPath
-
getVolume
-
getPitch
-
getWeight
public int getWeight() -
getSound
-
preloadIfRequired
- 指定者:
preloadIfRequired
在接口中Weighted<Sound>
-
getType
-
shouldStream
public boolean shouldStream() -
shouldPreload
public boolean shouldPreload() -
getAttenuationDistance
public int getAttenuationDistance() -
toString
-