public interface ICellGuiHandler
| Modifier and Type | Method and Description |
|---|---|
<T extends IAEStack<T>> |
isHandlerFor(IStorageChannel<T> channel)
Return true if this handler can show GUI for this channel.
|
default boolean |
isSpecializedFor(net.minecraft.item.ItemStack is)
Return true to prioritize this handler for the provided
ItemStack. |
<T extends IAEStack<T>> |
openChestGui(net.minecraft.entity.player.EntityPlayer player,
IChestOrDrive chest,
ICellHandler cellHandler,
IMEInventoryHandler<T> inv,
net.minecraft.item.ItemStack is,
IStorageChannel<T> chan)
Called when the storage cell is placed in an ME Chest and the user tries to open the terminal side, if your item
is not available via ME Chests simply tell the user they can't use it, or something, other wise you should open
your gui and display the cell to the user.
|
<T extends IAEStack<T>> boolean isHandlerFor(IStorageChannel<T> channel)
channel - Storage channeldefault boolean isSpecializedFor(net.minecraft.item.ItemStack is)
ItemStack.is - Cell ItemStack<T extends IAEStack<T>> void openChestGui(net.minecraft.entity.player.EntityPlayer player, IChestOrDrive chest, ICellHandler cellHandler, IMEInventoryHandler<T> inv, net.minecraft.item.ItemStack is, IStorageChannel<T> chan)
player - player opening chest guichest - to be opened chestcellHandler - cell handlerinv - inventory handleris - itemchan - storage channel