YuRaNnNzZZ — Сегодня, в 1:37
НУ НЕ УМЕЮ Я В КОТЛИН
This commit is contained in:
parent
d77f735fa8
commit
d1e94f4154
@ -15,28 +15,17 @@ import java.util.*
|
|||||||
import java.util.function.Consumer
|
import java.util.function.Consumer
|
||||||
|
|
||||||
private fun Consumer<FinishedRecipe>.addRecyclingRecipe(inputs: Collection<ItemLike>, result: Item, name: String) {
|
private fun Consumer<FinishedRecipe>.addRecyclingRecipe(inputs: Collection<ItemLike>, result: Item, name: String) {
|
||||||
val inputStacks: LinkedList<ItemStack> = Lists.newLinkedList()
|
val inputStacks = inputs.map(::ItemStack)
|
||||||
inputs.forEach { inputStacks.add(ItemStack(it)) }
|
|
||||||
|
|
||||||
val smelting = SimpleCookingRecipeBuilder.smelting(
|
SimpleCookingRecipeBuilder.smelting(
|
||||||
Ingredient.of(inputStacks.stream()),
|
Ingredient.of(inputStacks.stream()),
|
||||||
RecipeCategory.MISC,
|
RecipeCategory.MISC, result, 0f, 200
|
||||||
result,
|
).also { r -> inputs.forEach { r.unlockedBy(it) } }.save(this, modLocation("smelting/${name}"))
|
||||||
0f,
|
|
||||||
200
|
|
||||||
)
|
|
||||||
inputs.forEach { smelting.unlockedBy(it) }
|
|
||||||
smelting.save(this, modLocation("smelting/${name}"))
|
|
||||||
|
|
||||||
val blasting = SimpleCookingRecipeBuilder.blasting(
|
SimpleCookingRecipeBuilder.blasting(
|
||||||
Ingredient.of(inputStacks.stream()),
|
Ingredient.of(inputStacks.stream()),
|
||||||
RecipeCategory.MISC,
|
RecipeCategory.MISC, result, 0f, 100
|
||||||
result,
|
).also { r -> inputs.forEach { r.unlockedBy(it) } }.save(this, modLocation("blasting/${name}"))
|
||||||
0f,
|
|
||||||
100
|
|
||||||
)
|
|
||||||
inputs.forEach { blasting.unlockedBy(it) }
|
|
||||||
blasting.save(this, modLocation("blasting/${name}"))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun addBlastingRecipes(consumer: Consumer<FinishedRecipe>) {
|
fun addBlastingRecipes(consumer: Consumer<FinishedRecipe>) {
|
||||||
|
Loading…
Reference in New Issue
Block a user