BlockData.@Deprecated public class Sapling extends Wood
Material.LEGACY_SAPLINGDEFAULT_SPECIES, DEFAULT_TYPE| Constructor and Description |
|---|
Sapling()
Deprecated.
Constructs a sapling.
|
Sapling(Material type)
Deprecated.
Constructs a sapling of the given type.
|
Sapling(Material type,
byte data)
Deprecated.
Magic value
|
Sapling(Material type,
TreeSpecies species)
Deprecated.
Constructs a sapling of the given type and tree species.
|
Sapling(Material type,
TreeSpecies species,
boolean isInstantGrowable)
Deprecated.
Constructs a sapling of the given type and tree species and if is it
instant growable
|
Sapling(TreeSpecies species)
Deprecated.
Constructs a sapling of the given tree species.
|
Sapling(TreeSpecies species,
boolean isInstantGrowable)
Deprecated.
Constructs a sapling of the given tree species and if is it instant
growable
|
| Modifier and Type | Method and Description |
|---|---|
Sapling |
clone()
Deprecated.
|
boolean |
isInstantGrowable()
Deprecated.
Checks if the Sapling would grow when next ticked with bonemeal
|
void |
setIsInstantGrowable(boolean isInstantGrowable)
Deprecated.
Set whether this sapling will grow when next ticked with bonemeal
|
String |
toString()
Deprecated.
|
getSpecies, setSpeciesequals, getData, getItemType, hashCode, setData, toItemStack, toItemStackpublic 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 © 2022. All rights reserved.