public interface ICellRegistry
IAppEngApi.getCellRegistry()| Modifier and Type | Method and Description |
|---|---|
void |
addCellGuiHandler(ICellGuiHandler handler)
Register a new handler
|
void |
addCellHandler(ICellHandler handler)
Register a new handler.
|
<T extends IAEStack<T>> |
getCellInventory(net.minecraft.item.ItemStack is,
ISaveProvider host,
IStorageChannel<T> chan)
returns an ICellInventoryHandler for the provided item by querying all registered handlers.
|
<T extends IAEStack<T>> |
getGuiHandler(IStorageChannel<T> channel,
net.minecraft.item.ItemStack is)
get the handler, for the requested channel.
|
ICellHandler |
getHandler(net.minecraft.item.ItemStack is)
get the handler, for the requested item.
|
boolean |
isCellHandled(net.minecraft.item.ItemStack is)
return true, if you can get a InventoryHandler for the item passed.
|
void addCellHandler(@Nonnull
ICellHandler handler)
FMLInitializationEvent was handled by AE2.
Will throw an exception otherwise.handler - cell handlervoid addCellGuiHandler(@Nonnull
ICellGuiHandler handler)
handler - cell gui handlerboolean isCellHandled(net.minecraft.item.ItemStack is)
is - to be checked item@Nullable ICellHandler getHandler(net.minecraft.item.ItemStack is)
is - to be checked item@Nullable <T extends IAEStack<T>> ICellGuiHandler getGuiHandler(IStorageChannel<T> channel, net.minecraft.item.ItemStack is)
channel - requested channelCell - ItemStack@Nullable <T extends IAEStack<T>> ICellInventoryHandler<T> getCellInventory(net.minecraft.item.ItemStack is, ISaveProvider host, IStorageChannel<T> chan)
is - item with inventory handlerhost - can be null. If provided, the host is responsible for persisting the cell content.chan - the storage channel to request the handler for.