net.minecraft.sounds

public record SoundEvent

axe
net.minecraft.sounds.SoundEvent
net.minecraft.class_3414
net.minecraft.unmapped.C_avavozay
net.minecraft.sound.SoundEvent
net.minecraft.sound.SoundEvent
net.minecraft.src.C_123_
net.minecraft.sounds.SoundEffect

Field summary

Modifier and TypeField
private final ResourceLocation
e
location
comp_3319
f_bysmxyzf
id
id
f_11656_
private final Optional<Float>
f
fixedRange
comp_3320
f_cckqzixf
fixedRange
fixedRange
f_348083_
public static final com.mojang.serialization.Codec<SoundEvent>
a
DIRECT_CODEC
field_41698
f_hjoklfog
CODEC
DIRECT_CODEC
f_263124_
public static final com.mojang.serialization.Codec<Holder<SoundEvent>>
b
CODEC
field_41699
f_mvrnqtoj
ENTRY_CODEC
CODEC
f_263130_
public static final StreamCodec<io.netty.buffer.ByteBuf, SoundEvent>
c
DIRECT_STREAM_CODEC
field_48278
f_zpyasose
PACKET_CODEC
PACKET_CODEC
f_314575_
public static final StreamCodec<RegistryFriendlyByteBuf, Holder<SoundEvent>>
d
STREAM_CODEC
field_48279
f_ebwdgehq
ENTRY_PACKET_CODEC
REGISTRY_PACKET_CODEC
f_314687_

Constructor summary

ModifierConstructor
public (ResourceLocation id, Optional<Float> fixedRange)

Method summary

Modifier and TypeMethod
private static SoundEvent
a(alz arg0, Optional<Float> arg1)
create(ResourceLocation arg0, Optional<Float> arg1)
method_47956(class_2960 arg0, Optional<Float> arg1)
m_sfswrbpw(C_ncpywfca arg0, Optional<Float> arg1)
of(Identifier id, Optional<Float> fixedRange)
createEvent(Identifier id, Optional<Float> range)
m_263227_(C_5265_ p_263406_, Optional<Float> p_263346_)
public static SoundEvent
a(alz arg0)
createVariableRangeEvent(ResourceLocation arg0)
method_47908(class_2960 arg0)
m_ysvevsdc(C_ncpywfca arg0)
of(Identifier id)
createVariableRangeEvent(Identifier id)
m_262824_(C_5265_ p_262973_)
public static SoundEvent
a(alz arg0, float arg1)
createFixedRangeEvent(ResourceLocation arg0, float arg1)
method_47909(class_2960 arg0, float arg1)
m_vuiblxtx(C_ncpywfca arg0, float arg1)
of(Identifier id, float fixedRange)
createFixedRangeEvent(Identifier id, float range)
m_262856_(C_5265_ p_263003_, float p_263029_)
public float
a(float arg0)
getRange(float arg0)
method_43044(float arg0)
m_xmatcedh(float arg0)
getDistanceToTravel(float volume)
getRange(float volume)
m_215668_(float arg0)
public ResourceLocation
a()
location()
comp_3319()
m_bpcivrpc()
id()
location()
f_11656_()
public Optional<Float>
b()
fixedRange()
comp_3320()
m_vrqmvzyk()
fixedRange()
getRange()
f_348083_()