public class Leaves extends Wood
Material.LEAVES
,
Material.LEAVES_2
Modifier and Type | Field and Description |
---|---|
protected static boolean |
DEFAULT_DECAYABLE |
protected static Material |
DEFAULT_TYPE |
DEFAULT_SPECIES
Constructor and Description |
---|
Leaves()
Constructs a leaf block.
|
Leaves(int type)
Deprecated.
Magic value
|
Leaves(int type,
byte data)
Deprecated.
Magic value
|
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 and 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() |
getSpecies, setSpecies
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
protected 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 disappear@Deprecated public Leaves(int type)
type
- the raw type idpublic 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(int type, byte data)
type
- the raw type iddata
- the raw data value@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 © 2017. All rights reserved.