Cloneablepublic class Leaves extends Wood
Material.LEGACY_LEAVES, 
Material.LEGACY_LEAVES_2| Modifier and Type | Field | Description | 
|---|---|---|
| protected static boolean | DEFAULT_DECAYABLE | |
| protected static Material | DEFAULT_TYPE | 
DEFAULT_SPECIES| Constructor | Description | 
|---|---|
| Leaves() | Constructs a leaf block. | 
| Leaves(Material type) | Constructs a leaf block of the given type. | 
| Leaves(Material type,
      byte data) | Deprecated. 
 Magic value | 
| Leaves(Material type,
      TreeSpecies species) | Constructs a leaf block of the given type and tree species. | 
| Leaves(Material type,
      TreeSpecies species,
      boolean isDecayable) | 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) | Constructs a leaf block of the given tree species. | 
| Leaves(TreeSpecies species,
      boolean isDecayable) | Constructs a leaf block of the given tree species and flag for whether
 this leaf block will disappear when too far from a log. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Leaves | clone() | |
| boolean | isDecayable() | Checks if this leaf block is permanent or can decay when too far from a
 log | 
| boolean | isDecaying() | Checks if this leaf block is in the process of decaying | 
| void | setDecayable(boolean isDecayable) | Set whether this leaf block will disappear when too far from a log | 
| void | setDecaying(boolean isDecaying) | Set whether this leaf block is in the process of decaying | 
| String | toString() | 
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStackfinalize, getClass, notify, notifyAll, wait, wait, waitgetSpecies, setSpeciesprotected static final Material DEFAULT_TYPE
protected static final boolean DEFAULT_DECAYABLE
public Leaves()
public Leaves(TreeSpecies species)
species - the species of the wood blockpublic Leaves(TreeSpecies species, boolean isDecayable)
species - the species of the wood blockisDecayable - whether the block is permanent or can disappearpublic Leaves(Material type)
type - the type of leaf blockpublic Leaves(Material type, TreeSpecies species)
type - the type of leaf blockspecies - the species of the wood blockpublic Leaves(Material type, TreeSpecies species, boolean isDecayable)
type - the type of leaf blockspecies - the species of the wood blockisDecayable - whether the block is permanent or can disappear@Deprecated public Leaves(Material type, byte data)
type - the typedata - the raw data valuepublic boolean isDecaying()
public void setDecaying(boolean isDecaying)
isDecaying - whether the block is decaying or notpublic boolean isDecayable()
public void setDecayable(boolean isDecayable)
isDecayable - whether the block is permanent or can disappearCopyright © 2019. All rights reserved.