Package org.bukkit.material
Class Leaves
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Wood
org.bukkit.material.Leaves
- All Implemented Interfaces:
Cloneable
Deprecated, for removal: This API element is subject to removal in a future version.
Represents the different types of leaf block that may be permanent or can
decay when too far from a log.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final boolean
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.Fields inherited from class org.bukkit.material.Wood
DEFAULT_SPECIES
-
Constructor Summary
ConstructorDescriptionLeaves()
Deprecated, for removal: This API element is subject to removal in a future version.Constructs a leaf block.Deprecated, for removal: This API element is subject to removal in a future version.Constructs a leaf block of the given type.Deprecated.Magic valueLeaves
(Material type, TreeSpecies species) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a leaf block of the given type and tree species.Leaves
(Material type, TreeSpecies species, boolean isDecayable) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a leaf block of the given type and tree species and flag for whether this leaf block will disappear when too far from a log.Leaves
(TreeSpecies species) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a leaf block of the given tree species.Leaves
(TreeSpecies species, boolean isDecayable) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a leaf block of the given tree species and flag for whether this leaf block will disappear when too far from a log. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
Deprecated, for removal: This API element is subject to removal in a future version.Checks if this leaf block is permanent or can decay when too far from a logboolean
Deprecated, for removal: This API element is subject to removal in a future version.Checks if this leaf block is in the process of decayingvoid
setDecayable
(boolean isDecayable) Deprecated, for removal: This API element is subject to removal in a future version.Set whether this leaf block will disappear when too far from a logvoid
setDecaying
(boolean isDecaying) Deprecated, for removal: This API element is subject to removal in a future version.Set whether this leaf block is in the process of decayingtoString()
Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.bukkit.material.Wood
getSpecies, setSpecies
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
Field Details
-
DEFAULT_TYPE
Deprecated, for removal: This API element is subject to removal in a future version. -
DEFAULT_DECAYABLE
protected static final boolean DEFAULT_DECAYABLEDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Constructor Details
-
Leaves
public Leaves()Deprecated, for removal: This API element is subject to removal in a future version.Constructs a leaf block. -
Leaves
Deprecated, for removal: This API element is subject to removal in a future version.Constructs a leaf block of the given tree species.- Parameters:
species
- the species of the wood block
-
Leaves
Deprecated, for removal: This API element is subject to removal in a future version.Constructs a leaf block of the given tree species and flag for whether this leaf block will disappear when too far from a log.- Parameters:
species
- the species of the wood blockisDecayable
- whether the block is permanent or can disappear
-
Leaves
Deprecated, for removal: This API element is subject to removal in a future version.Constructs a leaf block of the given type.- Parameters:
type
- the type of leaf block
-
Leaves
Deprecated, for removal: This API element is subject to removal in a future version.Constructs a leaf block of the given type and tree species.- Parameters:
type
- the type of leaf blockspecies
- the species of the wood block
-
Leaves
Deprecated, for removal: This API element is subject to removal in a future version.Constructs a leaf block of the given type and tree species and flag for whether this leaf block will disappear when too far from a log.- Parameters:
type
- the type of leaf blockspecies
- the species of the wood blockisDecayable
- whether the block is permanent or can disappear
-
Leaves
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
isDecaying
public boolean isDecaying()Deprecated, for removal: This API element is subject to removal in a future version.Checks if this leaf block is in the process of decaying- Returns:
- true if the leaf block is in the process of decaying
-
setDecaying
public void setDecaying(boolean isDecaying) Deprecated, for removal: This API element is subject to removal in a future version.Set whether this leaf block is in the process of decaying- Parameters:
isDecaying
- whether the block is decaying or not
-
isDecayable
public boolean isDecayable()Deprecated, for removal: This API element is subject to removal in a future version.Checks if this leaf block is permanent or can decay when too far from a log- Returns:
- true if the leaf block is permanent or can decay when too far from a log
-
setDecayable
public void setDecayable(boolean isDecayable) Deprecated, for removal: This API element is subject to removal in a future version.Set whether this leaf block will disappear when too far from a log- Parameters:
isDecayable
- whether the block is permanent or can disappear
-
toString
Deprecated, for removal: This API element is subject to removal in a future version. -
clone
Deprecated, for removal: This API element is subject to removal in a future version.
-
BlockData
.