net.minecraft.sounds

public record SoundEvent

axe
net.minecraft.sounds.SoundEvent
net.minecraft.class_3414
net.minecraft.sound.SoundEvent
net.minecraft.sounds.SoundEffect

Field summary

Modifier and TypeField
private final ResourceLocation
e
location
comp_3319
id
private final Optional<Float>
f
fixedRange
comp_3320
fixedRange
public static final com.mojang.serialization.Codec<SoundEvent>
a
DIRECT_CODEC
field_41698
CODEC
public static final com.mojang.serialization.Codec<Holder<SoundEvent>>
b
CODEC
field_41699
ENTRY_CODEC
public static final StreamCodec<io.netty.buffer.ByteBuf, SoundEvent>
c
DIRECT_STREAM_CODEC
field_48278
PACKET_CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, Holder<SoundEvent>>
d
STREAM_CODEC
field_48279
ENTRY_PACKET_CODEC

Constructor summary

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

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)
of(Identifier id, Optional<Float> fixedRange)
public static SoundEvent
a(alz arg0)
createVariableRangeEvent(ResourceLocation arg0)
method_47908(class_2960 arg0)
of(Identifier id)
public static SoundEvent
a(alz arg0, float arg1)
createFixedRangeEvent(ResourceLocation arg0, float arg1)
method_47909(class_2960 arg0, float arg1)
of(Identifier id, float fixedRange)
public float
a(float arg0)
getRange(float arg0)
method_43044(float arg0)
getDistanceToTravel(float volume)
public ResourceLocation
a()
location()
comp_3319()
id()
public Optional<Float>
b()
fixedRange()
comp_3320()
fixedRange()