use of gregtech.api.capability.impl.ItemHandlerProxy in project GregTech by GregTechCE.
the class MetaTileEntity method initializeInventory.
protected void initializeInventory() {
this.importItems = createImportItemHandler();
this.exportItems = createExportItemHandler();
this.itemInventory = new ItemHandlerProxy(importItems, exportItems);
this.importFluids = createImportFluidHandler();
this.exportFluids = createExportFluidHandler();
this.fluidInventory = new FluidHandlerProxy(importFluids, exportFluids);
}
use of gregtech.api.capability.impl.ItemHandlerProxy in project GregTech by GregTechCE.
the class MetaTileEntityCokeOvenHatch method addToMultiBlock.
@Override
public void addToMultiBlock(MultiblockControllerBase controllerBase) {
super.addToMultiBlock(controllerBase);
this.fluidInventory = new FluidHandlerProxy(new FluidTankList(false), controllerBase.getExportFluids());
this.itemInventory = new ItemHandlerProxy(controllerBase.getImportItems(), controllerBase.getExportItems());
}
use of gregtech.api.capability.impl.ItemHandlerProxy in project GregTech by GregTechCE.
the class MetaTileEntityPrimitiveBlastFurnace method initializeInventory.
@Override
protected void initializeInventory() {
super.initializeInventory();
ItemStackHandler emptyHandler = new ItemStackHandler(0);
this.itemInventory = new ItemHandlerProxy(emptyHandler, emptyHandler);
}
use of gregtech.api.capability.impl.ItemHandlerProxy in project GregTech by GregTechCE.
the class SimpleMachineMetaTileEntity method initializeInventory.
@Override
protected void initializeInventory() {
super.initializeInventory();
this.outputItemInventory = new ItemHandlerProxy(new ItemStackHandler(0), exportItems);
this.outputFluidInventory = new FluidHandlerProxy(new FluidTankList(false), exportFluids);
}
Aggregations