Skip to content

Commit 8efc07e

Browse files
committed
Add create 6.0.7 support
1 parent 1abe20f commit 8efc07e

File tree

8 files changed

+51
-21
lines changed

8 files changed

+51
-21
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ flywheel_version = 1.0.4
3030
vanillin_version = 1.0.0-beta-11
3131
registrate_version = MC1.21-1.3.0+62
3232
ponder_version = 1.0.56
33-
create_version = 6.0.6-98
33+
create_version = 6.0.7-159
3434
create_version_production = 6.0.6
3535
create_version_range = [6.0.6,)
3636
jei_minecraft_version = 1.21.1

src/main/java/plus/dragons/createdragonsplus/common/kinetics/fan/coloring/ColoringFanProcessingType.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public boolean canProcess(ItemStack stack, Level level) {
105105
public @Nullable List<ItemStack> process(ItemStack stack, Level level) {
106106
return level.getRecipeManager()
107107
.getRecipeFor(CDPRecipes.COLORING.getType(), new ColoringRecipeInput(this.color, stack), level)
108-
.map(recipe -> RecipeApplier.applyRecipeOn(level, stack, recipe))
108+
.map(recipe -> RecipeApplier.applyRecipeOn(level, stack, recipe.value(), true))
109109
.or(() -> processByCreateGarnished(stack, level))
110110
.or(() -> processByCrafting(stack, level)
111111
.map(result -> ItemHelper.multipliedOutput(stack, result)))
@@ -158,7 +158,7 @@ private Optional<List<ItemStack>> processByCreateGarnished(ItemStack stack, Leve
158158
return Optional.empty();
159159
return level.getRecipeManager()
160160
.getRecipeFor(createGarnishedRecipe.get(), new SingleRecipeInput(stack), level)
161-
.map(recipe -> RecipeApplier.applyRecipeOn(level, stack, recipe));
161+
.map(recipe -> RecipeApplier.applyRecipeOn(level, stack, recipe.value(), true));
162162
}
163163

164164
private Optional<ItemStack> processByCrafting(ItemStack stack, Level level) {

src/main/java/plus/dragons/createdragonsplus/common/kinetics/fan/ending/EndingFanProcessingType.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public boolean canProcess(ItemStack stack, Level level) {
9090
var input = new SingleRecipeInput(stack);
9191
return recipeManager
9292
.getRecipeFor(CDPRecipes.ENDING.getType(), input, level)
93-
.map(recipe -> RecipeApplier.applyRecipeOn(level, stack, recipe))
93+
.map(recipe -> RecipeApplier.applyRecipeOn(level, stack, recipe.value(), true))
9494
.or(() -> processByCompatRecipe(createDNDRecipe, stack, level))
9595
.orElse(null);
9696
}
@@ -141,6 +141,6 @@ private Optional<List<ItemStack>> processByCompatRecipe(DeferredHolder<RecipeTyp
141141
return Optional.empty();
142142
return level.getRecipeManager()
143143
.getRecipeFor(recipeType.get(), new SingleRecipeInput(stack), level)
144-
.map(recipe -> RecipeApplier.applyRecipeOn(level, stack, recipe));
144+
.map(recipe -> RecipeApplier.applyRecipeOn(level, stack, recipe.value(), true));
145145
}
146146
}

src/main/java/plus/dragons/createdragonsplus/common/kinetics/fan/freezing/FreezingFanProcessingType.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public boolean canProcess(ItemStack stack, Level level) {
8686
public @Nullable List<ItemStack> process(ItemStack stack, Level level) {
8787
return level.getRecipeManager()
8888
.getRecipeFor(CDPRecipes.FREEZING.getType(), new SingleRecipeInput(stack), level)
89-
.map(recipe -> RecipeApplier.applyRecipeOn(level, stack, recipe))
89+
.map(recipe -> RecipeApplier.applyRecipeOn(level, stack, recipe.value(), true))
9090
.or(() -> {
9191
var result = processByCompatRecipe(createGarnishedRecipe, stack, level);
9292
if (result.isEmpty())
@@ -140,6 +140,6 @@ private Optional<List<ItemStack>> processByCompatRecipe(DeferredHolder<RecipeTyp
140140
return Optional.empty();
141141
return level.getRecipeManager()
142142
.getRecipeFor(recipeType.get(), new SingleRecipeInput(stack), level)
143-
.map(recipe -> RecipeApplier.applyRecipeOn(level, stack, recipe));
143+
.map(recipe -> RecipeApplier.applyRecipeOn(level, stack, recipe.value(), true));
144144
}
145145
}

src/main/java/plus/dragons/createdragonsplus/common/kinetics/fan/sanding/SandingFanProcessingType.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public boolean canProcess(ItemStack stack, Level level) {
9595
.getRecipeFor((RecipeType<? extends StandardProcessingRecipe<SingleRecipeInput>>) CDPRecipes.SANDING.getType(), input, level)
9696
.or(() -> recipeManager.getRecipeFor(AllRecipeTypes.SANDPAPER_POLISHING.getType(), input, level))
9797
.filter(AllRecipeTypes.CAN_BE_AUTOMATED)
98-
.map(recipe -> RecipeApplier.applyRecipeOn(level, stack, recipe))
98+
.map(recipe -> RecipeApplier.applyRecipeOn(level, stack, recipe.value(), true))
9999
.or(() -> processByCompatRecipe(createDNDRecipe, stack, level))
100100
.orElse(null);
101101
}
@@ -179,6 +179,6 @@ private Optional<List<ItemStack>> processByCompatRecipe(DeferredHolder<RecipeTyp
179179
return Optional.empty();
180180
return level.getRecipeManager()
181181
.getRecipeFor(recipeType.get(), new SingleRecipeInput(stack), level)
182-
.map(recipe -> RecipeApplier.applyRecipeOn(level, stack, recipe));
182+
.map(recipe -> RecipeApplier.applyRecipeOn(level, stack, recipe.value(), true));
183183
}
184184
}

src/main/java/plus/dragons/createdragonsplus/mixin/create/PotionMixingRecipesMixin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import com.simibubi.create.content.kinetics.mixer.MixingRecipe;
2626
import com.simibubi.create.content.processing.recipe.HeatCondition;
2727
import com.simibubi.create.content.processing.recipe.StandardProcessingRecipe;
28-
import com.simibubi.create.foundation.fluid.FluidIngredient;
2928
import java.util.ArrayList;
3029
import java.util.List;
3130
import java.util.Map;
@@ -35,6 +34,7 @@
3534
import net.minecraft.world.item.crafting.Ingredient;
3635
import net.minecraft.world.item.crafting.RecipeHolder;
3736
import net.neoforged.neoforge.fluids.FluidStack;
37+
import net.neoforged.neoforge.fluids.crafting.SizedFluidIngredient;
3838
import org.spongepowered.asm.mixin.Mixin;
3939
import org.spongepowered.asm.mixin.Unique;
4040
import org.spongepowered.asm.mixin.injection.At;
@@ -56,7 +56,7 @@ public class PotionMixingRecipesMixin {
5656
var recipeId = CDPCommon.asResource(id + "_using_dragon_breath_fluid");
5757
var recipe = new StandardProcessingRecipe.Builder<>(MixingRecipe::new, recipeId)
5858
.require(CDPFluids.COMMON_TAGS.dragonBreath, 250)
59-
.require(FluidIngredient.fromFluidStack(fromFluid))
59+
.require(SizedFluidIngredient.of(fromFluid))
6060
.output(toFluid)
6161
.requiresHeat(HeatCondition.HEATED)
6262
.build();

src/main/java/plus/dragons/createdragonsplus/mixin/dndesires/FanProcessingTypeMixinForDnD.java

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
* Copyright (C) 2025 DragonsPlus
3+
* SPDX-License-Identifier: LGPL-3.0-or-later
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License
16+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
17+
*/
18+
119
package plus.dragons.createdragonsplus.mixin.dndesires;
220

321
import com.llamalad7.mixinextras.injector.wrapoperation.Operation;
@@ -18,13 +36,10 @@
1836
@Restriction(require = @Condition(ModIntegration.Constants.CREATE_DND))
1937
@Mixin(FanProcessingType.class)
2038
public interface FanProcessingTypeMixinForDnD {
21-
@WrapOperation(
22-
method = "getAt",
23-
at = @At(value = "INVOKE", target = "Lcom/simibubi/create/content/kinetics/fan/processing/FanProcessingType;isValidAt(Lnet/minecraft/world/level/Level;Lnet/minecraft/core/BlockPos;)Z")
24-
)
39+
@WrapOperation(method = "getAt", at = @At(value = "INVOKE", target = "Lcom/simibubi/create/content/kinetics/fan/processing/FanProcessingType;isValidAt(Lnet/minecraft/world/level/Level;Lnet/minecraft/core/BlockPos;)Z"))
2540
private static boolean ignoreDisabledType(FanProcessingType instance, Level level, BlockPos blockPos, Operation<Boolean> original) {
2641
if (instance instanceof FreezingType && CDPConfig.recipes().enableBulkFreezing.get())
27-
return false;
42+
return false;
2843
else if (instance instanceof DragonBreathingType && CDPConfig.recipes().enableBulkEnding.get())
2944
return false;
3045
else if (instance instanceof SandingType && CDPConfig.recipes().enableBulkSanding.get())

src/main/java/plus/dragons/createdragonsplus/mixin/garnished/FanProcessingTypeMixinForGarnished.java

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
* Copyright (C) 2025 DragonsPlus
3+
* SPDX-License-Identifier: LGPL-3.0-or-later
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License
16+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
17+
*/
18+
119
package plus.dragons.createdragonsplus.mixin.garnished;
220

321
import com.llamalad7.mixinextras.injector.wrapoperation.Operation;
@@ -16,13 +34,10 @@
1634
@Restriction(require = @Condition(ModIntegration.Constants.CREATE_GARNISHED))
1735
@Mixin(FanProcessingType.class)
1836
public interface FanProcessingTypeMixinForGarnished {
19-
@WrapOperation(
20-
method = "getAt",
21-
at = @At(value = "INVOKE", target = "Lcom/simibubi/create/content/kinetics/fan/processing/FanProcessingType;isValidAt(Lnet/minecraft/world/level/Level;Lnet/minecraft/core/BlockPos;)Z")
22-
)
37+
@WrapOperation(method = "getAt", at = @At(value = "INVOKE", target = "Lcom/simibubi/create/content/kinetics/fan/processing/FanProcessingType;isValidAt(Lnet/minecraft/world/level/Level;Lnet/minecraft/core/BlockPos;)Z"))
2338
private static boolean ignoreDisabledType(FanProcessingType instance, Level level, BlockPos blockPos, Operation<Boolean> original) {
2439
if (instance instanceof FreezingFanProcessingType && CDPConfig.recipes().enableBulkFreezing.get())
25-
return false;
40+
return false;
2641
return original.call(instance, level, blockPos);
2742
}
2843
}

0 commit comments

Comments
 (0)