IItemHandler
Link to iitemhandler
Импорт класса
Link to импорт-класса
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 Copyimport crafttweaker.api.capability.IItemHandler;
Методы
Link to методы
Name: extractItem
Return Type: IItemStack
ZenScript CopyIItemHandler.extractItem(slot as int, amount as int, simulate as boolean) as IItemStack
Параметр | Тип | Описание | Optional | DefaultValue |
---|---|---|---|---|
Параметр slot | Тип int | Описание No Description Provided | Optional false | DefaultValue |
Параметр amount | Тип int | Описание No Description Provided | Optional false | DefaultValue |
Параметр simulate | Тип boolean | Описание No Description Provided | Optional true | DefaultValue false |
Name: getSlotLimit
Return Type: int
ZenScript CopyIItemHandler.getSlotLimit(slot as int) as int
Параметр | Тип | Описание |
---|---|---|
Параметр slot | Тип int | Описание No Description Provided |
Name: getSlots
Return Type: int
ZenScript Copy// IItemHandler.getSlots() as int
myIItemHandler.getSlots();
Name: getStackInSlot
Return Type: IItemStack
ZenScript CopyIItemHandler.getStackInSlot(slot as int) as IItemStack
Параметр | Тип | Описание |
---|---|---|
Параметр slot | Тип int | Описание No Description Provided |
Name: insertItem
Return Type: IItemStack
ZenScript CopyIItemHandler.insertItem(slot as int, stack as IItemStack, simulate as boolean) as IItemStack
Параметр | Тип | Описание | Optional | DefaultValue |
---|---|---|---|---|
Параметр slot | Тип int | Описание No Description Provided | Optional false | DefaultValue |
Параметр stack | Тип IItemStack | Описание No Description Provided | Optional false | DefaultValue |
Параметр simulate | Тип boolean | Описание No Description Provided | Optional true | DefaultValue false |
Name: isItemValid
Return Type: boolean
ZenScript CopyIItemHandler.isItemValid(slot as int, stack as IItemStack) as boolean
Параметр | Тип | Описание |
---|---|---|
Параметр slot | Тип int | Описание No Description Provided |
Параметр stack | Тип IItemStack | Описание No Description Provided |
Свойства
Link to свойства
Название | Тип | Имеет Getter | Имеет Setter | Описание |
---|---|---|---|---|
Название slots | Тип int | Имеет Getter true | Имеет Setter false | Описание No Description Provided |