more style changes
This commit is contained in:
parent
693b9fd906
commit
cd9017f6c3
|
|
@ -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());
|
||||||
|
|
|
||||||
|
|
@ -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() {
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user