Class HiddenTooltipPartsTest.TestItem

java.lang.Object
net.minecraft.world.item.Item
net.neoforged.neoforge.oldtest.item.HiddenTooltipPartsTest.TestItem
All Implemented Interfaces:
FeatureElement, ItemLike, IItemExtension
Enclosing class:
HiddenTooltipPartsTest

static class HiddenTooltipPartsTest.TestItem extends Item
  • Constructor Details

  • Method Details

    • getAttributeModifiers

      public com.google.common.collect.Multimap<Attribute,AttributeModifier> getAttributeModifiers(EquipmentSlot slot, ItemStack stack)
      Description copied from interface: IItemExtension
      ItemStack sensitive version of getItemAttributeModifiers
    • getDefaultTooltipHideFlags

      public int getDefaultTooltipHideFlags(ItemStack stack)
      Description copied from interface: IItemExtension
      Get the tooltip parts that should be hidden by default on the given stack if the HideFlags tag is not set.
      Parameters:
      stack - the stack
      Returns:
      the default hide flags
      See Also: