Basics of power working with new dim trans.

This commit is contained in:
CrazyPants committed 2014-10-10 15:29:29 +08:00
1 parent 7c4ba86a39
commit 4538116d75
14 files changed
+236 -114

No files matched your search

@@ -0,0 +1,56 @@
package crazypants.enderio.machine;
import crazypants.enderio.machine.IMachineRecipe.ResultStack;
import net.minecraft.nbt.NBTTagCompound;
public class ContinuousTask implements IPoweredTask {
float powerUserPerTick;
public ContinuousTask(float powerUsePerTick) {
this.powerUserPerTick = powerUsePerTick;
}
@Override
public void writeToNBT(NBTTagCompound nbtRoot) {
}
@Override
public void update(float availableEnergy) {
}
@Override
public boolean isComplete() {
return false;
}
@Override
public float getRequiredEnergy() {
return powerUserPerTick;
}
@Override
public IMachineRecipe getRecipe() {
return null;
}
@Override
public float getProgress() {
return 0.5f;
}
@Override
public ResultStack[] getCompletedResult() {
return new ResultStack[0];
}
@Override
public float getChance() {
return 1;
}
@Override
public MachineRecipeInput[] getInputs() {
return new MachineRecipeInput[0];
}
}