37 lines
779 B
Markdown
37 lines
779 B
Markdown
# IScriptInventory.size
|
|
|
|
[← IScriptInventory](index.md) · [← Master](../../wiki.md)
|
|
|
|
Parça 2/2 · [önceki](size.md)
|
|
|
|
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.
|