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 Details

    • INSTANCE

      public static final KeepOnDeath INSTANCE
    • CODEC

      public static final com.mojang.serialization.Codec<KeepOnDeath> CODEC
    • STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf, KeepOnDeath> STREAM_CODEC
    • TEXT_STRING

      public static final String 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:
      addToTooltip in interface net.minecraft.world.item.component.TooltipProvider