net.minecraft.world.item

public record Instrument

cui
net.minecraft.world.item.Instrument
net.minecraft.class_7444
net.minecraft.unmapped.C_vywrdemv
net.minecraft.item.Instrument
net.minecraft.item.Instrument
net.minecraft.src.C_213079_
net.minecraft.world.item.Instrument

Field summary

Modifier and TypeField
private final Holder<SoundEvent>
e
soundEvent
comp_772
f_slezwwgw
soundEvent
sound
f_220079_
private final int
f
useDuration
comp_773
f_wcpkblxq
useDuration
duration
f_220080_
private final float
g
range
comp_774
f_yowlfcvb
range
range
f_220081_
public static final com.mojang.serialization.Codec<Instrument>
a
DIRECT_CODEC
field_49260
f_jxbqmsem
CODEC
SOUND_CODEC
f_314982_
public static final StreamCodec<RegistryFriendlyByteBuf, Instrument>
b
DIRECT_STREAM_CODEC
field_49261
f_vmxkrnak
PACKET_CODEC
SOUND_PACKET_CODEC
f_316019_
public static final com.mojang.serialization.Codec<Holder<Instrument>>
c
CODEC
field_39122
f_xxkknaed
ENTRY_CODEC
CODEC
f_220078_
public static final StreamCodec<RegistryFriendlyByteBuf, Holder<Instrument>>
d
STREAM_CODEC
field_49262
f_ttwxxpiv
ENTRY_PACKET_CODEC
PACKET_CODEC
f_315407_

Constructor summary

ModifierConstructor
public (Holder<SoundEvent> sound, int duration, float range)

Method summary

Modifier and TypeMethod
public Holder<SoundEvent>
a()
soundEvent()
comp_772()
m_xyfeykui()
soundEvent()
sound()
f_220079_()
public int
b()
useDuration()
comp_773()
m_pttrrynj()
useDuration()
duration()
f_220080_()
public float
c()
range()
comp_774()
m_tfejjesy()
range()
range()
f_220081_()