Skip to content

Commit

Permalink
Rename Greenhouse to Growing Chamber
Browse files Browse the repository at this point in the history
Breaks All Existing Greenhouses
  • Loading branch information
IntegerLimit committed Mar 27, 2024
1 parent 9c328a5 commit 9a7e3ad
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@

import static com.nomiceu.nomilabs.util.LabsTranslate.*;

public class MetaTileEntityGreenhouse extends GCYMRecipeMapMultiblockController {
public class MetaTileEntityGrowthChamber extends GCYMRecipeMapMultiblockController {

public MetaTileEntityGreenhouse(ResourceLocation metaTileEntityId) {
super(metaTileEntityId, LabsRecipeMaps.GREENHOUSE_RECIPES);
public MetaTileEntityGrowthChamber(ResourceLocation metaTileEntityId) {
super(metaTileEntityId, LabsRecipeMaps.GROWTH_CHAMBER_RECIPES);
}

@Override
public MetaTileEntity createMetaTileEntity(IGregTechTileEntity iGregTechTileEntity) {
return new MetaTileEntityGreenhouse(metaTileEntityId);
return new MetaTileEntityGrowthChamber(metaTileEntityId);
}

@Override
Expand Down Expand Up @@ -121,7 +121,7 @@ public boolean canBeDistinct() {
@Override
@SideOnly(Side.CLIENT)
public void addInformation(ItemStack stack, @Nullable World world, @NotNull List<String> tooltip, boolean advanced) {
tooltip.add(translate("tooltip.nomilabs.greenhouse.description"));
tooltip.add(translate("tooltip.nomilabs.growth_chamber.description"));
super.addInformation(stack, world, tooltip, advanced);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
@SuppressWarnings("unused")
public class LabsMultiblocks {
public static MetaTileEntityGreenhouse GREENHOUSE;
public static MetaTileEntityGrowthChamber GROWTH_CHAMBER;
public static MetaTileEntityMicroverseProjector.Microverse1 MICROVERSE_1;
public static MetaTileEntityMicroverseProjector.Microverse2 MICROVERSE_2;
public static MetaTileEntityMicroverseProjector.Microverse3 MICROVERSE_3;
Expand Down Expand Up @@ -48,6 +48,6 @@ private static void initOld() {
DME_SIM_CHAMBER = MetaTileEntities.registerMetaTileEntity(32108, new MetaTileEntityDMESimChamber(LabsNames.makeLabsName("dme_sim_chamber")));
}
private static void initNew() {
GREENHOUSE = MetaTileEntities.registerMetaTileEntity(32109, new MetaTileEntityGreenhouse(LabsNames.makeLabsName("greenhouse")));
GROWTH_CHAMBER = MetaTileEntities.registerMetaTileEntity(32109, new MetaTileEntityGrowthChamber(LabsNames.makeLabsName("growth_chamber")));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class LabsRecipeMaps {
public static RecipeMap<SimpleRecipeBuilder> ACTUALIZATION_CHAMBER_RECIPES;
public static RecipeMap<SimpleRecipeBuilder> UNIVERSAL_CRYSTALIZER_RECIPES;
public static RecipeMap<SimpleRecipeBuilder> DME_SIM_CHAMBER_RECIPES;
public static RecipeMap<SimpleRecipeBuilder> GREENHOUSE_RECIPES;
public static RecipeMap<SimpleRecipeBuilder> GROWTH_CHAMBER_RECIPES;

public static void preInit() {
MICROVERSE_RECIPES = new ArrayList<>();
Expand Down Expand Up @@ -52,7 +52,7 @@ public static void preInit() {
.setSlotOverlay(false, false, GuiTextures.RESEARCH_STATION_OVERLAY).setSlotOverlay(true, false, GuiTextures.RESEARCH_STATION_OVERLAY)
.setProgressBar(GuiTextures.PROGRESS_BAR_CIRCUIT_ASSEMBLER, ProgressWidget.MoveType.VERTICAL).setSound(GTSoundEvents.COMPUTATION);

GREENHOUSE_RECIPES = new RecipeMap<>("greenhouse", 4, 9, 1, 0, new SimpleRecipeBuilder(), !newMultis())
GROWTH_CHAMBER_RECIPES = new RecipeMap<>("growth_chamber", 4, 9, 1, 0, new SimpleRecipeBuilder(), !newMultis())
.setSlotOverlay(false, false, GuiTextures.SCANNER_OVERLAY).setSlotOverlay(false, true, GuiTextures.SCANNER_OVERLAY)
.setSlotOverlay(true, false, GuiTextures.SCANNER_OVERLAY).setSlotOverlay(true, true, GuiTextures.SCANNER_OVERLAY)
.setSound(GTSoundEvents.SAW_TOOL);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class LabsTestRecipes {
public static void initRecipes() {
assert Blocks.SAPLING != null;
assert Blocks.LOG != null;
LabsRecipeMaps.GREENHOUSE_RECIPES.recipeBuilder().duration(1200).EUt(GTValues.VHA[GTValues.MV])
LabsRecipeMaps.GROWTH_CHAMBER_RECIPES.recipeBuilder().duration(1200).EUt(GTValues.VHA[GTValues.MV])
.input(Blocks.SAPLING)
.output(Blocks.LOG)
.buildAndRegister();
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/assets/nomilabs/lang/en_us.lang
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Greenhouse
nomilabs.machine.greenhouse.name=Greenhouse
recipemap.greenhouse.name=Growing
# Growth Chamber
nomilabs.machine.growth_chamber.name=Growth Chamber
recipemap.growth_chamber.name=Growing

tile.unique_casing.growth_light.name=Growth Light
tile.unique_casing.air_vent.name=Air Vent
Expand Down Expand Up @@ -557,4 +557,4 @@ tooltip.nomilabs.actualization_chamber.description=§8A powerful machine that ha
tooltip.nomilabs.universal_crystallizer.description=§8An immense device, capable of turning raw materials into complex matters.§r
tooltip.nomilabs.universal_crystallizer.description_laser=Can use §bLaser Hatches§r
tooltip.nomilabs.dme_sim_chamber.description=§8A high powered simulation device, capable of performing more complex simulations faster than ever.§r
tooltip.nomilabs.greenhouse.description=§8A high powered growing chamber, capable of mass-growing even the most incomprehensible plants.§r
tooltip.nomilabs.growth_chamber.description=§8A high powered UV ray chamber, capable of mass-growing even the most incomprehensible plants.§r

0 comments on commit 9a7e3ad

Please sign in to comment.