mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-28 07:55:41 +00:00
71 lines
1.2 KiB
Java
71 lines
1.2 KiB
Java
package crazypants.enderio.machine;
|
|
|
|
import net.minecraft.nbt.NBTTagCompound;
|
|
import crazypants.enderio.machine.IMachineRecipe.ResultStack;
|
|
import crazypants.enderio.machine.recipe.RecipeBonusType;
|
|
|
|
/**
|
|
* Client side stub for reporting progress.
|
|
*/
|
|
public class PoweredTaskProgress implements IPoweredTask {
|
|
|
|
private float progress;
|
|
|
|
public PoweredTaskProgress(IPoweredTask task) {
|
|
progress = task.getProgress();
|
|
}
|
|
|
|
public PoweredTaskProgress(float progress) {
|
|
this.progress = progress;
|
|
}
|
|
|
|
@Override
|
|
public void update(float availableEnergy) {
|
|
}
|
|
|
|
@Override
|
|
public boolean isComplete() {
|
|
return getProgress() >= 1;
|
|
}
|
|
|
|
@Override
|
|
public float getProgress() {
|
|
return progress;
|
|
}
|
|
|
|
@Override
|
|
public ResultStack[] getCompletedResult() {
|
|
return new ResultStack[0];
|
|
}
|
|
|
|
@Override
|
|
public float getRequiredEnergy() {
|
|
return 0;
|
|
}
|
|
|
|
@Override
|
|
public float getChance() {
|
|
return 0;
|
|
}
|
|
|
|
@Override
|
|
public RecipeBonusType getBonusType() {
|
|
return RecipeBonusType.NONE;
|
|
}
|
|
|
|
@Override
|
|
public void writeToNBT(NBTTagCompound nbtRoot) {
|
|
}
|
|
|
|
@Override
|
|
public IMachineRecipe getRecipe() {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public MachineRecipeInput[] getInputs() {
|
|
return new MachineRecipeInput[0];
|
|
}
|
|
|
|
}
|