net.minecraft.world.item

public record Instrument

cwj
net.minecraft.world.item.Instrument
net.minecraft.class_7444
net.minecraft.item.Instrument
net.minecraft.world.item.Instrument

Field summary

Modifier and TypeField
private final Holder<SoundEvent>
e
soundEvent
comp_772
soundEvent
private final float
f
useDuration
comp_773
useDuration
private final float
g
range
comp_774
range
private final Component
h
description
comp_2929
description
public static final com.mojang.serialization.Codec<Instrument>
a
DIRECT_CODEC
field_49260
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, Instrument>
b
DIRECT_STREAM_CODEC
field_49261
PACKET_CODEC
public static final com.mojang.serialization.Codec<Holder<Instrument>>
c
CODEC
field_39122
ENTRY_CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, Holder<Instrument>>
d
STREAM_CODEC
field_49262
ENTRY_PACKET_CODEC

Constructor summary

ModifierConstructor
public (Holder<SoundEvent> arg0, float arg1, float arg2, Component arg3)

Method summary

Modifier and TypeMethod
public Holder<SoundEvent>
a()
soundEvent()
comp_772()
soundEvent()
public float
b()
useDuration()
comp_773()
useDuration()
public float
c()
range()
comp_774()
range()
public Component
d()
description()
comp_2929()
description()