net.minecraft.item.consume

public record PlaySoundConsumeEffect

implements ConsumeEffect

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

Field summary

Modifier and TypeField
private final RegistryEntry<SoundEvent>
sound
comp_3098
sound
public static final com.mojang.serialization.MapCodec<PlaySoundConsumeEffect>
CODEC
field_53815
CODEC
public static final PacketCodec<RegistryByteBuf, PlaySoundConsumeEffect>
STREAM_CODEC
field_53816
PACKET_CODEC

Constructor summary

ModifierConstructor
public (RegistryEntry<SoundEvent> sound)

Method summary

Modifier and TypeMethod
public ConsumeEffect$Type<PlaySoundConsumeEffect>
getType()
method_62864()
getType()
public boolean
apply(Level level, ItemStack stack, LivingEntity user)
method_62866(class_1937 arg0, class_1799 arg1, class_1309 arg2)
onConsume(World arg0, ItemStack arg1, LivingEntity arg2)
public RegistryEntry<SoundEvent>
sound()
comp_3098()
sound()
private static com.mojang.datafixers.kinds.App
lambda$static$0(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_62868(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_62868(com.mojang.serialization.codecs.RecordCodecBuilder$Instance instance)