net.minecraft.world.item.consume_effects

public record PlaySoundConsumeEffect

implements ConsumeEffect

dep
net.minecraft.world.item.consume_effects.PlaySoundConsumeEffect
net.minecraft.class_10136

Field summary

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

Constructor summary

ModifierConstructor
public (Holder<SoundEvent> arg0)

Method summary

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