return logic.setDelayToMin(p_145842_1_) ? true : super.receiveClientEvent(p_145842_1_, p_145842_2_);
}
@Override
protected IPoweredTask createTask(IMachineRecipe nextRecipe, float chance) {
PoweredTask res = new PoweredTask(nextRecipe, chance, getRecipeInputs());
int ticksDelay = TilePoweredSpawner.MIN_SPAWN_DELAY_BASE
+ (int) Math.round((TilePoweredSpawner.MAX_SPAWN_DELAY_BASE - TilePoweredSpawner.MIN_SPAWN_DELAY_BASE) * Math.random());
if(capacitorType.ordinal() == 1) {
ticksDelay /= 2;
} else if(capacitorType.ordinal() == 2) {
ticksDelay /= 4;
}
int powerPerTick = (int) getPowerUsePerTick();
res.setRequiredEnergy(powerPerTick * ticksDelay);
return res;
}