Class Wool

All Implemented Interfaces:
Cloneable, Colorable

@Deprecated(since="1.13", forRemoval=true) public class Wool extends MaterialData implements Colorable
Deprecated, for removal: This API element is subject to removal in a future version.
all usage of MaterialData is deprecated and subject to removal. Use BlockData.
Represents a Wool/Cloth block
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Wool(DyeColor color)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Wool(Material type)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Wool(Material type, byte data)
    Deprecated.
    Magic value
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the current color of this dye
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the color of this dye
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class org.bukkit.material.MaterialData

    equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Wool

      public Wool()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • Wool

      public Wool(DyeColor color)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • Wool

      public Wool(Material type)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • Wool

      @Deprecated(since="1.6.2") public Wool(Material type, byte data)
      Deprecated.
      Magic value
      Parameters:
      type - the type
      data - the raw data value
  • Method Details

    • getColor

      public DyeColor getColor()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the current color of this dye
      Specified by:
      getColor in interface Colorable
      Returns:
      DyeColor of this dye
    • setColor

      public void setColor(DyeColor color)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the color of this dye
      Specified by:
      setColor in interface Colorable
      Parameters:
      color - New color of this dye
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class MaterialData
    • clone

      public Wool clone()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      clone in class MaterialData