Search in sources :

Example 1 with EnergyContainerList

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

the class RecipeMapMultiblockController method resetTileAbilities.

private void resetTileAbilities() {
    this.inputInventory = new ItemStackHandler(0);
    this.inputFluidInventory = new FluidTankList(true);
    this.outputInventory = new ItemStackHandler(0);
    this.outputFluidInventory = new FluidTankList(true);
    this.energyContainer = new EnergyContainerList(Lists.newArrayList());
}
Also used : FluidTankList(gregtech.api.capability.impl.FluidTankList) ItemStackHandler(net.minecraftforge.items.ItemStackHandler) EnergyContainerList(gregtech.api.capability.impl.EnergyContainerList)

Example 2 with EnergyContainerList

use of gregtech.api.capability.impl.EnergyContainerList 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 3 with EnergyContainerList

use of gregtech.api.capability.impl.EnergyContainerList 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

EnergyContainerList (gregtech.api.capability.impl.EnergyContainerList)3 FluidTankList (gregtech.api.capability.impl.FluidTankList)3 ItemHandlerList (gregtech.api.capability.impl.ItemHandlerList)1 ItemStackHandler (net.minecraftforge.items.ItemStackHandler)1