net.minecraft.sounds

public record SoundEvent

bcz
net.minecraft.sounds.SoundEvent
net.minecraft.class_3414
net.minecraft.sound.SoundEvent
net.minecraft.src.C_123_
net.minecraft.sounds.SoundEffect

字段概要

修饰符与类型字段
private final Identifier
e
location
comp_3319
id
f_11656_
private final Optional<Float>
f
fixedRange
comp_3320
fixedRange
f_348083_
public static final com.mojang.serialization.Codec<SoundEvent>
a
DIRECT_CODEC
field_41698
CODEC
f_263124_
public static final com.mojang.serialization.Codec<Holder<SoundEvent>>
b
CODEC
field_41699
ENTRY_CODEC
f_263130_
public static final StreamCodec<io.netty.buffer.ByteBuf, SoundEvent>
c
DIRECT_STREAM_CODEC
field_48278
PACKET_CODEC
f_314575_
public static final StreamCodec<RegistryFriendlyByteBuf, Holder<SoundEvent>>
d
STREAM_CODEC
field_48279
ENTRY_PACKET_CODEC
f_314687_

构造函数概要

修饰符构造函数
public (Identifier id, Optional<Float> fixedRange)

方法概要

修饰符与类型方法
private static SoundEvent
a(amo arg0, Optional<Float> arg1)
create(Identifier arg0, Optional<Float> arg1)
method_47956(class_2960 arg0, Optional<Float> arg1)
of(Identifier id, Optional<Float> fixedRange)
m_263227_(C_432211_ p_453447_, Optional<Float> p_263346_)
public static SoundEvent
a(amo arg0)
createVariableRangeEvent(Identifier arg0)
method_47908(class_2960 arg0)
of(Identifier id)
m_262824_(C_432211_ p_459796_)
public static SoundEvent
a(amo arg0, float arg1)
createFixedRangeEvent(Identifier arg0, float arg1)
method_47909(class_2960 arg0, float arg1)
of(Identifier id, float fixedRange)
m_262856_(C_432211_ p_460128_, float p_263029_)
public float
a(float arg0)
getRange(float arg0)
method_43044(float arg0)
getDistanceToTravel(float volume)
m_215668_(float arg0)
public Identifier
a()
location()
comp_3319()
id()
f_11656_()
public Optional<Float>
b()
fixedRange()
comp_3320()
fixedRange()
f_348083_()