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));
}
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);
}
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));
}
Aggregations