Class ItemDisplayUtil

java.lang.Object
net.notcoded.codelib.util.item.ItemDisplayUtil

public class ItemDisplayUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addGlint(net.minecraft.world.item.ItemStack itemStack)
    Adds enchantment glint to an item.
    static void
    addLore(net.minecraft.world.item.ItemStack itemStack, String string, int line)
    Adds lore to an item.
    static void
    removeLore(net.minecraft.world.item.ItemStack itemStack, int line)
    Removes lore from an item.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ItemDisplayUtil

      public ItemDisplayUtil()
  • Method Details

    • addLore

      public static void addLore(net.minecraft.world.item.ItemStack itemStack, String string, int line)
      Adds lore to an item.
      Parameters:
      itemStack - ItemStack that should get the lore added onto.
      string - The lore message.
      line - The line.
    • removeLore

      public static void removeLore(net.minecraft.world.item.ItemStack itemStack, int line)
      Removes lore from an item.
      Parameters:
      itemStack - ItemStack that should get the lore removed.
      line - The line that should get removed.
    • addGlint

      public static void addGlint(net.minecraft.world.item.ItemStack itemStack)
      Adds enchantment glint to an item.
      Parameters:
      itemStack - The ItemStack that should get the glint.