Enum Class TreeSpecies
- All Implemented Interfaces:
Serializable, Comparable<TreeSpecies>, Constable
Repesents a grouping of Bukkkit
TreeTypes-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.TreeType[]getTypes()Get the TreeTypes that make up this species.voidgrow(org.bukkit.block.Block block) Grow a tree at a location.voidgrow(org.bukkit.Location location) Grow a tree at a location.booleanis(org.bukkit.TreeType type) Check if this species contains a specific tree type.static TreeSpeciesReturns the enum constant of this class with the specified name.static TreeSpecies[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TREE
-
OAK
-
SMALL_OAK
-
BIG_OAK
-
SPRUCE
-
SMALL_SPRUCE
-
BIG_SPRUCE
-
MEGA_SPRUCE
-
BIRCH
-
SMALL_BIRCH
-
TALL_BIRCH
-
JUNGLE
-
SMALL_JUNGLE
-
BIG_JUNGLE
-
COCOA_TREE
-
JUNGLE_BUSH
-
ACACIA
-
DARK_OAK
-
SWAMP
-
MUSHROOM
-
RED_MUSHROOM
-
BROWN_MUSHROOM
-
MANGROVE
-
SMALL_MANGROVE
-
BIG_MANGROVE
-
AZALEA
-
PALE_OAK
-
PALE_OAK_NORMAL
-
PALE_OAK_CREAKING
-
CHERRY
-
CRIMSON_FUNGUS
-
WARPED_FUNGUS
-
CHORUS_PLANT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
grow
public void grow(org.bukkit.Location location) Grow a tree at a location.If the species is a group, a random tree type is selected.
- Parameters:
location- Location to grow the tree at
-
grow
public void grow(org.bukkit.block.Block block) Grow a tree at a location.If the species is a group, a random tree type is selected.
- Parameters:
block- Block to grow the tree at
-
getTypes
public org.bukkit.TreeType[] getTypes()Get the TreeTypes that make up this species.- Returns:
- TreeTypes that make up this species
-
is
public boolean is(org.bukkit.TreeType type) Check if this species contains a specific tree type.- Parameters:
type- TreeType to check for- Returns:
- True if the species contains the type, false otherwise
-