Package com.nexomc.nexo.nms
Class IItemUtils.EmptyItemUtils
-
- All Implemented Interfaces:
-
com.nexomc.nexo.nms.IItemUtils
public final class IItemUtils.EmptyItemUtils implements IItemUtils
-
-
Constructor Summary
Constructors Constructor Description IItemUtils.EmptyItemUtils()
-
Method Summary
Modifier and Type Method Description Colorable
asColorable(ItemStack itemStack)
ItemStack
copyItemNBTTags(ItemStack oldItem, ItemStack newItem)
Copies over all NBT-Tags from oldItem to newItem Useful for plugins that might register their own NBT-Tags outside the ItemStacks PersistentDataContainer -
Methods inherited from class com.nexomc.nexo.nms.IItemUtils
blockstateComponent, blockstateComponent, consumableComponent, consumableComponent, consumableComponent, foodComponent, handleItemFlagToolTips, repairableComponent, repairableComponent, repairableComponent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
asColorable
Colorable asColorable(ItemStack itemStack)
-
copyItemNBTTags
ItemStack copyItemNBTTags(ItemStack oldItem, ItemStack newItem)
Copies over all NBT-Tags from oldItem to newItem Useful for plugins that might register their own NBT-Tags outside the ItemStacks PersistentDataContainer
- Parameters:
oldItem
- The old ItemStack to copy the NBT-Tags fromnewItem
- The new ItemStack to copy the NBT-Tags to- Returns:
The new ItemStack with the copied NBT-Tags
-
-
-
-