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.
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.protected static final MaterialDeprecated.Fields inherited from class org.bukkit.material.WoodDEFAULT_SPECIES
- 
Constructor SummaryConstructorsConstructorDescriptionLeaves()Deprecated.Constructs a leaf block.Deprecated.Constructs a leaf block of the given type.Deprecated.Magic valueLeaves(Material type, TreeSpecies species) Deprecated.Constructs a leaf block of the given type and tree species.Leaves(Material type, TreeSpecies species, boolean isDecayable) Deprecated.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.Constructs a leaf block of the given tree species.Leaves(TreeSpecies species, boolean isDecayable) Deprecated.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.booleanDeprecated.Checks if this leaf block is permanent or can decay when too far from a logbooleanDeprecated.Checks if this leaf block is in the process of decayingvoidsetDecayable(boolean isDecayable) Deprecated.Set whether this leaf block will disappear when too far from a logvoidsetDecaying(boolean isDecaying) Deprecated.Set whether this leaf block is in the process of decayingtoString()Deprecated.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.
- 
DEFAULT_DECAYABLEprotected static final boolean DEFAULT_DECAYABLEDeprecated.- See Also:
 
 
- 
- 
Constructor Details- 
Leavespublic Leaves()Deprecated.Constructs a leaf block.
- 
LeavesDeprecated.Constructs a leaf block of the given tree species.- Parameters:
- species- the species of the wood block
 
- 
LeavesDeprecated.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.Constructs a leaf block of the given type.- Parameters:
- type- the type of leaf block
 
- 
LeavesDeprecated.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.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.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.Set whether this leaf block is in the process of decaying- Parameters:
- isDecaying- whether the block is decaying or not
 
- 
isDecayablepublic boolean isDecayable()Deprecated.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.Set whether this leaf block will disappear when too far from a log- Parameters:
- isDecayable- whether the block is permanent or can disappear
 
- 
toStringDeprecated.
- 
cloneDeprecated.
 
- 
BlockData.