Interface IItemCustom

    • Method Detail

      • getEnabled

        boolean getEnabled()
        Returns:
        true if scripted item script is enabled
      • setEnabled

        void setEnabled​(boolean enable)
        Parameters:
        enable - Enable or Disable scripted item script
      • setArmorType

        void setArmorType​(int armorType)
        Sets the armor type for the scripted item.
        Parameters:
        armorType - The armor type
      • setIsTool

        void setIsTool​(boolean isTool)
        Sets whether the scripted item is a tool.
        Parameters:
        isTool - True if the item is a tool, false otherwise
      • setIsNormalItem

        void setIsNormalItem​(boolean normalItem)
        Sets whether the scripted item is a normal item. Will disable all forms of Rotation, Translation, Scale Rendering in hand and on ground
        Parameters:
        normalItem - True if the item is a normal item, false otherwise
      • setDigSpeed

        void setDigSpeed​(int digSpeed)
        Sets the dig speed for the scripted item.
        Parameters:
        digSpeed - The dig speed
      • setMaxStackSize

        void setMaxStackSize​(int maxStackSize)
        Sets the maximum stack size for the scripted item.
        Parameters:
        maxStackSize - The maximum stack size
      • setDurabilityValue

        void setDurabilityValue​(float durabilityValue)
        Sets the current durability value for the scripted item.
        Parameters:
        durabilityValue - The durability value
      • setMaxItemUseDuration

        void setMaxItemUseDuration​(int duration)
        Sets the maximum item use duration for the scripted item.
        Parameters:
        duration - The maximum item use duration
      • setItemUseAction

        void setItemUseAction​(int action)
        Sets the item use action for the scripted item.
        Parameters:
        action - The item use action
      • setEnchantability

        void setEnchantability​(int enchantability)
        Sets the enchantability for the scripted item.
        Parameters:
        enchantability - The enchantability