more style changes

This commit is contained in:
Lorenz Wrobel 2026-06-17 18:23:31 +02:00
parent 693b9fd906
commit cd9017f6c3
3 changed files with 2 additions and 6 deletions

View File

@ -60,10 +60,7 @@ public sealed abstract class CrookJeiRecipe {
var id = recipeHolder.id(); var id = recipeHolder.id();
switch (recipe.blockPredicate()) { switch (recipe.blockPredicate()) {
case BlockPredicate.BlockStatePredicate state -> { case BlockPredicate.BlockStatePredicate state -> {
return new StatesRecipe(id, state, state return new StatesRecipe(id, state, state.possibleStates().filter(blockState -> !blockState.hasProperty(BlockStateProperties.WATERLOGGED) || !blockState.getValue(BlockStateProperties.WATERLOGGED)).toList(), recipe.result(), recipe.chance());
.possibleStates()
.filter(blockState -> !blockState.hasProperty(BlockStateProperties.WATERLOGGED) || !blockState.getValue(BlockStateProperties.WATERLOGGED))
.toList(), recipe.result(), recipe.chance());
} }
case BlockPredicate.SingleBlockPredicate block -> { case BlockPredicate.SingleBlockPredicate block -> {
return new BlockRecipe(id, block.block(), recipe.result(), recipe.chance()); return new BlockRecipe(id, block.block(), recipe.result(), recipe.chance());

View File

@ -41,7 +41,7 @@ final class CrucibleHeatSourceRecipe {
} }
public RecipeHolder<CrucibleHeatRecipe> recipeHolder() { public RecipeHolder<CrucibleHeatRecipe> recipeHolder() {
return recipeHolder; return this.recipeHolder;
} }
public int meltRate() { public int meltRate() {

View File

@ -26,7 +26,6 @@ import mezz.jei.api.gui.drawable.IDrawable;
import mezz.jei.api.gui.ingredient.IRecipeSlotRichTooltipCallback; import mezz.jei.api.gui.ingredient.IRecipeSlotRichTooltipCallback;
import mezz.jei.api.gui.ingredient.IRecipeSlotView; import mezz.jei.api.gui.ingredient.IRecipeSlotView;
import mezz.jei.api.gui.ingredient.IRecipeSlotsView; import mezz.jei.api.gui.ingredient.IRecipeSlotsView;
import mezz.jei.api.helpers.IGuiHelper;
import mezz.jei.api.helpers.IJeiHelpers; import mezz.jei.api.helpers.IJeiHelpers;
import mezz.jei.api.helpers.IModIdHelper; import mezz.jei.api.helpers.IModIdHelper;
import mezz.jei.api.ingredients.IIngredientHelper; import mezz.jei.api.ingredients.IIngredientHelper;