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:
- 
Field SummaryFields inherited from class org.bukkit.material.WoodDEFAULT_SPECIES, DEFAULT_TYPE
- 
Constructor SummaryConstructorsConstructorDescriptionSapling()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 SummaryModifier and TypeMethodDescriptionclone()Deprecated.booleanDeprecated.Checks if the Sapling would grow when next ticked with bonemealvoidsetIsInstantGrowable(boolean isInstantGrowable) Deprecated.Set whether this sapling will grow when next ticked with bonemealtoString()Deprecated.Methods inherited from class org.bukkit.material.WoodgetSpecies, setSpeciesMethods inherited from class org.bukkit.material.MaterialDataequals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
- 
Constructor Details- 
Saplingpublic Sapling()Deprecated.Constructs a sapling.
- 
SaplingDeprecated.Constructs a sapling of the given tree species.- Parameters:
- species- the species of the sapling
 
- 
SaplingDeprecated.Constructs a sapling of the given tree species and if is it instant growable- Parameters:
- species- the species of the tree block
- isInstantGrowable- true if the Sapling should grow when next ticked with bonemeal
 
- 
SaplingDeprecated.Constructs a sapling of the given type.- Parameters:
- type- the type of tree block
 
- 
SaplingDeprecated.Constructs a sapling of the given type and tree species.- Parameters:
- type- the type of sapling
- species- the species of the sapling
 
- 
SaplingDeprecated.Constructs a sapling of the given type and tree species and if is it instant growable- Parameters:
- type- the type of sapling
- species- the species of the sapling
- isInstantGrowable- true if the Sapling should grow when next ticked with bonemeal
 
- 
SaplingDeprecated.Magic value- Parameters:
- type- the type
- data- the raw data value
 
 
- 
- 
Method Details- 
isInstantGrowablepublic 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
 
- 
setIsInstantGrowablepublic 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
 
- 
toStringDeprecated.
- 
cloneDeprecated.
 
- 
BlockData.