mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-21 20:52:42 +00:00
Basics of power working with new dim trans.
This commit is contained in:
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];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user