objects

Data structures

Block

property
type

type

String

name

String

interactable

boolean

variant

int

heigth

double

width

double

length

double

x

double

y

double

z

double

Entity

property
type

type

String

entityId

String

Image

Image image = new Image(String url, boolean cache);

Creates a new image. The image will be requested from the URL. Cache determines whether or not the image will be reloaded when reloading scripts.

getDimensions

float[] dimensions = image.getDimensions();

Returns the image's dimensions.

isLoaded

boolean loaded = image.isLoaded();

Returns true if the image is loaded.

ItemStack

property
type

type

String

name

String

displayName

String

stackSize

int

maxStackSize

int

durability

int

maxDurability

int

isBlock

boolean

meta

int

getEnchantments

List<Object[]> enchantments = itemStack.getEnchantments();

Returns a list of a specific item stack's enchantments.

getTooltip

List<String> tooltips = itemStack.getTooltip();

Returns a list of a specific item stack's tool tips.

TileEntity

property
type

name

String

type

String

Vec3

property
type

x

double

y

double

z

double

ceil

Vec3 ceiled = position.ceil();

Ceils a Vec3.

equals

boolean equal = vector1.equals(Vec3 vector2);

Returns true if both vectors are equal.

floor

Vec3 floored = position.floor();

Floors a Vec3.

inverse

Vec3 inverse = position.inverse();

Sets a Vec3 to its inverse.

offset

Vec3 offset = position.offset(Vec3 position);
Vec3 offset = position.offset(double x, double y, double z);

Adds a specified offset to all three axes.

translate

Vec3 translated = position.translate(Vec3 position);
Vec3 translated = position.translate(double x, double y, double z);

Adds a specified translation to all three axes.

Last updated