Diese Klasse importieren

Link to diese-klasse-importieren

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.capability.IItemHandler;

Name: extractItem

Return Type: IItemStack

ZenScript
Copy
IItemHandler.extractItem(slot as int, amount as int, simulate as boolean) as IItemStack
ParameterTypeBeschreibungOptionalDefaultValue
Parameter
slot
Type
int
Beschreibung
No Description Provided
Optional
false
DefaultValue
Parameter
amount
Type
int
Beschreibung
No Description Provided
Optional
false
DefaultValue
Parameter
simulate
Type
boolean
Beschreibung
No Description Provided
Optional
true
DefaultValue
false

Name: getSlotLimit

Return Type: int

ZenScript
Copy
IItemHandler.getSlotLimit(slot as int) as int
ParameterTypeBeschreibung
Parameter
slot
Type
int
Beschreibung
No Description Provided

Name: getSlots

Return Type: int

ZenScript
Copy
// IItemHandler.getSlots() as int

myIItemHandler.getSlots();

Name: getStackInSlot

Return Type: IItemStack

ZenScript
Copy
IItemHandler.getStackInSlot(slot as int) as IItemStack
ParameterTypeBeschreibung
Parameter
slot
Type
int
Beschreibung
No Description Provided

Name: insertItem

Return Type: IItemStack

ZenScript
Copy
IItemHandler.insertItem(slot as int, stack as IItemStack, simulate as boolean) as IItemStack
ParameterTypeBeschreibungOptionalDefaultValue
Parameter
slot
Type
int
Beschreibung
No Description Provided
Optional
false
DefaultValue
Parameter
stack
Type
IItemStack
Beschreibung
No Description Provided
Optional
false
DefaultValue
Parameter
simulate
Type
boolean
Beschreibung
No Description Provided
Optional
true
DefaultValue
false

Name: isItemValid

Return Type: boolean

ZenScript
Copy
IItemHandler.isItemValid(slot as int, stack as IItemStack) as boolean
ParameterTypeBeschreibung
Parameter
slot
Type
int
Beschreibung
No Description Provided
Parameter
stack
Type
IItemStack
Beschreibung
No Description Provided
NameTypeHas GetterHas SetterBeschreibung
Name
slots
Type
int
Has Getter
true
Has Setter
false
Beschreibung
No Description Provided