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