use of crazypants.enderio.base.recipe.sagmill.GrindingBall in project EnderIO by SleepyTrousers.
the class Grindingball method register.
@Override
public void register(@Nonnull String recipeName) {
if (!disabled && valid && active) {
Log.debug("Registering XML recipe '" + getName() + "'");
SagMillRecipeManager.getInstance().addBall(new GrindingBall(new ThingsRecipeInput(item.getThing()), grinding, chance, power, durability));
} else {
Log.debug("Skipping XML recipe '" + getName() + "' (valid=" + valid + ", active=" + active + ", required=" + required + ", disabled=" + disabled + ")");
}
}
use of crazypants.enderio.base.recipe.sagmill.GrindingBall in project EnderIO by SleepyTrousers.
the class SagRecipe method getBalls.
@Nonnull
static List<ItemStack> getBalls() {
NNList<GrindingBall> daBalls = SagMillRecipeManager.getInstance().getBalls();
List<ItemStack> res = new ArrayList<ItemStack>();
// sic! JEI will display null as an empty slot but ignore empty stacks completely
res.add(null);
for (GrindingBall ball : daBalls) {
res.add(ball.getInput());
}
return res;
}
Aggregations