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 SummaryFieldsModifier and TypeFieldDescriptionprotected static final booleanDeprecated, for removal: This API element is subject to removal in a future version.protected static final MaterialDeprecated, for removal: This API element is subject to removal in a future version.Fields inherited from class org.bukkit.material.WoodDEFAULT_SPECIES
- 
Constructor SummaryConstructorsConstructorDescriptionLeaves()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 SummaryModifier and TypeMethodDescriptionclone()Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, 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 logbooleanDeprecated, for removal: This API element is subject to removal in a future version.Checks if this leaf block is in the process of decayingvoidsetDecayable(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 logvoidsetDecaying(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.WoodgetSpecies, setSpeciesMethods inherited from class org.bukkit.material.MaterialDataequals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
- 
Field Details- 
DEFAULT_TYPEDeprecated, for removal: This API element is subject to removal in a future version.
- 
DEFAULT_DECAYABLEprotected static final boolean DEFAULT_DECAYABLEDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
 
 
- 
- 
Constructor Details- 
Leavespublic Leaves()Deprecated, for removal: This API element is subject to removal in a future version.Constructs a leaf block.
- 
LeavesDeprecated, 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
 
- 
LeavesDeprecated, 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 block
- isDecayable- whether the block is permanent or can disappear
 
- 
LeavesDeprecated, 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
 
- 
LeavesDeprecated, 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 block
- species- the species of the wood block
 
- 
LeavesDeprecated, 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 block
- species- the species of the wood block
- isDecayable- whether the block is permanent or can disappear
 
- 
LeavesDeprecated.Magic value- Parameters:
- type- the type
- data- the raw data value
 
 
- 
- 
Method Details- 
isDecayingpublic 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
 
- 
setDecayingpublic 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
 
- 
isDecayablepublic 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
 
- 
setDecayablepublic 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
 
- 
toStringDeprecated, for removal: This API element is subject to removal in a future version.
- 
cloneDeprecated, for removal: This API element is subject to removal in a future version.
 
- 
BlockData.