net.minecraft.sounds

public class SoundEvent

arr
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_
private static final float
c
DEFAULT_RANGE
field_41661
DEFAULT_DISTANCE_TO_TRAVEL
f_262723_
private final ResourceLocation
d
location
field_14533
id
f_11656_
private final float
e
range
field_38690
distanceToTravel
f_215659_
private final boolean
f
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(ahg 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(ahg arg0)
createVariableRangeEvent(ResourceLocation arg0)
method_47908(class_2960 arg0)
of(Identifier id)
m_262824_(C_5265_ p_262973_)
public static SoundEvent
a(ahg 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_()
public void
a(ui arg0)
writeToNetwork(FriendlyByteBuf arg0)
method_47958(class_2540 arg0)
writeBuf(PacketByteBuf buf)
m_263231_(C_4983_ arg0)
public static SoundEvent
b(ui arg0)
readFromNetwork(FriendlyByteBuf arg0)
method_47961(class_2540 arg0)
fromBuf(PacketByteBuf buf)
m_263214_(C_4983_ p_263371_)