float dirtyWaterGathered = myDirtyWaterConsumerDefinitionImpl .getMostResourceFromStore(); float dirtyWaterPushed = myDirtyWaterProducerDefinitionImpl .pushResourceToStore(dirtyWaterGathered);
float dirtyWaterGathered = myDirtyWaterConsumerDefinitionImpl .getMostResourceFromStore(); myDirtyWaterProducerDefinitionImpl .pushResourceToStore(dirtyWaterGathered);
    private void getAndPushResources() {        float powerGathered = myPowerConsumerDefinitionImpl                .getMostResourceFromStore();        float powerPushed = myPowerProducerDefinitionImpl                .pushResourceToStore(powerGathered);        float potableWaterGathered = myPotableWaterConsumerDefinitionImpl                .getMostResourceFromStore();        float potableWaterPushed = myPotableWaterProducerDefinitionImpl                .pushResourceToStore(potableWaterGathered);        float greyWaterGathered = myGreyWaterConsumerDefinitionImpl                .getMostResourceFromStore();        float greyWaterPushed = myGreyWaterProducerDefinitionImpl                .pushResourceToStore(greyWaterGathered);        float dirtyWaterGathered = myDirtyWaterConsumerDefinitionImpl                .getMostResourceFromStore();        float dirtyWaterPushed = myDirtyWaterProducerDefinitionImpl                .pushResourceToStore(dirtyWaterGathered);        float biomassGathered = myBiomassConsumerDefinitionImpl                .getMostResourceFromStore();        float biomassPushed = myBiomassProducerDefinitionImpl                .pushResourceToStore(biomassGathered);        float foodGathered = myFoodConsumerDefinitionImpl                .getMostResourceFromStore();        float foodPushed = myFoodProducerDefinitionImpl                .pushResourceToStore(foodGathered);        float dryWasteGathered = myDryWasteConsumerDefinitionImpl                .getMostResourceFromStore();        float dryWastePushed = myDryWasteProducerDefinitionImpl                .pushResourceToStore(dryWasteGathered);        float O2Gathered = myO2ConsumerDefinitionImpl                .getMostResourceFromStore();        float O2Pushed = myO2ProducerDefinitionImpl                .pushResourceToStore(O2Gathered);        float CO2Gathered = myCO2ConsumerDefinitionImpl                .getMostResourceFromStore();        float CO2Pushed = myCO2ProducerDefinitionImpl                .pushResourceToStore(CO2Gathered);        float nitrogenGathered = myNitrogenConsumerDefinitionImpl                .getMostResourceFromStore();        float nitrogenPushed = myNitrogenProducerDefinitionImpl                .pushResourceToStore(nitrogenGathered);        float H2Gathered = myH2ConsumerDefinitionImpl                .getMostResourceFromStore();        float H2Pushed = myH2ProducerDefinitionImpl                .pushResourceToStore(nitrogenGathered);        Breath gatheredAir = myAirConsumerDefinitionImpl                .getMostAirFromEnvironment();        Breath distributedAir = myAirProducerDefinitionImpl                .pushAirToEnvironments(gatheredAir);        //Get CO2 from stores/environment        float gatheredCO2Air = myCO2AirConsumerDefinitionImpl                .getMostResourceFromStore();        gatheredCO2Air += myCO2AirConsumerDefinitionImpl                .getMostCO2FromEnvironment();        //Push CO2 to stores/environment        float CO2AirPushed = myCO2AirProducerDefinitionImpl                .pushResourceToStore(gatheredCO2Air);        float CO2AirLeft = gatheredCO2Air - CO2AirPushed;        CO2AirLeft -= myCO2AirProducerDefinitionImpl                .pushCO2ToEnvironment(CO2AirLeft);        CO2AirPushed = gatheredCO2Air - CO2AirLeft;        //Get O2 from stores/environment        float gatheredO2Air = myO2AirConsumerDefinitionImpl                .getMostResourceFromStore();        gatheredO2Air += myO2AirConsumerDefinitionImpl                .getMostO2FromEnvironment();        //Push O2 to stores/environment        float O2AirPushed = myO2AirProducerDefinitionImpl                .pushResourceToStore(gatheredO2Air);        float O2AirLeft = gatheredO2Air - O2AirPushed;        O2AirLeft -= myO2AirProducerDefinitionImpl                .pushO2ToEnvironment(O2AirLeft);        O2AirPushed = gatheredO2Air - O2AirLeft;        //Get Nitrogen from stores/environment        float gatheredNitrogenAir = myNitrogenAirConsumerDefinitionImpl                .getMostResourceFromStore();        gatheredNitrogenAir += myNitrogenAirConsumerDefinitionImpl                .getMostNitrogenFromEnvironment();        //Push Nitrogen to stores/environment        float nitrogenAirPushed = myNitrogenAirProducerDefinitionImpl                .pushResourceToStore(gatheredNitrogenAir);        float nitrogenAirLeft = gatheredNitrogenAir - nitrogenAirPushed;        nitrogenAirLeft -= myNitrogenAirProducerDefinitionImpl                .pushNitrogenToEnvironment(nitrogenAirLeft);        nitrogenAirPushed = gatheredNitrogenAir - nitrogenAirLeft;        //Get Water from stores/environment        float gatheredWaterAirLiters = myWaterAirConsumerDefinitionImpl                .getMostResourceFromStore();        gatheredWaterAirLiters += waterMolesToLiters(myWaterAirConsumerDefinitionImpl                .getMostWaterFromEnvironment());        //Push water to stores/environment        float waterAirPushedLiters = myWaterAirProducerDefinitionImpl                .pushResourceToStore(gatheredWaterAirLiters);        float waterAirMolesLeft = waterLitersToMoles(gatheredWaterAirLiters                - waterAirPushedLiters);        waterAirMolesLeft -= myWaterAirProducerDefinitionImpl                .pushWaterToEnvironment(waterAirMolesLeft);        float waterAirPushedMoles = waterLitersToMoles(gatheredWaterAirLiters)                - waterAirMolesLeft;    }