net.minecraft.component.type

public record DeathProtectionComponent

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

Field summary

Modifier and TypeField
private final List<ConsumeEffect>
deathEffects
deathEffects
comp_3211
deathEffects
public static final com.mojang.serialization.Codec<DeathProtectionComponent>
CODEC
CODEC
field_54231
CODEC
public static final PacketCodec<RegistryByteBuf, DeathProtectionComponent>
STREAM_CODEC
STREAM_CODEC
field_54232
PACKET_CODEC
public static final DeathProtectionComponent
TOTEM_OF_UNDYING
TOTEM_OF_UNDYING
field_54233
TOTEM_OF_UNDYING

Constructor summary

ModifierConstructor
public (List<ConsumeEffect> deathEffects)

Method summary

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