net.minecraft.world.item

public record Instrument

cui
net.minecraft.world.item.Instrument
net.minecraft.class_7444
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
soundEvent
f_220079_
private final int
f
useDuration
comp_773
useDuration
f_220080_
private final float
g
range
comp_774
range
f_220081_
public static final com.mojang.serialization.Codec<Instrument>
a
DIRECT_CODEC
field_49260
CODEC
f_314982_
public static final StreamCodec<RegistryFriendlyByteBuf, Instrument>
b
DIRECT_STREAM_CODEC
field_49261
PACKET_CODEC
f_316019_
public static final com.mojang.serialization.Codec<Holder<Instrument>>
c
CODEC
field_39122
ENTRY_CODEC
f_220078_
public static final StreamCodec<RegistryFriendlyByteBuf, Holder<Instrument>>
d
STREAM_CODEC
field_49262
ENTRY_PACKET_CODEC
f_315407_

Constructor summary

ModifierConstructor
public (Holder<SoundEvent> useDuration, int range, float arg2)

Method summary

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