public interface ICellRegistry
Do not Implement, obtained via IAppEngApi.getCellRegistry()
| Modifier and Type | Method and Description |
|---|---|
void |
addCellHandler(ICellHandler handler)
Register a new handler.
|
IMEInventoryHandler |
getCellInventory(net.minecraft.item.ItemStack is,
ISaveProvider host,
StorageChannel chan)
returns an IMEInventoryHandler for the provided item.
|
ICellHandler |
getHandler(net.minecraft.item.ItemStack is)
get the handler, for the requested type.
|
boolean |
isCellHandled(net.minecraft.item.ItemStack is)
return true, if you can get a InventoryHandler for the item passed.
|
void addCellHandler(ICellHandler handler)
handler - cell handlerboolean isCellHandled(net.minecraft.item.ItemStack is)
is - to be checked itemICellHandler getHandler(net.minecraft.item.ItemStack is)
is - to be checked itemIMEInventoryHandler getCellInventory(net.minecraft.item.ItemStack is, ISaveProvider host, StorageChannel chan)
is - item with inventory handlerhost - can be null, or the hosting tile / part.chan - the storage channel to request the handler for.