Package org.bukkit.material
Class Sapling
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Wood
org.bukkit.material.Sapling
- All Implemented Interfaces:
Cloneable
Deprecated.
Represents the different types of Tree block that face a direction.
- See Also:
Material.LEGACY_SAPLING
-
Field Summary
Fields inherited from class org.bukkit.material.Wood
DEFAULT_SPECIES, DEFAULT_TYPE
-
Constructor Summary
ConstructorDescriptionSapling()
Deprecated.Constructs a sapling.Deprecated.Constructs a sapling of the given type.Deprecated.Magic valueSapling(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 growableSapling(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 -
Method Summary
Modifier and TypeMethodDescriptionclone()
Deprecated.boolean
Deprecated.Checks if the Sapling would grow when next ticked with bonemealvoid
setIsInstantGrowable(boolean isInstantGrowable)
Deprecated.Set whether this sapling will grow when next ticked with bonemealtoString()
Deprecated.Methods inherited from class org.bukkit.material.Wood
getSpecies, setSpecies
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
Sapling
public Sapling()Deprecated.Constructs a sapling. -
Sapling
Deprecated.Constructs a sapling of the given tree species.- Parameters:
species
- the species of the sapling
-
Sapling
Deprecated.Constructs a sapling of the given tree species and if is it instant growable- Parameters:
species
- the species of the tree blockisInstantGrowable
- true if the Sapling should grow when next ticked with bonemeal
-
Sapling
Deprecated.Constructs a sapling of the given type.- Parameters:
type
- the type of tree block
-
Sapling
Deprecated.Constructs a sapling of the given type and tree species.- Parameters:
type
- the type of saplingspecies
- the species of the sapling
-
Sapling
Deprecated.Constructs a sapling of the given type and tree species and if is it instant growable- Parameters:
type
- the type of saplingspecies
- the species of the saplingisInstantGrowable
- true if the Sapling should grow when next ticked with bonemeal
-
Sapling
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
isInstantGrowable
public boolean isInstantGrowable()Deprecated.Checks if the Sapling would grow when next ticked with bonemeal- Returns:
- true if the Sapling would grow when next ticked with bonemeal
-
setIsInstantGrowable
public void setIsInstantGrowable(boolean isInstantGrowable)Deprecated.Set whether this sapling will grow when next ticked with bonemeal- Parameters:
isInstantGrowable
- true if the Sapling should grow when next ticked with bonemeal
-
toString
Deprecated. -
clone
Deprecated.
-
BlockData
.