Types

Registered types in the type system. Primitive types map to Java primitives while object types participate in the type hierarchy.

21 types
int
int
primitive
numeric

32-bit signed integer. Holds up to about 2.1 billion. Max digits: 10.

Type Info
Java typeint
Usage5
Accepted names
intinteger
long
long
primitive
numeric

64-bit signed integer. Holds up to about 9.22 quintillion. Max digits: 19.

Type Info
Java typelong
Usage9999999999
Accepted names
long
double
double
primitive
numeric

64-bit floating point decimal. Supports up to 15 to 17 significant decimal digits.

Type Info
Java typedouble
Usage25.5
Accepted names
doublenumbernumdecimal
float
float
primitive
numeric

32-bit floating point decimal. Supports up to 6 to 9 significant decimal digits.

Type Info
Java typefloat
Usage1.5
Accepted names
float
boolean
boolean
primitive

A true or false value.

Type Info
Java typeboolean
Usagetrue
Accepted names
booleanbool
string
String
primitive

A sequence of characters.

Type Info
Java typejava.lang.String
Usage"hello"
Accepted names
stringtextstr
location
LOCATION
object
Type Info
Java typeorg.bukkit.Location
sender
SENDER
object
Type Info
Java typeorg.bukkit.command.CommandSender
offline_player
OFFLINE_PLAYER
object
Type Info
Java typeorg.bukkit.OfflinePlayer
itemstack
ITEMSTACK
object
Type Info
Java typeorg.bukkit.inventory.ItemStack
block
BLOCK
object
Type Info
Java typeorg.bukkit.block.Block
entity_type
ENTITY_TYPE
object
Type Info
Java typeorg.bukkit.entity.EntityType
vector
VECTOR
object
Type Info
Java typeorg.bukkit.util.Vector
player
PLAYER
object
Type Info
Java typeorg.bukkit.entity.Player
Super types
LIVING_ENTITY
entity
ENTITY
object
Type Info
Java typeorg.bukkit.entity.Entity