Constructs a new ItemContainer object.
Constructs a new ItemContainer object from given deprecated UI.Container object.
JS array of all slots.
Closes UI for client.
client in which UI will be open
Drops slot's contents on the specified coordinates and clears the slot.
slot name
slot index
Workbench slot instance by slot index.
Use ItemContainer.getSlot instead.
Gets the slot by it's name. If a slot with specified name doesn't exists, creates an empty one with specified name.
slot name
Contents of the slot in a ItemContainerSlot object. You can modify it to change the contents of the slot.
Opens UI for client.
client in which UI will be open
name of the screen to open
Sends packet from client container copy to server.
Sends packet from server container copy to client.
Sends event to move specified amount of items from the player inventory slot by given index to container slot by given name. This event is sent from client to server, so you should use it only on the client side, for example, in custom slot element touch events, etc.
numeric index of the inventory slot, from where to retrieve the item
string name of the container slot, where to put taken item
item count to be retrieved from inventory slot
Sends packet from server container.
Sends event to move specified amount of items from the container slot by given name to player's inventory. The index of the inventory slot, where to put item, can't be specified, because it's decided by ItemContainer automatically, and you just don't need to do this. This event is sent from client to server, so you should use it only on the client side, for example, in custom slot element touch events, etc.
string name of the container slot, from where to retrieve item
item count to be retrieved from container slot
Sends event to move specified amount of items from one container slot to another by given names. This event is sent from client to server, so you should use it only on the client side, for example, in custom slot element touch events, etc.
string name of the container slot, from where to retrieve item
string name of the container slot, where to put taken item
item count to be retrieved from container slot
Sets container's parent object, for TileEntity's container it should be it reference, otherwise you can pass any value to be used in your code later.
an object to be set as container's parent
Sets slot's content by it's name from given slot object. If a slot with specified name doesn't exist, a new slot with specified name and item will be created.
slot name
ItemContainerSlot object to specify slot contents
Set slot's content by it's name. If a slot with specified name doesn't exists, creates new with specified name and item.
slot name
Set slot's content by it's name. If a slot with specified name doesn't exists, creates new with specified name and item.
slot name
item extra data
Static
addStatic
addStatic
addStatic
getStatic
loadStatic
registerCopyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.
Type of TileEntity container that supports multiplayer.