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
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.world.item.component.TooltipProvider

    net.minecraft.world.item.component.TooltipProvider.Getter<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<KeepOnDeath>
     
    static final KeepOnDeath
     
    static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf, KeepOnDeath>
     
    static final net.minecraft.network.chat.Component
     
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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