mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-21 20:52:42 +00:00
61 lines
1.4 KiB
Java
61 lines
1.4 KiB
Java
package crazypants.enderio.machine.spawner;
|
|
|
|
import java.util.Collections;
|
|
import java.util.List;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
import crazypants.enderio.ModObject;
|
|
import crazypants.enderio.machine.IMachineRecipe;
|
|
import crazypants.enderio.machine.MachineRecipeInput;
|
|
import crazypants.enderio.machine.recipe.RecipeBonusType;
|
|
|
|
public class DummyRecipe implements IMachineRecipe {
|
|
|
|
@Override
|
|
public String getUid() {
|
|
return "PoweredTaskRecipe";
|
|
}
|
|
|
|
@Override
|
|
public int getEnergyRequired(MachineRecipeInput... inputs) {
|
|
//NB: This value is not actually used, see createTask in the tile
|
|
return TilePoweredSpawner.POWER_PER_TICK_ONE * 800;
|
|
}
|
|
|
|
@Override
|
|
public boolean isRecipe(MachineRecipeInput... inputs) {
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public ResultStack[] getCompletedResult(float randomChance, MachineRecipeInput... inputs) {
|
|
return new ResultStack[0];
|
|
}
|
|
|
|
@Override
|
|
public RecipeBonusType getBonusType(MachineRecipeInput... inputs) {
|
|
return RecipeBonusType.NONE;
|
|
}
|
|
|
|
@Override
|
|
public float getExperienceForOutput(ItemStack output) {
|
|
return 0;
|
|
}
|
|
|
|
@Override
|
|
public boolean isValidInput(MachineRecipeInput input) {
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public String getMachineName() {
|
|
return ModObject.blockPoweredSpawner.unlocalisedName;
|
|
}
|
|
|
|
@Override
|
|
public List<MachineRecipeInput> getQuantitiesConsumed(MachineRecipeInput[] inputs) {
|
|
return Collections.emptyList();
|
|
}
|
|
|
|
}
|