Search in sources :

Example 6 with FluidTankList

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);
}
Also used : FluidTankList(gregtech.api.capability.impl.FluidTankList) ItemStackHandler(net.minecraftforge.items.ItemStackHandler)

Example 7 with FluidTankList

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);
}
Also used : FluidTankList(gregtech.api.capability.impl.FluidTankList) ItemStackHandler(net.minecraftforge.items.ItemStackHandler)

Example 8 with FluidTankList

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));
}
Also used : FluidTankList(gregtech.api.capability.impl.FluidTankList)

Example 9 with FluidTankList

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);
}
Also used : FluidTankList(gregtech.api.capability.impl.FluidTankList) FilteredFluidHandler(gregtech.api.capability.impl.FilteredFluidHandler)

Example 10 with FluidTankList

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());
}
Also used : FluidTankList(gregtech.api.capability.impl.FluidTankList) FluidHandlerProxy(gregtech.api.capability.impl.FluidHandlerProxy) ItemHandlerProxy(gregtech.api.capability.impl.ItemHandlerProxy)

Aggregations

FluidTankList (gregtech.api.capability.impl.FluidTankList)13 ItemStackHandler (net.minecraftforge.items.ItemStackHandler)4 EnergyContainerList (gregtech.api.capability.impl.EnergyContainerList)3 ItemHandlerList (gregtech.api.capability.impl.ItemHandlerList)3 FilteredFluidHandler (gregtech.api.capability.impl.FilteredFluidHandler)2 FluidHandlerProxy (gregtech.api.capability.impl.FluidHandlerProxy)2 ItemHandlerProxy (gregtech.api.capability.impl.ItemHandlerProxy)2 FluidTank (net.minecraftforge.fluids.FluidTank)1