Search in sources :

Example 11 with FluidTankList

use of gregtech.api.capability.impl.FluidTankList in project GregTech by GregTechCE.

the class FueledMultiblockController method initializeAbilities.

private void initializeAbilities() {
    this.importFluidHandler = new FluidTankList(true, getAbilities(MultiblockAbility.IMPORT_FLUIDS));
    this.energyContainer = new EnergyContainerList(getAbilities(MultiblockAbility.OUTPUT_ENERGY));
}
Also used : FluidTankList(gregtech.api.capability.impl.FluidTankList) EnergyContainerList(gregtech.api.capability.impl.EnergyContainerList)

Example 12 with FluidTankList

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

Example 13 with FluidTankList

use of gregtech.api.capability.impl.FluidTankList in project GregTech by GregTechCE.

the class RecipeMapMultiblockController method initializeAbilities.

private void initializeAbilities() {
    this.inputInventory = new ItemHandlerList(getAbilities(MultiblockAbility.IMPORT_ITEMS));
    this.inputFluidInventory = new FluidTankList(allowSameFluidFillForOutputs(), getAbilities(MultiblockAbility.IMPORT_FLUIDS));
    this.outputInventory = new ItemHandlerList(getAbilities(MultiblockAbility.EXPORT_ITEMS));
    this.outputFluidInventory = new FluidTankList(allowSameFluidFillForOutputs(), getAbilities(MultiblockAbility.EXPORT_FLUIDS));
    this.energyContainer = new EnergyContainerList(getAbilities(MultiblockAbility.INPUT_ENERGY));
}
Also used : FluidTankList(gregtech.api.capability.impl.FluidTankList) ItemHandlerList(gregtech.api.capability.impl.ItemHandlerList) EnergyContainerList(gregtech.api.capability.impl.EnergyContainerList)

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