Files

779 B

IScriptInventory.size

← IScriptInventory · ← Master

Parça 2/2 · önceki

inventory.setStack(4, mappet.createItem("minecraft:diamond_sword"));

clear

void clear()

Empty the inventory.

// Assuming that c.getSubject() is a player c.getSubject().getInventory().clear();

getName

java.lang.String getName()

Get basic inventory's name. This works only for inventories that support naming, like chests.

hasCustomName

boolean hasCustomName()

Whether this inventory has a name. This works only for inventories that support naming, like chests.

setName

void setName(java.lang.String name)

Set basic inventory's name. This works only for inventories that support naming, like chests.