java.lang.Cloneable
public class Sapling extends Wood
Material.LEGACY_SAPLING
DEFAULT_SPECIES, DEFAULT_TYPE
Constructor | Description |
---|---|
Sapling() |
Constructs a sapling.
|
Sapling(Material type) |
Constructs a sapling of the given type.
|
Sapling(Material type,
byte data) |
Deprecated.
Magic value
|
Sapling(Material type,
TreeSpecies species) |
Constructs a sapling of the given type and tree species.
|
Sapling(Material type,
TreeSpecies species,
boolean isInstantGrowable) |
Constructs a sapling of the given type and tree species and if is it
instant growable
|
Sapling(TreeSpecies species) |
Constructs a sapling of the given tree species.
|
Sapling(TreeSpecies species,
boolean isInstantGrowable) |
Constructs a sapling of the given tree species and if is it instant
growable
|
Modifier and Type | Method | Description |
---|---|---|
Sapling |
clone() |
|
boolean |
isInstantGrowable() |
Checks if the Sapling would grow when next ticked with bonemeal
|
void |
setIsInstantGrowable(boolean isInstantGrowable) |
Set whether this sapling will grow when next ticked with bonemeal
|
java.lang.String |
toString() |
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
finalize, getClass, notify, notifyAll, wait, wait, wait
getSpecies, setSpecies
public Sapling()
public Sapling(TreeSpecies species)
species
- the species of the saplingpublic Sapling(TreeSpecies species, boolean isInstantGrowable)
species
- the species of the tree blockisInstantGrowable
- true if the Sapling should grow when next ticked with bonemealpublic Sapling(Material type)
type
- the type of tree blockpublic Sapling(Material type, TreeSpecies species)
type
- the type of saplingspecies
- the species of the saplingpublic Sapling(Material type, TreeSpecies species, boolean isInstantGrowable)
type
- the type of saplingspecies
- the species of the saplingisInstantGrowable
- true if the Sapling should grow when next ticked
with bonemeal@Deprecated public Sapling(Material type, byte data)
type
- the typedata
- the raw data valuepublic boolean isInstantGrowable()
public void setIsInstantGrowable(boolean isInstantGrowable)
isInstantGrowable
- true if the Sapling should grow when next ticked
with bonemealCopyright © 2018. All rights reserved.