use of binnie.core.machines.inventory.IChargedSlots in project Binnie by ForestryMC.
the class IsolatorLogic method onTickTask.
@Override
protected void onTickTask() {
IChargedSlots chargedSlots = this.getMachine().getInterface(IChargedSlots.class);
chargedSlots.alterCharge(Isolator.SLOT_ENZYME, -ENZYME_PER_PROCESS * this.getProgressPerTick() / 100.0f);
}
use of binnie.core.machines.inventory.IChargedSlots in project Binnie by ForestryMC.
the class GenepoolLogic method onTickTask.
@Override
protected void onTickTask() {
MachineUtil util = getUtil();
ItemStack individual = util.getStack(Genepool.SLOT_BEE);
this.ethanolDrain += getDNAAmount(individual) * 1.2f * this.getProgressPerTick() / 100.0f;
if (this.ethanolDrain >= 1.0f) {
util.drainTank(Genepool.TANK_ETHANOL, 1);
--this.ethanolDrain;
}
IChargedSlots chargedSlots = this.getMachine().getInterface(IChargedSlots.class);
chargedSlots.alterCharge(Genepool.SLOT_ENZYME, -ENZYME_PER_PROCESS * this.getProgressPerTick() / 100.0f);
}
Aggregations