public static enum Toolbar.Tool extends java.lang.Enum<Toolbar.Tool>
Enum Constant and Description |
---|
BUCKET
tool to cover an area with blocks
|
DRAW
tool to draw blocks
|
ERASE
replace blocks with air
|
REPLACE
"repaints" blocks
|
SELECT
select and move entities
|
SPAWN
spawn new entities
|
Modifier and Type | Method and Description |
---|---|
int |
getId() |
boolean |
selectFromBlocks() |
boolean |
selectFromEntities() |
static Toolbar.Tool |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Toolbar.Tool[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Toolbar.Tool DRAW
public static final Toolbar.Tool BUCKET
public static final Toolbar.Tool REPLACE
public static final Toolbar.Tool SELECT
public static final Toolbar.Tool SPAWN
public static final Toolbar.Tool ERASE
public static Toolbar.Tool[] values()
for (Toolbar.Tool c : Toolbar.Tool.values()) System.out.println(c);
public static Toolbar.Tool valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getId()
public boolean selectFromBlocks()
public boolean selectFromEntities()