Interface IItemScripted

All Superinterfaces:
IItemStack

public interface IItemScripted extends IItemStack
  • Method Details

    • hasTexture

      boolean hasTexture(int damage)
    • getTexture

      String getTexture(int damage)
      Deprecated.
      will be removed in the future
    • getTexture

      String getTexture()
    • setTexture

      void setTexture(int damage, String texture)
      Deprecated.
      will be removed in the future
    • setTexture

      void setTexture(String texture)
      Parameters:
      texture - Item the scripted item will use as texture
    • setMaxStackSize

      void setMaxStackSize(int size)
    • getDurabilityValue

      double getDurabilityValue()
      Returns:
      Returns a value between 0 and 1, 0 is an empty durability bar and 1 a full one
    • setDurabilityValue

      void setDurabilityValue(float value)
      Parameters:
      value - A value between 0 and 1, 0 is an empty durability bar and 1 a full one
    • getDurabilityShow

      boolean getDurabilityShow()
      Returns:
      Returns whether the durability is visible or not
    • setDurabilityShow

      void setDurabilityShow(boolean bo)
      Parameters:
      bo - Set whether the durability is visible
    • getDurabilityColor

      int getDurabilityColor()
      Returns:
      Returns the customly set durability color for the bar. If no custom value is set it will return -1
    • setDurabilityColor

      void setDurabilityColor(int color)
      Parameters:
      color - Set a custom color hex value for durability bar.
    • getColor

      int getColor()
      Returns:
      Returns the color of the item. -1 for no color
    • setColor

      void setColor(int color)
      Parameters:
      color - Set a custom color hex value for the item tint. -1 to remove the color