public interface IExternalStorageHandler
IExternalStorageRegistry
Modifier and Type | Method and Description |
---|---|
boolean |
canHandle(net.minecraft.tileentity.TileEntity te,
net.minecraftforge.common.util.ForgeDirection d,
StorageChannel channel,
BaseActionSource mySrc)
if this can handle the provided inventory, return true.
|
IMEInventory |
getInventory(net.minecraft.tileentity.TileEntity te,
net.minecraftforge.common.util.ForgeDirection d,
StorageChannel channel,
BaseActionSource src)
if this can handle the given inventory, return the a IMEInventory implementing class for it, if not return null
|
boolean canHandle(net.minecraft.tileentity.TileEntity te, net.minecraftforge.common.util.ForgeDirection d, StorageChannel channel, BaseActionSource mySrc)
te
- to be handled tile entitymySrc
- sourceIMEInventory getInventory(net.minecraft.tileentity.TileEntity te, net.minecraftforge.common.util.ForgeDirection d, StorageChannel channel, BaseActionSource src)
please note that if your inventory changes and requires polling, you must use an IMEMonitor
instead of an
IMEInventory
failure to do so will result in invalid item counts and reporting of the inventory.
te
- to be handled tile entityd
- directionchannel
- channelsrc
- source