Files
Applied-Energistics-2/src/main/java/appeng/recipes/handlers/GrinderOptionalResult.java
T
2020-07-01 23:36:51 +02:00

28 lines
564 B
Java

package appeng.recipes.handlers;
import net.minecraft.item.ItemStack;
/**
* Describes an optional result of a grinder recipe.
*/
public class GrinderOptionalResult {
private final float chance;
private final ItemStack result;
public GrinderOptionalResult(float chance, ItemStack result) {
this.chance = chance;
this.result = result;
}
/**
* Chance to occur from 0 (0%) to 1 (100%).
*/
public float getChance() {
return chance;
}
public ItemStack getResult() {
return result;
}
}