@Override @Nonnull protected ItemStack getInput(Random random) { // array does not exist? return default if(inputs == null) { return super.getInput(random); } // return a random stack from the list int i = random.nextInt(inputs.length); return inputs[i].copy(); }
@Override @Nonnull protected ItemStack getOutput(Random random) { // array does not exist? return default if(outputs == null) { return super.getOutput(random); } // return a random stack from the list int i = random.nextInt(outputs.length); return outputs[i].copy(); }