public interface IGrinderRecipeBuilder
| Modifier and Type | Method and Description |
|---|---|
IGrinderRecipe |
build()
Finalizes the process of making the recipe.
|
IGrinderRecipeBuilder |
withFirstOptional(net.minecraft.item.ItemStack optional,
float chance)
Creates an grinder recipe with the first optional output and its chance.
|
IGrinderRecipeBuilder |
withInput(net.minecraft.item.ItemStack input)
Creates an grinder recipe with inputs.
|
IGrinderRecipeBuilder |
withOutput(net.minecraft.item.ItemStack output)
Creates an grinder recipe with output.
|
IGrinderRecipeBuilder |
withSecondOptional(net.minecraft.item.ItemStack optional,
float chance)
Creates an grinder recipe with the second optional output and its chance.
|
IGrinderRecipeBuilder |
withTurns(int turns)
Creates an grinder recipe with the amount of turns as cost.
|
@Nonnull IGrinderRecipeBuilder withInput(@Nonnull net.minecraft.item.ItemStack input)
input - new input for the recipe@Nonnull IGrinderRecipeBuilder withOutput(@Nonnull net.minecraft.item.ItemStack output)
output - new output for the recipe@Nonnull IGrinderRecipeBuilder withFirstOptional(@Nonnull net.minecraft.item.ItemStack optional, float chance)
optional - new first optional for the recipechance - chance for the first optional output, must be within 0.0 - 1.0@Nonnull IGrinderRecipeBuilder withSecondOptional(@Nonnull net.minecraft.item.ItemStack optional, float chance)
optional - new second optional for the recipechance - chance for the second optional output, must be within 0.0 - 1.0@Nonnull IGrinderRecipeBuilder withTurns(@Nonnegative int turns)
turns - new turns for the recipe, must be > 0@Nonnull IGrinderRecipe build()
java.lang.IllegalStateException - when input is not definedjava.lang.IllegalStateException - when input has no sizejava.lang.IllegalStateException - when output is not definedjava.lang.IllegalStateException - when both optionals are not definedjava.lang.IllegalStateException - when process type is not defined