Skip to content

Commit

Permalink
fix category
Browse files Browse the repository at this point in the history
  • Loading branch information
Leclowndu93150 committed Sep 15, 2024
1 parent fc3569a commit 0bbcb5b
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.level.material.Fluids;
import org.jetbrains.annotations.Nullable;

import java.util.ArrayList;
Expand All @@ -37,7 +38,7 @@ public class MixingRecipeCategory implements IRecipeCategory<MixingRecipe> {
private final IDrawable icon;

public MixingRecipeCategory(IGuiHelper helper) {
this.background = helper.createBlankDrawable(80, 55);
this.background = helper.createBlankDrawable(80, 66);
this.icon = helper.createDrawableIngredient(VanillaTypes.ITEM_STACK, new ItemStack(MJBlocks.MIXER.get()));
}

Expand Down Expand Up @@ -101,22 +102,21 @@ public void setRecipe(IRecipeLayoutBuilder builder, MixingRecipe recipe, IFocusG
slotPositions.add(Pair.of(outputX, 50)); // Store the output slot position
}

/*

// Check if there is a fluid input
if (recipe.fluidIngredient().getFluid() != null) {
if (recipe.fluidIngredient().getFluid() != Fluids.EMPTY) {
builder.addSlot(RecipeIngredientRole.INPUT, 0, 64)
.addFluidStack(recipe.fluidIngredient().getFluid(), recipe.fluidIngredient().getAmount());
slotPositions.add(Pair.of(0, 64)); // Store the fluid input slot position
}

// Check if there is a fluid output
if (recipe.fluidResult().getFluid() != null) {
if (recipe.fluidResult().getFluid() != Fluids.EMPTY) {
builder.addSlot(RecipeIngredientRole.OUTPUT, 0, 96)
.addFluidStack(recipe.fluidResult().getFluid(), recipe.fluidResult().getAmount());
slotPositions.add(Pair.of(0, 96)); // Store the fluid output slot position
}
*/
System.out.println(recipe.fluidResult().getFluid());

}

@Override
Expand Down

0 comments on commit 0bbcb5b

Please sign in to comment.