Same as UI.Container.parent
Clears slot's contents
slot name
Closes currently opened window
Drops the contents of all the slots in the container on the specified coordinates and clears them
Drops slot's contents on the specified coordinates and clears the slot
slot name
Gets any value from the element
element name
binding name, you can access the value from the element by this name. Some binding names are reserved for additional element information, e.g. "element_obj" contains pointer to the current object and "element_rect" contains android.graphics.Rect object containing drawing rectangle
value that was get from the element or null if the element doesn't exist
Gets the slot by its 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 FullSlot object containing more useful methods for slot manipulation
window's content object (usually specified in the window's constructor) if a window was opened in the container, null otherwise
Same as UI.Container.getWindow
Getter for UI.Container.parent field
Gets the slot by its 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 UI.Slot object. You can modify it to change the contents of the slot
element name
"text" binding value, usually the text displayed on the element, or null if no element with specified name exist
element name
"value" binding value, e.g. scale value, or null if no element with specified name exist
currently opened UI.IWindow or null if no window is currently opened in the container
Forces ui elements and drawables of the window to refresh
if true, the elements drawables will be refreshed immediately, otherwise refresh event will be posted. Default value if false. Ensure you are in the UI thread if you pass true as the parameter
Forces ui drawables of the window to refresh
if true, the drawables will be refreshed immediately, otherwise refresh event will be posted. Default value if false. Ensure you are in the UI thread if you pass true as the parameter
Forces ui elements of the window to refresh
if true, the elements will be refreshed immediately, otherwise refresh event will be posted. Default value if false. Ensure you are in the UI thread if you pass true as the parameter
element name
true if the element is currently touched
false if container supports multiplayer, true otherwise
true, if some window is opened in the container
Opens UI.IWindow object in the container
UI.IWindow object to be opened
Passes any value to the element
element name
binding name, you can access the value from the element by this name
value to be passed to the element
Sets an object to be notified when the window is closed
object to be notified when the window is closed
Sets an object to be notified when the window is opened
object to be notified when the window is opened
Sets container's parent object, for TileEntity's container it should be a TileEntity reference, otherwise you can pass any value to be used in your code later
an object to be set as container's parent
Sets "value" binding value for the element. Used to set scales values
element name
value to be set for the element
Set slot's content by its name. If a slot with specified name doesn't exists, creates an empty one with specified name and item
slot name
Set slot's content by its name. If a slot with specified name doesn't exists, creates new with specified name and item
slot name
item extra value. Note that it should be an instance of ItemExtraData and not its numeric id
Sets "text" binding value for the element. Used to set element's text
element name
value to be set for the element
If the container is a custom workbench, you can set the slot prefix via this method call. UI.Container.getFieldSlot will get field slot by prefix + slot name
Validates all the slots in the container
Validates slot contents. If the data value is less then 0, it becomes 0, if id is 0 or count is less then or equals to zero, slot is reset to an empty one
slot name
Generated using TypeDoc
If container is a part of TileEntity, this field stores reference to it, otherwise null. You can also assign any value of any type to it using UI.Container.setParent method or using constructor parameter. Consider using UI.Container.getParent instead of direct field access