Package net.notcoded.codelib.util.item
Class ItemDisplayUtil
java.lang.Object
net.notcoded.codelib.util.item.ItemDisplayUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddGlint(net.minecraft.world.item.ItemStack itemStack) Adds enchantment glint to an item.static voidAdds lore to an item.static voidremoveLore(net.minecraft.world.item.ItemStack itemStack, int line) Removes lore from an item.
-
Constructor Details
-
ItemDisplayUtil
public ItemDisplayUtil()
-
-
Method Details
-
addLore
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.
-