Interface IItemCustomizable

    • Method Detail

      • getScriptHandler

        java.lang.Object getScriptHandler()
      • getMaxStackSize

        int getMaxStackSize()
        Specified by:
        getMaxStackSize in interface IItemStack
        Returns:
        Returns the maximum stack size for this item.
      • getArmorType

        int getArmorType()
        Gets the armor type for the scripted item.
        Returns:
        The armor type
      • isTool

        boolean isTool()
        Checks if the scripted item is a tool. Allows for enchanting
        Returns:
        True if the item is a tool, false otherwise
      • isNormalItem

        boolean isNormalItem()
        Checks if the scripted item is a normal item.
        Returns:
        True if the item is a normal item, false otherwise
      • getDigSpeed

        int getDigSpeed()
        Gets the dig speed for the scripted item.
        Returns:
        The dig speed
      • getDurabilityValue

        double getDurabilityValue()
        Gets the current durability value for the scripted item.
        Returns:
        The durability value
      • getMaxItemUseDuration

        int getMaxItemUseDuration()
        Gets the maximum item use duration for the scripted item.
        Returns:
        The maximum item use duration
      • getItemUseAction

        int getItemUseAction()
        Gets the item use action for the scripted item.
        Returns:
        The item use action
      • getEnchantability

        int getEnchantability()
        Gets the enchantability for the scripted item.
        Returns:
        The enchantability
      • getTexture

        java.lang.String getTexture()
        Gets the texture path for the scripted item.
        Returns:
        The texture path
      • setTexture

        void setTexture​(java.lang.String texture)
        Sets the texture path for the scripted item. Can be a URL
        Parameters:
        texture - The texture path
      • getDurabilityShow

        java.lang.Boolean getDurabilityShow()
        Checks if the durability bar should be shown for the scripted item.
        Returns:
        True if the durability bar should be shown, false otherwise
      • setDurabilityShow

        void setDurabilityShow​(java.lang.Boolean durabilityShow)
        Sets whether the durability bar should be shown for the scripted item.
        Parameters:
        durabilityShow - True if the durability bar should be shown, false otherwise
      • getDurabilityColor

        java.lang.Integer getDurabilityColor()
        Gets the color of the durability bar for the scripted item.
        Returns:
        The durability bar color
      • setDurabilityColor

        void setDurabilityColor​(java.lang.Integer durabilityColor)
        Sets the color of the durability bar for the scripted item.
        Parameters:
        durabilityColor - The durability bar color
      • getColor

        java.lang.Integer getColor()
        Gets the color of the scripted item.
        Returns:
        The item color
      • setColor

        void setColor​(java.lang.Integer color)
        Sets the color of the scripted item.
        Parameters:
        color - The item color
      • setRotation

        void setRotation​(java.lang.Float rotationX,
                         java.lang.Float rotationY,
                         java.lang.Float rotationZ)
        Sets the rotation values for the scripted item.
        Parameters:
        rotationX - The X-axis rotation
        rotationY - The Y-axis rotation
        rotationZ - The Z-axis rotation
      • setRotationRate

        void setRotationRate​(java.lang.Float rotationXRate,
                             java.lang.Float rotationYRate,
                             java.lang.Float rotationZRate)
        Sets the rotation rate values for the scripted item. Spinning Speed
        Parameters:
        rotationXRate - The X-axis rotation rate
        rotationYRate - The Y-axis rotation rate
        rotationZRate - The Z-axis rotation rate
      • setScale

        void setScale​(java.lang.Float scaleX,
                      java.lang.Float scaleY,
                      java.lang.Float scaleZ)
        Sets the scale values for the scripted item.
        Parameters:
        scaleX - The X-axis scale
        scaleY - The Y-axis scale
        scaleZ - The Z-axis scale
      • setTranslate

        void setTranslate​(java.lang.Float translateX,
                          java.lang.Float translateY,
                          java.lang.Float translateZ)
        Sets the translation values for the scripted item.
        Parameters:
        translateX - The X-axis translation
        translateY - The Y-axis translation
        translateZ - The Z-axis translation
      • getRotationX

        java.lang.Float getRotationX()
        Gets the X-axis rotation for the scripted item.
        Returns:
        The X-axis rotation
      • getRotationY

        java.lang.Float getRotationY()
        Gets the Y-axis rotation for the scripted item.
        Returns:
        The Y-axis rotation
      • getRotationZ

        java.lang.Float getRotationZ()
        Gets the Z-axis rotation for the scripted item.
        Returns:
        The Z-axis rotation
      • getRotationXRate

        java.lang.Float getRotationXRate()
        Gets the X-axis rotation rate for the scripted item.
        Returns:
        The X-axis rotation rate
      • getRotationYRate

        java.lang.Float getRotationYRate()
        Gets the Y-axis rotation rate for the scripted item.
        Returns:
        The Y-axis rotation rate
      • getRotationZRate

        java.lang.Float getRotationZRate()
        Gets the Z-axis rotation rate for the scripted item.
        Returns:
        The Z-axis rotation rate
      • getScaleX

        java.lang.Float getScaleX()
        Gets the X-axis scale for the scripted item.
        Returns:
        The X-axis scale
      • getScaleY

        java.lang.Float getScaleY()
        Gets the Y-axis scale for the scripted item.
        Returns:
        The Y-axis scale
      • getScaleZ

        java.lang.Float getScaleZ()
        Gets the Z-axis scale for the scripted item.
        Returns:
        The Z-axis scale
      • getTranslateX

        java.lang.Float getTranslateX()
        Gets the X-axis translation for the scripted item.
        Returns:
        The X-axis translation
      • getTranslateY

        java.lang.Float getTranslateY()
        Gets the Y-axis translation for the scripted item.
        Returns:
        The Y-axis translation
      • getTranslateZ

        java.lang.Float getTranslateZ()
        Gets the Z-axis translation for the scripted item.
        Returns:
        The Z-axis translation