use of gregtech.api.capability.impl.FluidTankList in project GregTech by GregTechCE.
the class MetaTileEntityCokeOvenHatch method initializeInventory.
@Override
protected void initializeInventory() {
super.initializeInventory();
this.fluidInventory = new FluidTankList(false);
this.itemInventory = new ItemStackHandler(0);
}
use of gregtech.api.capability.impl.FluidTankList in project GregTech by GregTechCE.
the class MetaTileEntityCokeOvenHatch method removeFromMultiBlock.
@Override
public void removeFromMultiBlock(MultiblockControllerBase controllerBase) {
super.removeFromMultiBlock(controllerBase);
this.fluidInventory = new FluidTankList(false);
this.itemInventory = new ItemStackHandler(0);
}
use of gregtech.api.capability.impl.FluidTankList in project GregTech by GregTechCE.
the class MetaTileEntityLargeTurbine method formStructure.
@Override
protected void formStructure(PatternMatchContext context) {
super.formStructure(context);
this.exportFluidHandler = new FluidTankList(true, getAbilities(MultiblockAbility.EXPORT_FLUIDS));
}
use of gregtech.api.capability.impl.FluidTankList in project GregTech by GregTechCE.
the class SteamLavaBoiler method createImportFluidHandler.
@Override
protected FluidTankList createImportFluidHandler() {
FluidTankList superHandler = super.createImportFluidHandler();
this.lavaFluidTank = new FilteredFluidHandler(16000).setFillPredicate(ModHandler::isLava);
return new FluidTankList(false, superHandler, lavaFluidTank);
}
use of gregtech.api.capability.impl.FluidTankList 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());
}
Aggregations