net.minecraft.world.item.component

public record DeathProtection

dab
net.minecraft.world.item.component.DeathProtection
net.minecraft.class_10216
net.minecraft.component.type.DeathProtectionComponent
net.minecraft.world.item.component.DeathProtection

Field summary

Modifier and TypeField
private final List<ConsumeEffect>
d
deathEffects
comp_3211
deathEffects
public static final com.mojang.serialization.Codec<DeathProtection>
a
CODEC
field_54231
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, DeathProtection>
b
STREAM_CODEC
field_54232
PACKET_CODEC
public static final DeathProtection
c
TOTEM_OF_UNDYING
field_54233
TOTEM_OF_UNDYING

Constructor summary

ModifierConstructor
public (List<ConsumeEffect> arg0)

Method summary

Modifier and TypeMethod
public void
a(cxp arg0, bwg arg1)
applyEffects(ItemStack arg0, LivingEntity arg1)
method_64201(class_1799 arg0, class_1309 arg1)
applyDeathEffects(ItemStack stack, LivingEntity entity)
public List<ConsumeEffect>
a()
deathEffects()
comp_3211()
deathEffects()