net.minecraft.sounds

public class SoundEvent

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

Field summary

Modifier and TypeField
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_
private static final float
e
DEFAULT_RANGE
field_41661
DEFAULT_DISTANCE_TO_TRAVEL
f_262723_
private final ResourceLocation
f
location
field_14533
id
f_11656_
private final float
g
range
field_38690
distanceToTravel
f_215659_
private final boolean
h
newSystem
field_38691
staticDistance
f_215660_

Constructor summary

ModifierConstructor
private (ResourceLocation id, float distanceToTravel, boolean useStaticDistance)

Method summary

Modifier and TypeMethod
private static SoundEvent
a(akr arg0, Optional<Float> arg1)
create(ResourceLocation arg0, Optional<Float> arg1)
method_47956(class_2960 arg0, Optional<Float> arg1)
of(Identifier id, Optional<Float> distanceToTravel)
m_263227_(C_5265_ p_263406_, Optional<Float> p_263346_)
public static SoundEvent
a(akr arg0)
createVariableRangeEvent(ResourceLocation arg0)
method_47908(class_2960 arg0)
of(Identifier id)
m_262824_(C_5265_ p_262973_)
public static SoundEvent
a(akr arg0, float arg1)
createFixedRangeEvent(ResourceLocation arg0, float arg1)
method_47909(class_2960 arg0, float arg1)
of(Identifier id, float distanceToTravel)
m_262856_(C_5265_ p_263003_, float p_263029_)
public ResourceLocation
a()
getLocation()
method_14833()
getId()
m_11660_()
public float
a(float arg0)
getRange(float arg0)
method_43044(float arg0)
getDistanceToTravel(float volume)
m_215668_(float arg0)
private Optional<Float>
b()
fixedRange()
method_47959()
getStaticDistanceToTravel()
m_263201_()