Search in sources :

Example 1 with ItemHandlerList

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

the class MetaTileEntityLargeBoiler method formStructure.

@Override
protected void formStructure(PatternMatchContext context) {
    super.formStructure(context);
    this.fluidImportInventory = new FluidTankList(true, getAbilities(MultiblockAbility.IMPORT_FLUIDS));
    this.itemImportInventory = new ItemHandlerList(getAbilities(MultiblockAbility.IMPORT_ITEMS));
    this.steamOutputTank = new FluidTankList(true, getAbilities(MultiblockAbility.EXPORT_FLUIDS));
}
Also used : FluidTankList(gregtech.api.capability.impl.FluidTankList) ItemHandlerList(gregtech.api.capability.impl.ItemHandlerList)

Example 2 with ItemHandlerList

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

the class MetaTileEntityLargeBoiler method invalidateStructure.

@Override
public void invalidateStructure() {
    super.invalidateStructure();
    this.fluidImportInventory = new FluidTankList(true);
    this.itemImportInventory = new ItemHandlerList(Collections.emptyList());
    this.steamOutputTank = new FluidTankList(true);
    // reset temperature
    this.currentTemperature = 0;
    this.fuelBurnTicksLeft = 0;
    this.hasNoWater = false;
    this.isActive = false;
    this.throttlePercentage = 100;
    replaceFireboxAsActive(false);
}
Also used : FluidTankList(gregtech.api.capability.impl.FluidTankList) ItemHandlerList(gregtech.api.capability.impl.ItemHandlerList)

Example 3 with ItemHandlerList

use of gregtech.api.capability.impl.ItemHandlerList 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)3 ItemHandlerList (gregtech.api.capability.impl.ItemHandlerList)3 EnergyContainerList (gregtech.api.capability.impl.EnergyContainerList)1