objects

Data structures

Block

propertytype

type

String

name

String

interactable

boolean

x

double

y

double

z

double

Entity

propertytype

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 whether the image has been loaded or not.

ItemStack

propertytype

type

String

name

String

displayName

String

stackSize

int

maxStackSize

int

durability

int

maxDurability

int

isBlock

boolean

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

propertytype

name

String

type

String

Vec3

propertytype

x

double

y

double

z

double

equals

boolean equal = vector1.equals(Vec3 vector2);

Returns whether two vectors are equal.

offset

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

Adds a specified offset to all 3 axes.

Last updated