Skip to content

Commit

Permalink
Expand Actualization Recipe Map
Browse files Browse the repository at this point in the history
  • Loading branch information
IntegerLimit committed Mar 11, 2024
1 parent d7f9092 commit 117ec91
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@
import org.jetbrains.annotations.NotNull;

/**
* A Recipe Map in which slots expand downwards if the number of slots is not a square number, instead of sideways.
* <p>
* TODO: Refactor when GT MUI Change Rolls In
*/
public class MicroverseMap extends RecipeMap<SimpleRecipeBuilder> {
public MicroverseMap(@NotNull String unlocalizedName, int maxInputs, int maxOutputs, int maxFluidInputs, int maxFluidOutputs, @NotNull SimpleRecipeBuilder defaultRecipeBuilder, boolean isHidden) {
public class DownExpandingRecipeMap extends RecipeMap<SimpleRecipeBuilder> {
public DownExpandingRecipeMap(@NotNull String unlocalizedName, int maxInputs, int maxOutputs, int maxFluidInputs, int maxFluidOutputs, @NotNull SimpleRecipeBuilder defaultRecipeBuilder, boolean isHidden) {
super(unlocalizedName, maxInputs, maxOutputs, maxFluidInputs, maxFluidOutputs, defaultRecipeBuilder, isHidden);
}

@SuppressWarnings("ConstantValue")
@Override
protected void addInventorySlotGroup(ModularUI.Builder builder, IItemHandlerModifiable itemHandler,
FluidTankList fluidHandler, boolean isOutputs, int yOffset) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static void preInit() {
NAQUADAH_REACTOR_RECIPES.add(i, createNaqRecipeMap(i + 1));
}

ACTUALIZATION_CHAMBER_RECIPES = new RecipeMap<>("actualization_chamber", 2, 16, 0, 0, new SimpleRecipeBuilder(), !(oldMultis() || LabsModeHelper.isExpert()))
ACTUALIZATION_CHAMBER_RECIPES = new DownExpandingRecipeMap("actualization_chamber", 2, 20, 0, 0, new SimpleRecipeBuilder(), !(oldMultis() || LabsModeHelper.isExpert()))
.setSlotOverlay(false, false, GuiTextures.MOLECULAR_OVERLAY_1).setSound(GTSoundEvents.MINER)
.setProgressBar(GuiTextures.PROGRESS_BAR_CRYSTALLIZATION, ProgressWidget.MoveType.HORIZONTAL);

Expand All @@ -59,7 +59,7 @@ public static void preInit() {
}

private static RecipeMap<SimpleRecipeBuilder> createMicroverseRecipeMap(int tier) {
return new MicroverseMap("microverse_projector_" + tier, tier == 3 ? 9 : 4, tier == 1 ? 20 : 16, tier == 1 ? 1 : 0, 0, new SimpleRecipeBuilder(), !oldMultis())
return new DownExpandingRecipeMap("microverse_projector_" + tier, tier == 3 ? 9 : 4, tier == 1 ? 20 : 16, tier == 1 ? 1 : 0, 0, new SimpleRecipeBuilder(), !oldMultis())
.setProgressBar(LabsTextures.PROGRESS_BAR_ROCKET, ProgressWidget.MoveType.HORIZONTAL).setSound(LabsSounds.MICROVERSE)
.setSlotOverlay(false, false, GuiTextures.IMPLOSION_OVERLAY_1);
}
Expand Down

0 comments on commit 117ec91

Please sign in to comment.