Cloneable
@Deprecated public class Leaves extends Wood
BlockData
.Material.LEGACY_LEAVES
,
Material.LEGACY_LEAVES_2
Modifier and Type | Field | Description |
---|---|---|
protected static boolean |
DEFAULT_DECAYABLE |
Deprecated.
|
protected static Material |
DEFAULT_TYPE |
Deprecated.
|
DEFAULT_SPECIES
Constructor | 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 | 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.
|
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
finalize, getClass, notify, notifyAll, wait, wait, wait
getSpecies, setSpecies
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 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 © 2020. All rights reserved.