Class KeepOnDeath
java.lang.Object
net.ntrdeal.realapi.item.component.custom.KeepOnDeath
- All Implemented Interfaces:
net.minecraft.world.item.component.TooltipProvider
public class KeepOnDeath
extends Object
implements net.minecraft.world.item.component.TooltipProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<KeepOnDeath> static final KeepOnDeathstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf, KeepOnDeath> static final net.minecraft.network.chat.Componentstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToTooltip(net.minecraft.world.item.Item.TooltipContext context, Consumer<net.minecraft.network.chat.Component> consumer, net.minecraft.world.item.TooltipFlag flag, net.minecraft.core.component.DataComponentGetter getter)
-
Field Details
-
INSTANCE
-
CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf, KeepOnDeath> STREAM_CODEC -
TEXT_STRING
- See Also:
-
TEXT
public static final net.minecraft.network.chat.Component TEXT
-
-
Constructor Details
-
KeepOnDeath
public KeepOnDeath()
-
-
Method Details
-
addToTooltip
public void addToTooltip(net.minecraft.world.item.Item.TooltipContext context, Consumer<net.minecraft.network.chat.Component> consumer, net.minecraft.world.item.TooltipFlag flag, net.minecraft.core.component.DataComponentGetter getter) - Specified by:
addToTooltipin interfacenet.minecraft.world.item.component.TooltipProvider
-