BlockData.@Deprecated public class Leaves extends Wood
Material.LEGACY_LEAVES, 
Material.LEGACY_LEAVES_2| Modifier and Type | Field and Description | 
|---|---|
protected static boolean | 
DEFAULT_DECAYABLE
Deprecated.  
  | 
protected static Material | 
DEFAULT_TYPE
Deprecated.  
  | 
DEFAULT_SPECIES| Constructor and Description | 
|---|
Leaves()
Deprecated.  
Constructs a leaf block. 
 | 
Leaves(Material type)
Deprecated.  
Constructs a leaf block of the given type. 
 | 
Leaves(Material type,
      byte data)
Deprecated. 
 
Magic value 
 | 
Leaves(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. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Leaves | 
clone()
Deprecated.  
  | 
boolean | 
isDecayable()
Deprecated.  
Checks if this leaf block is permanent or can decay when too far from a
 log 
 | 
boolean | 
isDecaying()
Deprecated.  
Checks if this leaf block is in the process of decaying 
 | 
void | 
setDecayable(boolean isDecayable)
Deprecated.  
Set whether this leaf block will disappear when too far from a log 
 | 
void | 
setDecaying(boolean isDecaying)
Deprecated.  
Set whether this leaf block is in the process of decaying 
 | 
String | 
toString()
Deprecated.  
  | 
getSpecies, setSpeciesequals, getData, getItemType, hashCode, setData, toItemStack, toItemStackprotected 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 © 2022. All rights reserved.