Class Wood

All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
Leaves, Sapling, Tree, WoodenStep

@Deprecated(since="1.13", forRemoval=true) public class Wood extends MaterialData
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 wood blocks of different species.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final TreeSpecies
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected static final Material
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Constructs a wood block.
    Wood(Material type)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Constructs a wood block of the given type.
    Wood(Material type, byte data)
    Deprecated.
    Magic value
    Wood(Material type, TreeSpecies species)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Constructs a wood block of the given type and tree species.
    Wood(TreeSpecies species)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Constructs a wood block of the given tree species.
  • 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 species of this wood block
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the species of this wood block
    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
  • Field Details

    • DEFAULT_TYPE

      protected static final Material DEFAULT_TYPE
      Deprecated, for removal: This API element is subject to removal in a future version.
    • DEFAULT_SPECIES

      protected static final TreeSpecies DEFAULT_SPECIES
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • Wood

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

      public Wood(TreeSpecies species)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructs a wood block of the given tree species.
      Parameters:
      species - the species of the wood block
    • Wood

      public Wood(Material type)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructs a wood block of the given type.
      Parameters:
      type - the type of wood block
    • Wood

      public Wood(Material type, TreeSpecies species)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructs a wood block of the given type and tree species.
      Parameters:
      type - the type of wood block
      species - the species of the wood block
    • Wood

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

    • getSpecies

      public TreeSpecies getSpecies()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the current species of this wood block
      Returns:
      TreeSpecies of this wood block
    • setSpecies

      public void setSpecies(TreeSpecies species)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the species of this wood block
      Parameters:
      species - New species of this wood block
    • 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 Wood clone()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      clone in class MaterialData