Package ch.njol.skript.util
Enum Class StructureType
- All Implemented Interfaces:
Serializable
,Comparable<StructureType>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable StructureType
getName()
org.bukkit.TreeType[]
getTypes()
void
grow(org.bukkit.block.Block b)
void
grow(org.bukkit.Location loc)
boolean
is(org.bukkit.TreeType type)
toString()
toString(int flags)
static StructureType
Returns the enum constant of this class with the specified name.static StructureType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TREE
-
REGULAR
-
SMALL_REGULAR
-
BIG_REGULAR
-
REDWOOD
-
SMALL_REDWOOD
-
BIG_REDWOOD
-
MEGA_REDWOOD
-
BIRCH
-
TALL_BIRCH
-
JUNGLE
-
SMALL_JUNGLE
-
BIG_JUNGLE
-
JUNGLE_BUSH
-
COCOA_TREE
-
ACACIA
-
DARK_OAK
-
SWAMP
-
MUSHROOM
-
RED_MUSHROOM
-
BROWN_MUSHROOM
-
-
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 loc) -
grow
public void grow(org.bukkit.block.Block b) -
getTypes
public org.bukkit.TreeType[] getTypes() -
toString
- Overrides:
toString
in classEnum<StructureType>
-
toString
-
getName
-
is
public boolean is(org.bukkit.TreeType type) -
fromName
-