public static enum TreeGenerator.TreeType extends Enum<TreeGenerator.TreeType>
| Enum Constant and Description |
|---|
ACACIA |
BIG_TREE |
BIRCH |
BROWN_MUSHROOM |
DARK_OAK |
JUNGLE |
JUNGLE_BUSH |
MEGA_REDWOOD |
PINE |
RANDOM |
RANDOM_REDWOOD |
RED_MUSHROOM |
REDWOOD |
SHORT_JUNGLE |
SMALL_JUNGLE |
SWAMP |
TALL_BIRCH |
TALL_REDWOOD |
TREE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
generate(EditSession editSession,
Vector pos) |
String |
getName()
Get user-friendly tree type name.
|
static TreeGenerator.TreeType |
lookup(String name)
Return type from name.
|
static TreeGenerator.TreeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TreeGenerator.TreeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TreeGenerator.TreeType TREE
public static final TreeGenerator.TreeType BIG_TREE
public static final TreeGenerator.TreeType REDWOOD
public static final TreeGenerator.TreeType TALL_REDWOOD
public static final TreeGenerator.TreeType BIRCH
public static final TreeGenerator.TreeType PINE
public static final TreeGenerator.TreeType RANDOM_REDWOOD
public static final TreeGenerator.TreeType JUNGLE
public static final TreeGenerator.TreeType SMALL_JUNGLE
public static final TreeGenerator.TreeType SHORT_JUNGLE
public static final TreeGenerator.TreeType JUNGLE_BUSH
public static final TreeGenerator.TreeType RED_MUSHROOM
public static final TreeGenerator.TreeType BROWN_MUSHROOM
public static final TreeGenerator.TreeType SWAMP
public static final TreeGenerator.TreeType ACACIA
public static final TreeGenerator.TreeType DARK_OAK
public static final TreeGenerator.TreeType MEGA_REDWOOD
public static final TreeGenerator.TreeType TALL_BIRCH
public static final TreeGenerator.TreeType RANDOM
public static TreeGenerator.TreeType[] values()
for (TreeGenerator.TreeType c : TreeGenerator.TreeType.values()) System.out.println(c);
public static TreeGenerator.TreeType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic boolean generate(EditSession editSession, Vector pos) throws MaxChangedBlocksException
MaxChangedBlocksExceptionpublic String getName()
public static TreeGenerator.TreeType lookup(String name)
name - Copyright © 2010-2014. All Rights Reserved.