net.minecraft.world.item.consume_effects

public record PlaySoundConsumeEffect

implements ConsumeEffect

dbc
net.minecraft.world.item.consume_effects.PlaySoundConsumeEffect
net.minecraft.class_10136
net.minecraft.item.consume.PlaySoundConsumeEffect
net.minecraft.world.item.consume_effects.PlaySoundConsumeEffect

Field summary

Modifier and TypeField
private final Holder<SoundEvent>
c
sound
comp_3098
sound
public static final com.mojang.serialization.MapCodec<PlaySoundConsumeEffect>
a
CODEC
field_53815
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, PlaySoundConsumeEffect>
b
STREAM_CODEC
field_53816
PACKET_CODEC

Constructor summary

ModifierConstructor
public (Holder<SoundEvent> arg0)

Method summary

Modifier and TypeMethod
public ConsumeEffect$Type<PlaySoundConsumeEffect>
a()
getType()
method_62864()
getType()
public boolean
a(dhi arg0, cxp arg1, bwg arg2)
apply(Level arg0, ItemStack arg1, LivingEntity arg2)
method_62866(class_1937 arg0, class_1799 arg1, class_1309 arg2)
onConsume(World arg0, ItemStack arg1, LivingEntity arg2)
public Holder<SoundEvent>
b()
sound()
comp_3098()
sound()