Class IItemUtils.EmptyItemUtils

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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
    • Constructor Detail

      • IItemUtils.EmptyItemUtils

        IItemUtils.EmptyItemUtils()
    • Method Detail

      • 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 from
        newItem - The new ItemStack to copy the NBT-Tags to
        Returns:

        The new ItemStack with the copied NBT-Tags