IItemHandler
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
Operators
Parameters:
slot: int
Type: int
- The slot to get the stack of.
Return Type:
IItemStack
Members
Returns: The stack extracted from the slot.
Parameters:
slot: int
Type: int
- The slot to extract from. amount: int
Type: int
- How much to extract from the slot. simulate: bool
Type: bool
- If the extraction should actually happen, if true, no changes will be made.
Return Type:
IItemStack
Returns: The max stack size of the given stack.
Parameters:
slot: int
Type: int
- The slot to check.
Return Type:
int
Returns: The stack in the slot.
Parameters:
slot: int
Type: int
- The slot to get the stack of.
Return Type:
IItemStack
The remainder returned is how much was not inserted.
For example if slot 0
had 63
dirt, and you tried to insert 5
dirt, you will get a remainder of 4
dirt.
Returns: The remaining stack that was not inserted.
Parameters:
slot: int
Type: int
- The slot to insert into. simulate: bool
Type: bool
- If the insert should actually happen, if true, will be made.
Return Type:
IItemStack
Returns: true if the stack is valid, false otherwise.
Parameters:
slot: int
Type: int
- The slot to check.
Return Type:
bool
Return Type:
int