Enum Constant Summary
Enum Constants
Boolean stores true or false.
Event Value Link stores type of event value for getting value.
Item stores ItemStack with material and item meta.
List can store any value with any type.
Location stores Minecraft location in planet's world, for example: 31 4 10 -4.5 3.0.
Map stores keys and values with any type.
Number stores float value, for example: 12.0.
Parameters are used in Layout menus for coding blocks.
Particle stores Minecraft particle type, for example: EXPLOSION.
Potion stores Minecraft potion, for example: BLINDNESS.
Text stores string value, for example: "Hello world".
Variable Link has name of real variable in planet.
Vector stores Minecraft vector coordinates.
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
Returns type of value by comparing
material with value types materials.
Returns value type of object.
Returns display text of value, that will be used
for displaying for player on debug messages.
org.bukkit.Material
Returns stained-glass pane material,
that's displayed in layout menu.
org.bukkit.inventory.ItemStack
Returns localized glass item stack,
that's displayed in layout menu.
Returns localized name of value type.
@NotNull org.bukkit.Material
Returns material of item, that will be
displayed in values menu.
Returns type of value by comparing
it with value types names.
Returns the enum constant of this class with the specified name.
Returns an array containing the constants of this enum class, in
the order they are declared.
Methods inherited from class java.lang.Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
Enum Constant Details
BOOLEAN
Boolean stores true or false.
ITEM
Item stores ItemStack with material and item meta.
LIST
List can store any value with any type. From list, we can get value, or we can add value to list.
MAP
Map stores keys and values with any type.
LOCATION
Location stores Minecraft location in planet's world, for example: 31 4 10 -4.5 3.0. It contains X,Y,Z coordinates, yaw, pitch values.
NUMBER
Number stores float value, for example: 12.0.
PARAMETER
Parameters are used in Layout menus for coding blocks. They can store text, boolean and number values.
PARTICLE
Particle stores Minecraft particle type, for example: EXPLOSION.
POTION
Potion stores Minecraft potion, for example: BLINDNESS.
TEXT
Text stores string value, for example: "Hello world". Text can be formatted with Minecraft color codes.
VARIABLE
Variable Link has name of real variable in planet. It stores value from real variable.
EVENT_VALUE
Event Value Link stores type of event value for getting value.
VECTOR
Vector stores Minecraft vector coordinates.
COLOR
Color stores RGB color.
ANY
Any stores ItemStack.
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 name
NullPointerException - if the argument is null
parseString
Returns type of value by comparing
it with value types names.
Parameters:
type - text with type name.
Returns:
value type, or text value.
getByMaterial
@Nullable
public static @Nullable ValueType getByMaterial (@NotNull
@NotNull org.bukkit.Material material)
Returns type of value by comparing
material with value types materials.
Parameters:
material - material to check.
Returns:
value type, or null - if not found.
getByObject
Returns value type of object.
Parameters:
object - object to check.
Returns:
value type, or null if it's unknown type.
getGlass
public org.bukkit.Material getGlass ()
Returns stained-glass pane material,
that's displayed in layout menu.
Returns:
material of glass pane.
getGlassItem
public org.bukkit.inventory.ItemStack getGlassItem (ActionType action,
String path)
Returns localized glass item stack,
that's displayed in layout menu.
Parameters:
action - type of action.
path - name of argument.
Returns:
stained-glass pane item with name and description.
getDisplayShortString
@NotNull
public static @NotNull String getDisplayShortString (@Nullable
@Nullable Object value)
Returns display text of value, that will be used
for displaying for player on debug messages.
Parameters:
value - value to get text.
Returns:
short display text of value.
getMaterial
@NotNull
public @NotNull org.bukkit.Material getMaterial ()
Returns material of item, that will be
displayed in values menu.
Returns:
material of value's item.
getLocaleName
@NotNull
public @NotNull String getLocaleName ()
Returns localized name of value type.
Returns:
localized name of value type.