net.minecraft.sound

public record SoundEvent

net.minecraft.sounds.SoundEvent
net.minecraft.sounds.SoundEvent
net.minecraft.class_3414
net.minecraft.sound.SoundEvent

Field summary

Modifier and TypeField
private final Identifier
location
location
comp_3319
id
private final Optional<Float>
fixedRange
fixedRange
comp_3320
fixedRange
public static final com.mojang.serialization.Codec<SoundEvent>
DIRECT_CODEC
DIRECT_CODEC
field_41698
CODEC
public static final com.mojang.serialization.Codec<RegistryEntry<SoundEvent>>
CODEC
CODEC
field_41699
ENTRY_CODEC
public static final PacketCodec<io.netty.buffer.ByteBuf, SoundEvent>
DIRECT_STREAM_CODEC
DIRECT_STREAM_CODEC
field_48278
PACKET_CODEC
public static final PacketCodec<RegistryByteBuf, RegistryEntry<SoundEvent>>
STREAM_CODEC
STREAM_CODEC
field_48279
ENTRY_PACKET_CODEC

Constructor summary

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

Method summary

Modifier and TypeMethod
private static SoundEvent
create(Identifier location, Optional<Float> range)
create(Identifier location, Optional<Float> range)
method_47956(class_2960 arg0, Optional<Float> arg1)
of(Identifier id, Optional<Float> fixedRange)
public static SoundEvent
createVariableRangeEvent(Identifier location)
createVariableRangeEvent(Identifier location)
method_47908(class_2960 arg0)
of(Identifier id)
public static SoundEvent
createFixedRangeEvent(Identifier location, float range)
createFixedRangeEvent(Identifier location, float range)
method_47909(class_2960 arg0, float arg1)
of(Identifier id, float fixedRange)
public float
getRange(float volume)
getRange(float volume)
method_43044(float arg0)
getDistanceToTravel(float volume)
public Identifier
location()
location()
comp_3319()
id()
public Optional<Float>
fixedRange()
fixedRange()
comp_3320()
fixedRange()