public static enum ItemType.Context extends Enum<ItemType.Context>
Enum Constant and Description |
---|
AIR
The item can only be used when clicking in the air.
|
ANY
The item can be used on any click.
|
BLOCK
The item can only be used when clicking against a block.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAirApplicable() |
boolean |
isBlockApplicable() |
static ItemType.Context |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ItemType.Context[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ItemType.Context AIR
public static final ItemType.Context BLOCK
public static final ItemType.Context ANY
public static ItemType.Context[] values()
for (ItemType.Context c : ItemType.Context.values()) System.out.println(c);
public static ItemType.Context 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 isAirApplicable()
public boolean isBlockApplicable()
Copyright © 2021. All rights reserved.