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, for removal: This API element is subject to removal in a future version.
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, for removal: This API element is subject to removal in a future version.Constructs a sapling.Deprecated, for removal: This API element is subject to removal in a future version.Constructs a sapling of the given type.Deprecated.Magic valueSapling(Material type, TreeSpecies species) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a sapling of the given type and tree species.Sapling(Material type, TreeSpecies species, boolean isInstantGrowable) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a sapling of the given type and tree species and if is it instant growableSapling(TreeSpecies species) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a sapling of the given tree species.Sapling(TreeSpecies species, boolean isInstantGrowable) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a sapling of the given tree species and if is it instant growable
- 
Method SummaryModifier and TypeMethodDescriptionclone()Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.Checks if the Sapling would grow when next ticked with bonemealvoidsetIsInstantGrowable(boolean isInstantGrowable) Deprecated, for removal: This API element is subject to removal in a future version.Set whether this sapling will grow when next ticked with bonemealtoString()Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.Constructs a sapling.
- 
SaplingDeprecated, for removal: This API element is subject to removal in a future version.Constructs a sapling of the given tree species.- Parameters:
- species- the species of the sapling
 
- 
SaplingDeprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.Constructs a sapling of the given type.- Parameters:
- type- the type of tree block
 
- 
SaplingDeprecated, for removal: This API element is subject to removal in a future version.Constructs a sapling of the given type and tree species.- Parameters:
- type- the type of sapling
- species- the species of the sapling
 
- 
SaplingDeprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.
- 
cloneDeprecated, for removal: This API element is subject to removal in a future version.
 
- 
BlockData.