From 296a37863e7b2cb53cc85164788d71eeed8f2098 Mon Sep 17 00:00:00 2001
From: luomolhx <32254980+luomolhx@users.noreply.github.com>
Date: Tue, 12 Dec 2023 16:35:44 +0800
Subject: [PATCH 01/12] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E9=80=82=E9=85=8Dgtnh2?=
=?UTF-8?q?50=E7=9A=84=E6=96=B0RecipeMap?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
build.gradle | 31 +++-------
dependencies.gradle | 18 +++---
gradle.properties | 5 ++
.../silvermoon/boxplusplus/api/IBoxable.java | 8 +--
.../common/loader/RecipeLoader.java | 44 +++++---------
.../boxplusplus/util/BoxRoutings.java | 60 ++++++++++---------
.../com/silvermoon/boxplusplus/util/Util.java | 24 ++++----
7 files changed, 89 insertions(+), 101 deletions(-)
diff --git a/build.gradle b/build.gradle
index f3a7fa2..50c3291 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,4 +1,4 @@
-//version: 1699290261
+//version: 1702141377
/*
DO NOT CHANGE THIS FILE!
Also, you may replace this file at any time if there is an update available.
@@ -28,27 +28,12 @@ import java.util.concurrent.TimeUnit
buildscript {
repositories {
- mavenCentral()
-
- maven {
- name 'forge'
- url 'https://maven.minecraftforge.net'
- }
maven {
// GTNH RetroFuturaGradle and ASM Fork
name "GTNH Maven"
url "http://jenkins.usrv.eu:8081/nexus/content/groups/public/"
allowInsecureProtocol = true
}
- maven {
- name 'sonatype'
- url 'https://oss.sonatype.org/content/repositories/snapshots/'
- }
- maven {
- name 'Scala CI dependencies'
- url 'https://repo1.maven.org/maven2/'
- }
-
mavenLocal()
}
}
@@ -69,7 +54,7 @@ plugins {
id 'com.diffplug.spotless' version '6.13.0' apply false // 6.13.0 is the last jvm8 supporting version
id 'com.modrinth.minotaur' version '2.+' apply false
id 'com.matthewprenger.cursegradle' version '1.4.0' apply false
- id 'com.gtnewhorizons.retrofuturagradle' version '1.3.24'
+ id 'com.gtnewhorizons.retrofuturagradle' version '1.3.26'
}
print("You might want to check out './gradlew :faq' if your build fails.\n")
@@ -302,7 +287,7 @@ if (apiPackage) {
}
if (accessTransformersFile) {
- for (atFile in accessTransformersFile.split(",")) {
+ for (atFile in accessTransformersFile.split(" ")) {
String targetFile = "src/main/resources/META-INF/" + atFile.trim()
if (!getFile(targetFile).exists()) {
throw new GradleException("Could not resolve \"accessTransformersFile\"! Could not find " + targetFile)
@@ -628,7 +613,7 @@ repositories {
}
maven {
name = "ic2"
- url = getURL("https://maven.ic2.player.to/", "https://maven2.ic2.player.to/")
+ url = getURL("https://maven2.ic2.player.to/", "https://maven.ic2.player.to/")
content {
includeGroup "net.industrial-craft"
}
@@ -687,6 +672,8 @@ configurations.all {
substitute module('com.github.GTNewHorizons:SpongePoweredMixin') using module(mixinProviderSpecNoClassifer) withClassifier("dev") because("Unimixins replaces other mixin mods")
substitute module('com.github.GTNewHorizons:SpongeMixins') using module(mixinProviderSpecNoClassifer) withClassifier("dev") because("Unimixins replaces other mixin mods")
substitute module('io.github.legacymoddingmc:unimixins') using module(mixinProviderSpecNoClassifer) withClassifier("dev") because("Our previous unimixins upload was missing the dev classifier")
+
+ substitute module('org.scala-lang:scala-library:2.11.1') using module('org.scala-lang:scala-library:2.11.5') because('To allow mixing with Java 8 targets')
}
}
@@ -793,12 +780,12 @@ ext.java17PatchDependenciesCfg = configurations.create("java17PatchDependencies"
}
dependencies {
- def lwjgl3ifyVersion = '1.5.1'
+ def lwjgl3ifyVersion = '1.5.7'
if (modId != 'lwjgl3ify') {
java17Dependencies("com.github.GTNewHorizons:lwjgl3ify:${lwjgl3ifyVersion}")
}
if (modId != 'hodgepodge') {
- java17Dependencies('com.github.GTNewHorizons:Hodgepodge:2.3.17')
+ java17Dependencies('com.github.GTNewHorizons:Hodgepodge:2.3.35')
}
java17PatchDependencies("com.github.GTNewHorizons:lwjgl3ify:${lwjgl3ifyVersion}:forgePatches") {transitive = false}
@@ -1310,7 +1297,7 @@ def addCurseForgeRelation(String type, String name) {
// Updating
-def buildscriptGradleVersion = "8.2.1"
+def buildscriptGradleVersion = "8.5"
tasks.named('wrapper', Wrapper).configure {
gradleVersion = buildscriptGradleVersion
diff --git a/dependencies.gradle b/dependencies.gradle
index 741ae63..9c95699 100644
--- a/dependencies.gradle
+++ b/dependencies.gradle
@@ -29,14 +29,14 @@
* For more details, see https://docs.gradle.org/8.0.1/userguide/java_library_plugin.html#sec:java_library_configurations_graph
*/
dependencies {
- implementation('com.github.GTNewHorizons:GT5-Unofficial:5.09.44.87:dev')
- implementation('com.github.GTNewHorizons:GTplusplus:1.10.31:dev')
- implementation("com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-287-GTNH:dev")
- implementation('com.github.GTNewHorizons:GoodGenerator:0.7.6:dev')
- implementation('com.github.GTNewHorizons:bartworks:0.8.12:dev')
- implementation('com.github.GTNewHorizons:GTNH-Lanthanides:0.11.4:dev')
+ implementation('com.github.GTNewHorizons:GT5-Unofficial:5.09.44.106:dev')
+ implementation('com.github.GTNewHorizons:GTplusplus:1.10.45:dev')
+ implementation("com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-291-GTNH:dev")
+ implementation('com.github.GTNewHorizons:GoodGenerator:0.7.14:dev')
+ implementation('com.github.GTNewHorizons:bartworks:0.8.20:dev')
+ implementation('com.github.GTNewHorizons:GTNH-Lanthanides:0.11.8:dev')
implementation('com.github.GTNewHorizons:Galaxy-Space-GTNH:1.2.13-GTNH:dev')
- implementation('com.github.GTNewHorizons:GTNH-Intergalactic:1.2.4:dev')
- implementation('com.github.GTNewHorizons:NotEnoughEnergistics:1.4.2:dev')
- implementation('com.github.GTNewHorizons:NewHorizonsCoreMod:2.2.39:dev')
+ implementation('com.github.GTNewHorizons:GTNH-Intergalactic:1.2.7:dev')
+ implementation('com.github.GTNewHorizons:NotEnoughEnergistics:1.4.6:dev')
+ implementation('com.github.GTNewHorizons:NewHorizonsCoreMod:2.2.50:dev')
}
diff --git a/gradle.properties b/gradle.properties
index 56ca9a3..e7ef874 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -139,3 +139,8 @@ disableCheckstyle=true
# WARNING: If you do use this option, it will overwrite whatever you have in your existing projects. This might not be what you want!
# Usually there is no need to uncomment this here as other developers do not necessarily use the same build type as you.
# ideaOverrideBuildType = idea
+
+systemProp.https.proxyHost=127.0.0.1
+systemProp.https.proxyPort=7890
+systemProp.http.proxyHost=127.0.0.1
+systemProp.http.proxyPort=7890
diff --git a/src/main/java/com/silvermoon/boxplusplus/api/IBoxable.java b/src/main/java/com/silvermoon/boxplusplus/api/IBoxable.java
index 4388e55..7a81232 100644
--- a/src/main/java/com/silvermoon/boxplusplus/api/IBoxable.java
+++ b/src/main/java/com/silvermoon/boxplusplus/api/IBoxable.java
@@ -1,7 +1,7 @@
package com.silvermoon.boxplusplus.api;
import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
-import gregtech.api.util.GT_Recipe;
+import gregtech.api.recipe.RecipeMap;
/**
* Implements this on GT_MetaTileEntity_MultiBlockBase to allow your machine encapsulating in Box System.
@@ -17,7 +17,7 @@ public interface IBoxable {
* Set which module your machine will be.
*
* 设定模块ID。模块ID可以从模块核心的meta值获取,范围:0-11
- *
+ *
* @return Module ID, refers to the meta of the module core block. Range: 0-11
*/
@@ -27,7 +27,7 @@ public interface IBoxable {
* Should use update module
*
* 是否使用升级模块
- *
+ *
* @return true - updated
*/
boolean isUpdateModule();
@@ -38,7 +38,7 @@ public interface IBoxable {
* @param machine normally "this"
* @return GT_Recipe_Map - the real recipeMap
*/
- default GT_Recipe.GT_Recipe_Map getRealRecipeMap(GT_MetaTileEntity_MultiBlockBase machine) {
+ default RecipeMap> getRealRecipeMap(GT_MetaTileEntity_MultiBlockBase machine) {
return machine.getRecipeMap();
}
diff --git a/src/main/java/com/silvermoon/boxplusplus/common/loader/RecipeLoader.java b/src/main/java/com/silvermoon/boxplusplus/common/loader/RecipeLoader.java
index 982bb9e..8ec9b05 100644
--- a/src/main/java/com/silvermoon/boxplusplus/common/loader/RecipeLoader.java
+++ b/src/main/java/com/silvermoon/boxplusplus/common/loader/RecipeLoader.java
@@ -1,8 +1,8 @@
package com.silvermoon.boxplusplus.common.loader;
import static gregtech.api.enums.Mods.*;
-import static gregtech.api.util.GT_Recipe.GT_Recipe_Map.sAssemblerRecipes;
-import static gregtech.api.util.GT_Recipe.GT_Recipe_Map.sMultiblockChemicalRecipes;
+import static gregtech.api.recipe.RecipeMaps.assemblerRecipes;
+import static gregtech.api.recipe.RecipeMaps.multiblockChemicalReactorRecipes;
import static gregtech.api.util.GT_RecipeConstants.*;
import net.minecraft.item.ItemStack;
@@ -13,13 +13,14 @@
import com.github.technus.tectech.recipe.TT_recipeAdder;
import gregtech.api.enums.*;
-import gregtech.api.util.GTPP_Recipe;
import gregtech.api.util.GT_ModHandler;
import gregtech.api.util.GT_OreDictUnificator;
+import gtPlusPlus.api.recipe.GTPPRecipeMaps;
import gtPlusPlus.xmod.gregtech.api.enums.GregtechItemList;
public class RecipeLoader implements Runnable {
+ @Override
public void run() {
addBoxRecipe();
addMachineBlockRecipe();
@@ -33,7 +34,6 @@ public void addBoxRecipe() {
.metadata(RESEARCH_ITEM, GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 13532))
.metadata(RESEARCH_TIME, 64000)
.itemOutputs(TileEntitiesLoader.Box.getStackForm(1))
- .noFluidOutputs()
.itemInputs(
new ItemStack(BlockRegister.BoxRing, 1, 0),
GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 4, 59),
@@ -62,22 +62,19 @@ public void addBoxRecipe() {
public void addMachineBlockRecipe() {
GT_Values.RA.stdBuilder()
.itemOutputs(new ItemStack(BlockRegister.SpaceExtend, 32, 0))
- .noFluidOutputs()
.itemInputs(
ItemList.Casing_StableTitanium.get(64),
GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 2, 32),
ItemList.Electric_Motor_LuV.get(16),
ItemList.Electric_Piston_LuV.get(16),
GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.IrradiantReinforcedTitaniumPlate", 4))
- .noFluidInputs()
.eut(TierEU.RECIPE_LuV)
.duration(400)
- .addTo(sAssemblerRecipes);
+ .addTo(assemblerRecipes);
GT_Values.RA.stdBuilder()
.metadata(RESEARCH_ITEM, new ItemStack(BlockRegister.SpaceExtend))
.metadata(RESEARCH_TIME, 24000)
.itemOutputs(new ItemStack(BlockRegister.SpaceCompress, 16, 0))
- .noFluidOutputs()
.itemInputs(
ItemList.Casing_StableTitanium.get(64),
ItemList.Casing_StableTitanium.get(64),
@@ -95,7 +92,6 @@ public void addMachineBlockRecipe() {
.metadata(RESEARCH_ITEM, new ItemStack(BlockRegister.SpaceCompress))
.metadata(RESEARCH_TIME, 48000)
.itemOutputs(new ItemStack(BlockRegister.SpaceConstraint, 2, 0))
- .noFluidOutputs()
.itemInputs(
ItemList.Casing_StableTitanium.get(64),
ItemList.Casing_StableTitanium.get(64),
@@ -135,7 +131,6 @@ public void addMachineBlockRecipe() {
public void addRingRecipe() {
GT_Values.RA.stdBuilder()
.itemOutputs(new ItemStack(BlockRegister.BoxRing, 1, 0))
- .noFluidOutputs()
.itemInputs(
GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Titanium, 64),
GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Titanium, 64),
@@ -146,12 +141,11 @@ public void addRingRecipe() {
.fluidInputs(FluidRegistry.getFluidStack("molten.tanmolyium beta-c", 51840))
.eut(TierEU.RECIPE_LuV)
.duration(1200)
- .addTo(sAssemblerRecipes);
+ .addTo(assemblerRecipes);
GT_Values.RA.stdBuilder()
.metadata(RESEARCH_ITEM, new ItemStack(BlockRegister.BoxRing))
.metadata(RESEARCH_TIME, 48000)
.itemOutputs(new ItemStack(BlockRegister.BoxRing2, 1, 0))
- .noFluidOutputs()
.itemInputs(
GT_OreDictUnificator.get("ringLaurenium", 64),
GT_OreDictUnificator.get("ringLaurenium", 64),
@@ -201,7 +195,6 @@ public void addRingRecipe() {
public void addModuleRecipe() {
GT_Values.RA.stdBuilder()
.itemOutputs(new ItemStack(BlockRegister.BoxModule, 1, 0))
- .noFluidOutputs()
.itemInputs(
new ItemStack(BlockRegister.BoxRing, 1),
ItemList.Machine_Multi_LargeChemicalReactor.get(64),
@@ -212,10 +205,9 @@ public void addModuleRecipe() {
FluidRegistry.getFluidStack("tetrafluoroethylene", 128000))
.eut(TierEU.RECIPE_LuV)
.duration(1200)
- .addTo(sMultiblockChemicalRecipes);
+ .addTo(multiblockChemicalReactorRecipes);
GT_Values.RA.stdBuilder()
.itemOutputs(new ItemStack(BlockRegister.BoxModule, 1, 1))
- .noFluidOutputs()
.itemInputs(
new ItemStack(BlockRegister.BoxRing, 1),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 876),
@@ -225,10 +217,9 @@ public void addModuleRecipe() {
.fluidInputs(FluidRegistry.getFluidStack("glue", 16000))
.eut(TierEU.RECIPE_LuV)
.duration(1200)
- .addTo(sAssemblerRecipes);
+ .addTo(assemblerRecipes);
GT_Values.RA.stdBuilder()
.itemOutputs(new ItemStack(BlockRegister.BoxModule, 1, 2))
- .noFluidOutputs()
.itemInputs(
new ItemStack(BlockRegister.BoxRing, 1),
ItemList.OilCracker.get(64),
@@ -239,10 +230,9 @@ public void addModuleRecipe() {
.specialValue(5)
.eut(TierEU.RECIPE_LuV)
.duration(2400)
- .addTo(GTPP_Recipe.GTPP_Recipe_Map.sChemicalPlantRecipes);
+ .addTo(GTPPRecipeMaps.chemicalPlantRecipes);
GT_Values.RA.stdBuilder()
.itemOutputs(new ItemStack(BlockRegister.BoxModule, 1, 3))
- .noFluidOutputs()
.itemInputs(
new ItemStack(BlockRegister.BoxRing, 1),
ItemList.Machine_Multi_Furnace.get(64),
@@ -256,12 +246,11 @@ public void addModuleRecipe() {
.fluidInputs(FluidRegistry.getFluidStack("glue", 64000))
.eut(TierEU.RECIPE_LuV)
.duration(2400)
- .addTo(sAssemblerRecipes);
+ .addTo(assemblerRecipes);
GT_Values.RA.stdBuilder()
.metadata(RESEARCH_ITEM, GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 860))
.metadata(RESEARCH_TIME, 12000)
.itemOutputs(new ItemStack(BlockRegister.BoxModule, 1, 4))
- .noFluidOutputs()
.itemInputs(
new ItemStack(BlockRegister.BoxRing2, 2),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 860),
@@ -279,7 +268,6 @@ public void addModuleRecipe() {
.metadata(RESEARCH_ITEM, GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 31077))
.metadata(RESEARCH_TIME, 12000)
.itemOutputs(new ItemStack(BlockRegister.BoxModule, 1, 5))
- .noFluidOutputs()
.itemInputs(
new ItemStack(BlockRegister.BoxRing2, 2),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 31077),
@@ -301,7 +289,7 @@ public void addModuleRecipe() {
.metadata(RESEARCH_ITEM, GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 992))
.metadata(RESEARCH_TIME, 12000)
.itemOutputs(new ItemStack(BlockRegister.BoxModule, 1, 6))
- .noFluidOutputs()
+
.itemInputs(
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 792),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 992),
@@ -324,7 +312,7 @@ public void addModuleRecipe() {
.metadata(RESEARCH_ITEM, GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 850))
.metadata(RESEARCH_TIME, 12000)
.itemOutputs(new ItemStack(BlockRegister.BoxModule, 1, 7))
- .noFluidOutputs()
+
.itemInputs(
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 850),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 796),
@@ -448,7 +436,7 @@ public void addUpgradeModuleRecipe() {
.metadata(RESEARCH_ITEM, new ItemStack(BlockRegister.BoxModule, 1, 0))
.metadata(RESEARCH_TIME, 12000)
.itemOutputs(new ItemStack(BlockRegister.BoxModuleUpgrad, 1, 0))
- .noFluidOutputs()
+
.itemInputs(
new ItemStack(BlockRegister.BoxRing, 8),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 31072),
@@ -466,7 +454,7 @@ public void addUpgradeModuleRecipe() {
.metadata(RESEARCH_ITEM, new ItemStack(BlockRegister.BoxModule, 1, 1))
.metadata(RESEARCH_TIME, 12000)
.itemOutputs(new ItemStack(BlockRegister.BoxModuleUpgrad, 1, 1))
- .noFluidOutputs()
+
.itemInputs(
new ItemStack(BlockRegister.BoxRing, 8),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 32018),
@@ -486,7 +474,7 @@ public void addUpgradeModuleRecipe() {
.metadata(RESEARCH_ITEM, new ItemStack(BlockRegister.BoxModule, 1, 2))
.metadata(RESEARCH_TIME, 12000)
.itemOutputs(new ItemStack(BlockRegister.BoxModuleUpgrad, 1, 2))
- .noFluidOutputs()
+
.itemInputs(
new ItemStack(BlockRegister.BoxRing, 8),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 998),
@@ -503,7 +491,7 @@ public void addUpgradeModuleRecipe() {
.metadata(RESEARCH_ITEM, new ItemStack(BlockRegister.BoxModule, 1, 3))
.metadata(RESEARCH_TIME, 12000)
.itemOutputs(new ItemStack(BlockRegister.BoxModuleUpgrad, 1, 3))
- .noFluidOutputs()
+
.itemInputs(
new ItemStack(BlockRegister.BoxRing, 8),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 828),
diff --git a/src/main/java/com/silvermoon/boxplusplus/util/BoxRoutings.java b/src/main/java/com/silvermoon/boxplusplus/util/BoxRoutings.java
index e63075d..29107ee 100644
--- a/src/main/java/com/silvermoon/boxplusplus/util/BoxRoutings.java
+++ b/src/main/java/com/silvermoon/boxplusplus/util/BoxRoutings.java
@@ -19,8 +19,9 @@
import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.fluids.FluidStack;
-import com.github.bartimaeusnek.bartworks.util.BWRecipes;
-import com.gtnewhorizons.gtnhintergalactic.recipe.IG_RecipeAdder;
+import com.elisis.gtnhlanth.api.recipe.LanthanidesRecipeMaps;
+import com.github.bartimaeusnek.bartworks.API.recipe.BartWorksRecipeMaps;
+import com.gtnewhorizons.gtnhintergalactic.recipe.IGRecipeMaps;
import com.silvermoon.boxplusplus.api.IBoxable;
import com.silvermoon.boxplusplus.boxplusplus;
import com.silvermoon.boxplusplus.common.tileentities.GTMachineBox;
@@ -32,12 +33,17 @@
import codechicken.nei.recipe.RecipeCatalysts;
import fox.spiteful.avaritia.crafting.ExtremeShapedOreRecipe;
import fox.spiteful.avaritia.crafting.ExtremeShapedRecipe;
+import goodgenerator.api.recipe.GoodGeneratorRecipeMaps;
import gregtech.api.enums.*;
import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch_InputBus;
import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
+import gregtech.api.recipe.RecipeMap;
+import gregtech.api.recipe.RecipeMapBackend;
+import gregtech.api.recipe.RecipeMaps;
import gregtech.api.util.*;
import gregtech.common.items.behaviors.Behaviour_DataOrb;
import gregtech.nei.GT_NEI_DefaultHandler;
+import gtPlusPlus.api.recipe.GTPPRecipeMaps;
import gtPlusPlus.core.util.minecraft.ItemUtils;
public class BoxRoutings {
@@ -237,7 +243,7 @@ public static void checkRouting(GTMachineBox box) {
box.routingStatus = 1;
return;
}
- GT_Recipe.GT_Recipe_Map RecipeMap = null;
+ RecipeMap extends RecipeMapBackend> RecipeMap = null;
GT_Recipe RoutingRecipe = null;
List allInputItems = box.getStoredInputs();
for (GT_MetaTileEntity_Hatch_InputBus inputBus : box.mInputBusses) {
@@ -248,7 +254,7 @@ public static void checkRouting(GTMachineBox box) {
if (inputBus.getStackInSlot(i)
.getUnlocalizedName()
.equals("gt.blockmachines.basicmachine.electromagneticseparator.tier.06")) {
- RecipeMap = GT_Recipe.GT_Recipe_Map.sElectroMagneticSeparatorRecipes;
+ RecipeMap = RecipeMaps.electroMagneticSeparatorRecipes;
RoutingRecipe = RecipeMap.findRecipe(
box.getBaseMetaTileEntity(),
true,
@@ -444,8 +450,8 @@ public static void checkRouting(GTMachineBox box) {
return;
}
switch (Circuit.getItemDamage()) {
- case 1 -> RecipeMap = GT_Recipe.GT_Recipe_Map.sBenderRecipes;
- case 2 -> RecipeMap = GT_Recipe.GT_Recipe_Map.sPressRecipes;
+ case 1 -> RecipeMap = RecipeMaps.benderRecipes;
+ case 2 -> RecipeMap = RecipeMaps.formingPressRecipes;
default -> {
box.routingStatus = 4;
return;
@@ -460,8 +466,8 @@ public static void checkRouting(GTMachineBox box) {
return;
}
switch (Circuit.getItemDamage()) {
- case 1 -> RecipeMap = GT_Recipe.GT_Recipe_Map.sOreWasherRecipes;
- case 2 -> RecipeMap = GT_Recipe.GT_Recipe_Map.sChemicalBathRecipes;
+ case 1 -> RecipeMap = RecipeMaps.oreWasherRecipes;
+ case 2 -> RecipeMap = RecipeMaps.chemicalBathRecipes;
default -> {
box.routingStatus = 4;
return;
@@ -542,26 +548,26 @@ public static void checkRouting(GTMachineBox box) {
}
case "largefusioncomputer5" -> {
// Why there are two fusionRecipeMaps?! FK!
- RoutingRecipe = GT_Recipe.GT_Recipe_Map.sFusionRecipes.findRecipe(
+ RoutingRecipe = RecipeMaps.fusionRecipes.findRecipe(
box.getBaseMetaTileEntity(),
- null,
false,
Long.MAX_VALUE / 10,
- FluidInputs.toArray(new FluidStack[0]));
- if (RoutingRecipe == null) RecipeMap = GT_Recipe.GT_Recipe_Map.sComplexFusionRecipes;
+ FluidInputs.toArray(new FluidStack[0]),
+ ItemInputs.toArray(new ItemStack[0]));
+ if (RoutingRecipe == null) RecipeMap = RecipeMaps.fusionRecipes;
}
case "circuitassemblyline" -> {
// Circuitassemblyline will check imprint first. Let us do the same thing here.
- RecipeMap = BWRecipes.instance.getMappingsFor((byte) 3);
+ RecipeMap = BartWorksRecipeMaps.bacterialVatRecipes;
if (inputBus.getStackInSlot(i)
.getTagCompound() == null
|| !inputBus.getStackInSlot(i)
- .getTagCompound()
- .hasKey("Type")) {
+ .getTagCompound()
+ .hasKey("Type")) {
box.routingStatus = 6;
return;
}
- for (GT_Recipe recipe : RecipeMap.mRecipeList) {
+ for (GT_Recipe recipe : RecipeMap.getAllRecipes()) {
if (GT_Utility.areStacksEqual(
recipe.mOutputs[0],
ItemStack.loadItemStackFromNBT(
@@ -587,8 +593,8 @@ public static void checkRouting(GTMachineBox box) {
return;
}
switch (Circuit.getItemDamage()) {
- case 1 -> RecipeMap = GT_Recipe.GT_Recipe_Map.sArcFurnaceRecipes;
- case 2 -> RecipeMap = GT_Recipe.GT_Recipe_Map.sPlasmaArcFurnaceRecipes;
+ case 1 -> RecipeMap = RecipeMaps.arcFurnaceRecipes;
+ case 2 -> RecipeMap = RecipeMaps.plasmaArcFurnaceRecipes;
default -> {
box.routingStatus = 4;
return;
@@ -597,7 +603,7 @@ public static void checkRouting(GTMachineBox box) {
ItemInputs.remove(Circuit);
}
case "gtpp.multimachine.replicator" -> {
- RecipeMap = GTPP_Recipe.GTPP_Recipe_Map.sElementalDuplicatorRecipes;
+ RecipeMap = RecipeMaps.replicatorRecipes;
Materials replicatorItem = null;
for (ItemStack item : ItemInputs) {
if (Behaviour_DataOrb.getDataName(item) == null) continue;
@@ -609,7 +615,7 @@ public static void checkRouting(GTMachineBox box) {
box.routingStatus = 7;
return;
}
- for (GT_Recipe recipe : RecipeMap.mRecipeList) {
+ for (GT_Recipe recipe : RecipeMap.getAllRecipes()) {
if (!(recipe.mSpecialItems instanceof ItemStack[]var1)) {
continue;
}
@@ -633,13 +639,13 @@ public static void checkRouting(GTMachineBox box) {
box.routingStatus = 0;
return;
}
- case "preciseassembler" -> RecipeMap = goodgenerator.util.MyRecipeAdder.instance.PA;
- case "frf" -> RecipeMap = goodgenerator.util.MyRecipeAdder.instance.FRF;
- case "digester" -> RecipeMap = com.elisis.gtnhlanth.loader.RecipeAdder.instance.DigesterRecipes;
- case "dissolution_tank" -> RecipeMap = com.elisis.gtnhlanth.loader.RecipeAdder.instance.DissolutionTankRecipes;
- case "cyclotron.tier.single" -> RecipeMap = GTPP_Recipe.GTPP_Recipe_Map.sCyclotronRecipes;
- case "multimachine.transcendentplasmamixer" -> RecipeMap = GT_Recipe.GT_Recipe_Map.sTranscendentPlasmaMixerRecipes;
- case "projectmoduleassemblert3" -> RecipeMap = IG_RecipeAdder.instance.sSpaceAssemblerRecipes;
+ case "preciseassembler" -> RecipeMap = GoodGeneratorRecipeMaps.preciseAssemblerRecipes;
+ case "frf" -> RecipeMap = GoodGeneratorRecipeMaps.naquadahFuelRefineFactoryRecipes;
+ case "digester" -> RecipeMap = LanthanidesRecipeMaps.digesterRecipes;
+ case "dissolution_tank" -> RecipeMap = LanthanidesRecipeMaps.dissolutionTankRecipes;
+ case "cyclotron.tier.single" -> RecipeMap = GTPPRecipeMaps.cyclotronRecipes;
+ case "multimachine.transcendentplasmamixer" -> RecipeMap = RecipeMaps.transcendentPlasmaMixerRecipes;
+ case "projectmoduleassemblert3" -> RecipeMap = IGRecipeMaps.spaceAssemblerRecipes;
default -> {
RecipeMap = (RoutingMachine instanceof IBoxable boxable)
? boxable.getRealRecipeMap(RoutingMachine)
diff --git a/src/main/java/com/silvermoon/boxplusplus/util/Util.java b/src/main/java/com/silvermoon/boxplusplus/util/Util.java
index 12cfb39..c736225 100644
--- a/src/main/java/com/silvermoon/boxplusplus/util/Util.java
+++ b/src/main/java/com/silvermoon/boxplusplus/util/Util.java
@@ -34,8 +34,10 @@
import appeng.api.AEApi;
import appeng.api.definitions.IDefinitions;
+import gregtech.api.recipe.RecipeMap;
+import gregtech.api.recipe.RecipeMapBackend;
+import gregtech.api.recipe.RecipeMaps;
import gregtech.api.util.GT_ModHandler;
-import gregtech.api.util.GT_Recipe;
public class Util {
@@ -47,17 +49,17 @@ public static String i18n(String info) {
.replace("&", "§");
}
- public static GT_Recipe.GT_Recipe_Map getMMRecipeMap(int Mode) {
+ public static RecipeMap getMMRecipeMap(int Mode) {
return switch (Mode) {
- case 1 -> GT_Recipe.GT_Recipe_Map.sCompressorRecipes;
- case 2 -> GT_Recipe.GT_Recipe_Map.sLatheRecipes;
- case 3 -> GT_Recipe.GT_Recipe_Map.sPolarizerRecipes;
- case 4 -> GT_Recipe.GT_Recipe_Map.sFermentingRecipes;
- case 5 -> GT_Recipe.GT_Recipe_Map.sFluidExtractionRecipes;
- case 6 -> GT_Recipe.GT_Recipe_Map.sExtractorRecipes;
- case 7 -> GT_Recipe.GT_Recipe_Map.sLaserEngraverRecipes;
- case 8 -> GT_Recipe.GT_Recipe_Map.sAutoclaveRecipes;
- case 9 -> GT_Recipe.GT_Recipe_Map.sFluidSolidficationRecipes;
+ case 1 -> RecipeMaps.compressorRecipes;
+ case 2 -> RecipeMaps.latheRecipes;
+ case 3 -> RecipeMaps.polarizerRecipes;
+ case 4 -> RecipeMaps.fermentingRecipes;
+ case 5 -> RecipeMaps.fluidExtractionRecipes;
+ case 6 -> RecipeMaps.extractorRecipes;
+ case 7 -> RecipeMaps.laserEngraverRecipes;
+ case 8 -> RecipeMaps.autoclaveRecipes;
+ case 9 -> RecipeMaps.fluidSolidifierRecipes;
default -> null;
};
}
From b0e6c8a59e528b41042bd7b38f128e343b40eaab Mon Sep 17 00:00:00 2001
From: luomolhx <32254980+luomolhx@users.noreply.github.com>
Date: Tue, 12 Dec 2023 16:38:30 +0800
Subject: [PATCH 02/12] Update gradle.properties
---
gradle.properties | 5 -----
1 file changed, 5 deletions(-)
diff --git a/gradle.properties b/gradle.properties
index e7ef874..56ca9a3 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -139,8 +139,3 @@ disableCheckstyle=true
# WARNING: If you do use this option, it will overwrite whatever you have in your existing projects. This might not be what you want!
# Usually there is no need to uncomment this here as other developers do not necessarily use the same build type as you.
# ideaOverrideBuildType = idea
-
-systemProp.https.proxyHost=127.0.0.1
-systemProp.https.proxyPort=7890
-systemProp.http.proxyHost=127.0.0.1
-systemProp.http.proxyPort=7890
From 392a4549ca91fe3459d5e4fab6e34b914af8921b Mon Sep 17 00:00:00 2001
From: luomolhx <32254980+luomolhx@users.noreply.github.com>
Date: Tue, 12 Dec 2023 17:05:59 +0800
Subject: [PATCH 03/12] Update BoxRoutings.java
-spotless
---
.../java/com/silvermoon/boxplusplus/util/BoxRoutings.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/com/silvermoon/boxplusplus/util/BoxRoutings.java b/src/main/java/com/silvermoon/boxplusplus/util/BoxRoutings.java
index 29107ee..d8a2d81 100644
--- a/src/main/java/com/silvermoon/boxplusplus/util/BoxRoutings.java
+++ b/src/main/java/com/silvermoon/boxplusplus/util/BoxRoutings.java
@@ -562,8 +562,8 @@ public static void checkRouting(GTMachineBox box) {
if (inputBus.getStackInSlot(i)
.getTagCompound() == null
|| !inputBus.getStackInSlot(i)
- .getTagCompound()
- .hasKey("Type")) {
+ .getTagCompound()
+ .hasKey("Type")) {
box.routingStatus = 6;
return;
}
From 17c8b67a1f6ed48e999ec8c65b4bbebd8314c5b7 Mon Sep 17 00:00:00 2001
From: luomolhx <32254980+luomolhx@users.noreply.github.com>
Date: Wed, 13 Dec 2023 16:57:22 +0800
Subject: [PATCH 04/12] hotfix
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
修复配方原料缺失的问题 等钛管道添加替换材料
---
.../silvermoon/boxplusplus/common/loader/RecipeLoader.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/com/silvermoon/boxplusplus/common/loader/RecipeLoader.java b/src/main/java/com/silvermoon/boxplusplus/common/loader/RecipeLoader.java
index 8ec9b05..d9fe95a 100644
--- a/src/main/java/com/silvermoon/boxplusplus/common/loader/RecipeLoader.java
+++ b/src/main/java/com/silvermoon/boxplusplus/common/loader/RecipeLoader.java
@@ -152,8 +152,8 @@ public void addRingRecipe() {
GT_OreDictUnificator.get("ringLaurenium", 64),
GT_OreDictUnificator.get("ringLaurenium", 64),
GT_OreDictUnificator.get("blockAdvancedNitinol", 16),
- GT_ModHandler.getModItem(GTPlusPlus.ID, "particleIon", 64, 21),
- GT_ModHandler.getModItem(GTPlusPlus.ID, "particleIon", 64, 21),
+// GT_ModHandler.getModItem(GTPlusPlus.ID, "particleIon", 64, 21),
+// GT_ModHandler.getModItem(GTPlusPlus.ID, "particleIon", 64, 21),
ItemList.Field_Generator_UV.get(4),
ItemList.ZPM_Coil.get(48))
.fluidInputs(
From ffaab107e9dec40f45697a8c84668c7ce04853fd Mon Sep 17 00:00:00 2001
From: luomolhx <32254980+luomolhx@users.noreply.github.com>
Date: Wed, 13 Dec 2023 17:40:59 +0800
Subject: [PATCH 05/12] fixrecipe
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
暂时用一组钛奇点替换原来的两组钛离子
---
gradle.properties | 2 +-
.../com/silvermoon/boxplusplus/common/loader/RecipeLoader.java | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/gradle.properties b/gradle.properties
index 56ca9a3..2848a49 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -128,7 +128,7 @@ curseForgeRelations =
# Optional parameter to prevent the source code from being published
# noPublishedSources =
# Uncomment this to disable spotless checks
-#disableSpotless=true
+disableSpotless=true
# This should only be uncommented to keep it easier to sync with upstream/other forks.
# That is, if there is no other active fork/upstream, NEVER change this.
disableCheckstyle=true
diff --git a/src/main/java/com/silvermoon/boxplusplus/common/loader/RecipeLoader.java b/src/main/java/com/silvermoon/boxplusplus/common/loader/RecipeLoader.java
index d9fe95a..7fa4dc9 100644
--- a/src/main/java/com/silvermoon/boxplusplus/common/loader/RecipeLoader.java
+++ b/src/main/java/com/silvermoon/boxplusplus/common/loader/RecipeLoader.java
@@ -154,6 +154,7 @@ public void addRingRecipe() {
GT_OreDictUnificator.get("blockAdvancedNitinol", 16),
// GT_ModHandler.getModItem(GTPlusPlus.ID, "particleIon", 64, 21),
// GT_ModHandler.getModItem(GTPlusPlus.ID, "particleIon", 64, 21),
+ GT_ModHandler.getModItem(UniversalSingularities.ID, "universal.general.singularity", 64, 12),
ItemList.Field_Generator_UV.get(4),
ItemList.ZPM_Coil.get(48))
.fluidInputs(
From a4801aadfb66c08f2a61074730f1118faaec37d6 Mon Sep 17 00:00:00 2001
From: luomolhx <32254980+luomolhx@users.noreply.github.com>
Date: Wed, 13 Dec 2023 17:42:16 +0800
Subject: [PATCH 06/12] Update gradle.properties
---
gradle.properties | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gradle.properties b/gradle.properties
index 2848a49..be6388f 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -128,7 +128,7 @@ curseForgeRelations =
# Optional parameter to prevent the source code from being published
# noPublishedSources =
# Uncomment this to disable spotless checks
-disableSpotless=true
+# disableSpotless=true
# This should only be uncommented to keep it easier to sync with upstream/other forks.
# That is, if there is no other active fork/upstream, NEVER change this.
disableCheckstyle=true
From 9f64e91715b7d5b4f789a093a6e6767c3439ce5a Mon Sep 17 00:00:00 2001
From: luomolhx <32254980+luomolhx@users.noreply.github.com>
Date: Wed, 13 Dec 2023 19:55:23 +0800
Subject: [PATCH 07/12] spotless off
---
gradle.properties | 2 +-
gradle/wrapper/gradle-wrapper.properties | 2 +-
.../common/loader/RecipeLoader.java | 165 ++++++++----------
3 files changed, 72 insertions(+), 97 deletions(-)
diff --git a/gradle.properties b/gradle.properties
index be6388f..44b1ded 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -128,7 +128,7 @@ curseForgeRelations =
# Optional parameter to prevent the source code from being published
# noPublishedSources =
# Uncomment this to disable spotless checks
-# disableSpotless=true
+ disableSpotless=true
# This should only be uncommented to keep it easier to sync with upstream/other forks.
# That is, if there is no other active fork/upstream, NEVER change this.
disableCheckstyle=true
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 37aef8d..3499ded 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
diff --git a/src/main/java/com/silvermoon/boxplusplus/common/loader/RecipeLoader.java b/src/main/java/com/silvermoon/boxplusplus/common/loader/RecipeLoader.java
index 7fa4dc9..3ef4b01 100644
--- a/src/main/java/com/silvermoon/boxplusplus/common/loader/RecipeLoader.java
+++ b/src/main/java/com/silvermoon/boxplusplus/common/loader/RecipeLoader.java
@@ -34,8 +34,7 @@ public void addBoxRecipe() {
.metadata(RESEARCH_ITEM, GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 13532))
.metadata(RESEARCH_TIME, 64000)
.itemOutputs(TileEntitiesLoader.Box.getStackForm(1))
- .itemInputs(
- new ItemStack(BlockRegister.BoxRing, 1, 0),
+ .itemInputs(new ItemStack(BlockRegister.BoxRing, 1, 0),
GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 4, 59),
GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 8, 58),
GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 16, 57),
@@ -50,8 +49,7 @@ public void addBoxRecipe() {
ItemList.Tool_DataOrb.get(16),
GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiPart", 1, 360),
ItemList.Casing_Pipe_Titanium.get(64))
- .fluidInputs(
- FluidRegistry.getFluidStack("molten.titanium", 16416),
+ .fluidInputs(FluidRegistry.getFluidStack("molten.titanium", 16416),
FluidRegistry.getFluidStack("lubricant", 16000),
FluidRegistry.getFluidStack("ic2uumatter", 4000))
.eut(TierEU.RECIPE_LuV)
@@ -62,8 +60,7 @@ public void addBoxRecipe() {
public void addMachineBlockRecipe() {
GT_Values.RA.stdBuilder()
.itemOutputs(new ItemStack(BlockRegister.SpaceExtend, 32, 0))
- .itemInputs(
- ItemList.Casing_StableTitanium.get(64),
+ .itemInputs(ItemList.Casing_StableTitanium.get(64),
GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 2, 32),
ItemList.Electric_Motor_LuV.get(16),
ItemList.Electric_Piston_LuV.get(16),
@@ -75,15 +72,13 @@ public void addMachineBlockRecipe() {
.metadata(RESEARCH_ITEM, new ItemStack(BlockRegister.SpaceExtend))
.metadata(RESEARCH_TIME, 24000)
.itemOutputs(new ItemStack(BlockRegister.SpaceCompress, 16, 0))
- .itemInputs(
- ItemList.Casing_StableTitanium.get(64),
+ .itemInputs(ItemList.Casing_StableTitanium.get(64),
ItemList.Casing_StableTitanium.get(64),
ItemList.Super_Tank_LV.get(1),
ItemList.Super_Chest_LV.get(1),
GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 4, 33),
GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "tile.TitaniumPlatedReinforcedStone", 64))
- .fluidInputs(
- FluidRegistry.getFluidStack("ic2coolant", 10000),
+ .fluidInputs(FluidRegistry.getFluidStack("ic2coolant", 10000),
FluidRegistry.getFluidStack("molten.indalloy140", 1440))
.eut(TierEU.RECIPE_LuV)
.duration(1600)
@@ -92,8 +87,7 @@ public void addMachineBlockRecipe() {
.metadata(RESEARCH_ITEM, new ItemStack(BlockRegister.SpaceCompress))
.metadata(RESEARCH_TIME, 48000)
.itemOutputs(new ItemStack(BlockRegister.SpaceConstraint, 2, 0))
- .itemInputs(
- ItemList.Casing_StableTitanium.get(64),
+ .itemInputs(ItemList.Casing_StableTitanium.get(64),
ItemList.Casing_StableTitanium.get(64),
ItemList.Casing_StableTitanium.get(64),
ItemList.Casing_StableTitanium.get(64),
@@ -101,14 +95,12 @@ public void addMachineBlockRecipe() {
GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 16, 34),
ItemList.Quantum_Tank_LV.get(1),
ItemList.Quantum_Chest_LV.get(1))
- .fluidInputs(
- FluidRegistry.getFluidStack("supercoolant", 100000),
+ .fluidInputs(FluidRegistry.getFluidStack("supercoolant", 100000),
FluidRegistry.getFluidStack("molten.indalloy140", 14400))
.eut(TierEU.RECIPE_UV)
.duration(6400)
.addTo(AssemblyLine);
- TT_recipeAdder.addResearchableAssemblylineRecipe(
- new ItemStack(BlockRegister.SpaceConstraint),
+ TT_recipeAdder.addResearchableAssemblylineRecipe(new ItemStack(BlockRegister.SpaceConstraint),
480000,
128,
2000000,
@@ -131,8 +123,7 @@ public void addMachineBlockRecipe() {
public void addRingRecipe() {
GT_Values.RA.stdBuilder()
.itemOutputs(new ItemStack(BlockRegister.BoxRing, 1, 0))
- .itemInputs(
- GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Titanium, 64),
+ .itemInputs(GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Titanium, 64),
GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Titanium, 64),
GT_OreDictUnificator.get(OrePrefixes.pipeMedium, Materials.Titanium, 64),
GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.Titanium, 64),
@@ -146,25 +137,22 @@ public void addRingRecipe() {
.metadata(RESEARCH_ITEM, new ItemStack(BlockRegister.BoxRing))
.metadata(RESEARCH_TIME, 48000)
.itemOutputs(new ItemStack(BlockRegister.BoxRing2, 1, 0))
- .itemInputs(
- GT_OreDictUnificator.get("ringLaurenium", 64),
+ .itemInputs(GT_OreDictUnificator.get("ringLaurenium", 64),
GT_OreDictUnificator.get("ringLaurenium", 64),
GT_OreDictUnificator.get("ringLaurenium", 64),
GT_OreDictUnificator.get("ringLaurenium", 64),
GT_OreDictUnificator.get("blockAdvancedNitinol", 16),
-// GT_ModHandler.getModItem(GTPlusPlus.ID, "particleIon", 64, 21),
-// GT_ModHandler.getModItem(GTPlusPlus.ID, "particleIon", 64, 21),
+ // GT_ModHandler.getModItem(GTPlusPlus.ID, "particleIon", 64, 21),
+ // GT_ModHandler.getModItem(GTPlusPlus.ID, "particleIon", 64, 21),
GT_ModHandler.getModItem(UniversalSingularities.ID, "universal.general.singularity", 64, 12),
ItemList.Field_Generator_UV.get(4),
ItemList.ZPM_Coil.get(48))
- .fluidInputs(
- FluidRegistry.getFluidStack("plasma.titanium", 16000),
+ .fluidInputs(FluidRegistry.getFluidStack("plasma.titanium", 16000),
FluidRegistry.getFluidStack("molten.advancednitinol", 14400))
.eut(TierEU.RECIPE_UV)
.duration(60000)
.addTo(AssemblyLine);
- TT_recipeAdder.addResearchableAssemblylineRecipe(
- new ItemStack(BlockRegister.BoxRing2),
+ TT_recipeAdder.addResearchableAssemblylineRecipe(new ItemStack(BlockRegister.BoxRing2),
48000000,
10240,
8000000,
@@ -196,21 +184,18 @@ public void addRingRecipe() {
public void addModuleRecipe() {
GT_Values.RA.stdBuilder()
.itemOutputs(new ItemStack(BlockRegister.BoxModule, 1, 0))
- .itemInputs(
- new ItemStack(BlockRegister.BoxRing, 1),
+ .itemInputs(new ItemStack(BlockRegister.BoxRing, 1),
ItemList.Machine_Multi_LargeChemicalReactor.get(64),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 811),
GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.Titanium, 16))
- .fluidInputs(
- FluidRegistry.getFluidStack("glue", 8000),
+ .fluidInputs(FluidRegistry.getFluidStack("glue", 8000),
FluidRegistry.getFluidStack("tetrafluoroethylene", 128000))
.eut(TierEU.RECIPE_LuV)
.duration(1200)
.addTo(multiblockChemicalReactorRecipes);
GT_Values.RA.stdBuilder()
.itemOutputs(new ItemStack(BlockRegister.BoxModule, 1, 1))
- .itemInputs(
- new ItemStack(BlockRegister.BoxRing, 1),
+ .itemInputs(new ItemStack(BlockRegister.BoxRing, 1),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 876),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 14101),
GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 64, 43),
@@ -221,12 +206,10 @@ public void addModuleRecipe() {
.addTo(assemblerRecipes);
GT_Values.RA.stdBuilder()
.itemOutputs(new ItemStack(BlockRegister.BoxModule, 1, 2))
- .itemInputs(
- new ItemStack(BlockRegister.BoxRing, 1),
+ .itemInputs(new ItemStack(BlockRegister.BoxRing, 1),
ItemList.OilCracker.get(64),
ItemList.Distillation_Tower.get(64))
- .fluidInputs(
- FluidRegistry.getFluidStack("glue", 32000),
+ .fluidInputs(FluidRegistry.getFluidStack("glue", 32000),
FluidRegistry.getFluidStack("highoctanegasoline", 128000))
.specialValue(5)
.eut(TierEU.RECIPE_LuV)
@@ -234,8 +217,7 @@ public void addModuleRecipe() {
.addTo(GTPPRecipeMaps.chemicalPlantRecipes);
GT_Values.RA.stdBuilder()
.itemOutputs(new ItemStack(BlockRegister.BoxModule, 1, 3))
- .itemInputs(
- new ItemStack(BlockRegister.BoxRing, 1),
+ .itemInputs(new ItemStack(BlockRegister.BoxRing, 1),
ItemList.Machine_Multi_Furnace.get(64),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 849),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 862),
@@ -252,8 +234,7 @@ public void addModuleRecipe() {
.metadata(RESEARCH_ITEM, GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 860))
.metadata(RESEARCH_TIME, 12000)
.itemOutputs(new ItemStack(BlockRegister.BoxModule, 1, 4))
- .itemInputs(
- new ItemStack(BlockRegister.BoxRing2, 2),
+ .itemInputs(new ItemStack(BlockRegister.BoxRing2, 2),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 860),
GT_ModHandler.getModItem(GregTech.ID, "gt.metaitem.01", 64, 32764),
GT_ModHandler.getModItem(OpenComputers.ID, "item", 9, 103),
@@ -269,8 +250,7 @@ public void addModuleRecipe() {
.metadata(RESEARCH_ITEM, GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 31077))
.metadata(RESEARCH_TIME, 12000)
.itemOutputs(new ItemStack(BlockRegister.BoxModule, 1, 5))
- .itemInputs(
- new ItemStack(BlockRegister.BoxRing2, 2),
+ .itemInputs(new ItemStack(BlockRegister.BoxRing2, 2),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 31077),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 31065),
GT_ModHandler.getModItem(Avaritia.ID, "Neutronium_Compressor", 4),
@@ -279,8 +259,7 @@ public void addModuleRecipe() {
GT_ModHandler.getModItem(GTPlusPlus.ID, "dummyResearch", 1),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockcasings9", 4, 1),
GT_ModHandler.getModItem(Chisel.ID, "netherStarChisel", 1))
- .fluidInputs(
- FluidRegistry.getFluidStack("refinedglue", 8000),
+ .fluidInputs(FluidRegistry.getFluidStack("refinedglue", 8000),
FluidRegistry.getFluidStack("ic2pahoehoelava", 128000),
FluidRegistry.getFluidStack("grade4purifiedwater", 128000))
.eut(TierEU.RECIPE_UV)
@@ -291,8 +270,7 @@ public void addModuleRecipe() {
.metadata(RESEARCH_TIME, 12000)
.itemOutputs(new ItemStack(BlockRegister.BoxModule, 1, 6))
- .itemInputs(
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 792),
+ .itemInputs(GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 792),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 992),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 859),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 797),
@@ -314,8 +292,7 @@ public void addModuleRecipe() {
.metadata(RESEARCH_TIME, 12000)
.itemOutputs(new ItemStack(BlockRegister.BoxModule, 1, 7))
- .itemInputs(
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 850),
+ .itemInputs(GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 850),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 796),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 790),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 840),
@@ -327,14 +304,16 @@ public void addModuleRecipe() {
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 10500),
GT_OreDictUnificator.get("dustCooledMonaziteRareEarthConcentrate", 64),
new ItemStack(BlockRegister.BoxRing2, 2))
- .fluidInputs(
- FluidRegistry.getFluidStack("refinedglue", 8000),
+ .fluidInputs(FluidRegistry.getFluidStack("refinedglue", 8000),
FluidRegistry.getFluidStack("grade4purifiedwater", 128000))
.eut(TierEU.RECIPE_UV)
.duration(1200)
.addTo(AssemblyLine);
- TT_recipeAdder.addResearchableAssemblylineRecipe(
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 12730),
+ TT_recipeAdder.addResearchableAssemblylineRecipe(GT_ModHandler.getModItem(
+ GregTech.ID,
+ "gt.blockmachines",
+ 1,
+ 12730),
25600,
64,
8000000,
@@ -351,8 +330,11 @@ public void addModuleRecipe() {
new ItemStack(BlockRegister.BoxModule, 1, 8),
2000,
(int) TierEU.RECIPE_UEV);
- TT_recipeAdder.addResearchableAssemblylineRecipe(
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 17001),
+ TT_recipeAdder.addResearchableAssemblylineRecipe(GT_ModHandler.getModItem(
+ GregTech.ID,
+ "gt.blockmachines",
+ 1,
+ 17001),
102400,
256,
8000000,
@@ -372,8 +354,11 @@ public void addModuleRecipe() {
new ItemStack(BlockRegister.BoxModule, 1, 9),
2000,
(int) TierEU.RECIPE_UEV);
- TT_recipeAdder.addResearchableAssemblylineRecipe(
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 31150),
+ TT_recipeAdder.addResearchableAssemblylineRecipe(GT_ModHandler.getModItem(
+ GregTech.ID,
+ "gt.blockmachines",
+ 1,
+ 31150),
51200,
128,
8000000,
@@ -390,8 +375,11 @@ public void addModuleRecipe() {
new ItemStack(BlockRegister.BoxModule, 1, 10),
2000,
(int) TierEU.RECIPE_UEV);
- TT_recipeAdder.addResearchableAssemblylineRecipe(
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 15472),
+ TT_recipeAdder.addResearchableAssemblylineRecipe(GT_ModHandler.getModItem(
+ GregTech.ID,
+ "gt.blockmachines",
+ 1,
+ 15472),
100000,
100,
10000000,
@@ -410,8 +398,11 @@ public void addModuleRecipe() {
new ItemStack(BlockRegister.BoxModule, 1, 12),
2000,
(int) TierEU.RECIPE_UEV);
- TT_recipeAdder.addResearchableAssemblylineRecipe(
- GT_ModHandler.getModItem(AppliedEnergistics2.ID, "tile.BlockAdvancedCraftingUnit", 1, 3),
+ TT_recipeAdder.addResearchableAssemblylineRecipe(GT_ModHandler.getModItem(
+ AppliedEnergistics2.ID,
+ "tile.BlockAdvancedCraftingUnit",
+ 1,
+ 3),
(int) TierEU.RECIPE_UEV,
512,
(int) TierEU.RECIPE_UIV,
@@ -438,15 +429,13 @@ public void addUpgradeModuleRecipe() {
.metadata(RESEARCH_TIME, 12000)
.itemOutputs(new ItemStack(BlockRegister.BoxModuleUpgrad, 1, 0))
- .itemInputs(
- new ItemStack(BlockRegister.BoxRing, 8),
+ .itemInputs(new ItemStack(BlockRegister.BoxRing, 8),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 31072),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 31050),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 31051),
GT_ModHandler.getModItem(GTPlusPlus.ID, "miscutils.blockcasings", 48, 8),
GT_ModHandler.getModItem(GTPlusPlus.ID, "gtplusplus.blockspecialcasings.1", 56, 13))
- .fluidInputs(
- FluidRegistry.getFluidStack("refinedglue", 8000),
+ .fluidInputs(FluidRegistry.getFluidStack("refinedglue", 8000),
FluidRegistry.getFluidStack("ic2uumatter", 128000))
.eut(TierEU.RECIPE_UV)
.duration(1200)
@@ -456,8 +445,7 @@ public void addUpgradeModuleRecipe() {
.metadata(RESEARCH_TIME, 12000)
.itemOutputs(new ItemStack(BlockRegister.BoxModuleUpgrad, 1, 1))
- .itemInputs(
- new ItemStack(BlockRegister.BoxRing, 8),
+ .itemInputs(new ItemStack(BlockRegister.BoxRing, 8),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 32018),
GT_ModHandler.getModItem(GoodGenerator.ID, "preciseUnitCasing", 64, 2),
GT_ModHandler.getModItem(Avaritia.ID, "Dire_Crafting", 64),
@@ -465,8 +453,7 @@ public void addUpgradeModuleRecipe() {
GT_ModHandler.getModItem(GoodGenerator.ID, "huiCircuit", 32, 2),
GT_ModHandler.getModItem(GoodGenerator.ID, "huiCircuit", 16, 3),
GT_ModHandler.getModItem(GoodGenerator.ID, "huiCircuit", 8, 4))
- .fluidInputs(
- FluidRegistry.getFluidStack("refinedglue", 8000),
+ .fluidInputs(FluidRegistry.getFluidStack("refinedglue", 8000),
FluidRegistry.getFluidStack("naquadah based liquid fuel mkii (depleted)", 128000))
.eut(TierEU.RECIPE_UHV)
.duration(1200)
@@ -476,14 +463,12 @@ public void addUpgradeModuleRecipe() {
.metadata(RESEARCH_TIME, 12000)
.itemOutputs(new ItemStack(BlockRegister.BoxModuleUpgrad, 1, 2))
- .itemInputs(
- new ItemStack(BlockRegister.BoxRing, 8),
+ .itemInputs(new ItemStack(BlockRegister.BoxRing, 8),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 998),
GT_ModHandler.getModItem(GTPlusPlus.ID, "gtplusplus.blockspecialcasings.2", 64, 3),
GT_ModHandler.getModItem(GTPlusPlus.ID, "gtplusplus.blocktieredcasings.1", 16, 9),
GT_ModHandler.getModItem(GalacticraftCore.ID, "item.buggy", 1))
- .fluidInputs(
- FluidRegistry.getFluidStack("refinedglue", 8000),
+ .fluidInputs(FluidRegistry.getFluidStack("refinedglue", 8000),
FluidRegistry.getFluidStack("fluid.rocketfuelmixa", 128000))
.eut(TierEU.RECIPE_UV)
.duration(1200)
@@ -493,20 +478,17 @@ public void addUpgradeModuleRecipe() {
.metadata(RESEARCH_TIME, 12000)
.itemOutputs(new ItemStack(BlockRegister.BoxModuleUpgrad, 1, 3))
- .itemInputs(
- new ItemStack(BlockRegister.BoxRing, 8),
+ .itemInputs(new ItemStack(BlockRegister.BoxRing, 8),
GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 828),
GT_ModHandler.getModItem(GTPlusPlus.ID, "gtplusplus.blockcasings.2", 32, 9),
GT_ModHandler.getModItem(GTPlusPlus.ID, "MU-metaitem.01", 4, 32105),
GT_ModHandler.getModItem(GTPlusPlus.ID, "itemDustRadioactiveMineralMix", 1))
- .fluidInputs(
- FluidRegistry.getFluidStack("refinedglue", 8000),
+ .fluidInputs(FluidRegistry.getFluidStack("refinedglue", 8000),
FluidRegistry.getFluidStack("plasma.hydrogen", 12800))
.eut(TierEU.RECIPE_UV)
.duration(1200)
.addTo(AssemblyLine);
- TT_recipeAdder.addResearchableAssemblylineRecipe(
- new ItemStack(BlockRegister.BoxModule, 1, 4),
+ TT_recipeAdder.addResearchableAssemblylineRecipe(new ItemStack(BlockRegister.BoxModule, 1, 4),
256000,
512,
8000000,
@@ -530,8 +512,7 @@ public void addUpgradeModuleRecipe() {
new ItemStack(BlockRegister.BoxModuleUpgrad, 1, 4),
2000,
(int) TierEU.RECIPE_UIV);
- TT_recipeAdder.addResearchableAssemblylineRecipe(
- new ItemStack(BlockRegister.BoxModule, 1, 5),
+ TT_recipeAdder.addResearchableAssemblylineRecipe(new ItemStack(BlockRegister.BoxModule, 1, 5),
128000,
256,
8000000,
@@ -551,8 +532,7 @@ public void addUpgradeModuleRecipe() {
new ItemStack(BlockRegister.BoxModuleUpgrad, 1, 5),
2000,
(int) TierEU.RECIPE_UEV);
- TT_recipeAdder.addResearchableAssemblylineRecipe(
- new ItemStack(BlockRegister.BoxModule, 1, 6),
+ TT_recipeAdder.addResearchableAssemblylineRecipe(new ItemStack(BlockRegister.BoxModule, 1, 6),
64000,
128,
8000000,
@@ -569,8 +549,7 @@ public void addUpgradeModuleRecipe() {
new ItemStack(BlockRegister.BoxModuleUpgrad, 1, 6),
2000,
(int) TierEU.RECIPE_UEV);
- TT_recipeAdder.addResearchableAssemblylineRecipe(
- new ItemStack(BlockRegister.BoxModule, 1, 7),
+ TT_recipeAdder.addResearchableAssemblylineRecipe(new ItemStack(BlockRegister.BoxModule, 1, 7),
10240,
16,
2000000,
@@ -588,8 +567,7 @@ public void addUpgradeModuleRecipe() {
new ItemStack(BlockRegister.BoxModuleUpgrad, 1, 7),
2000,
(int) TierEU.RECIPE_UHV);
- TT_recipeAdder.addResearchableAssemblylineRecipe(
- new ItemStack(BlockRegister.BoxModule, 1, 8),
+ TT_recipeAdder.addResearchableAssemblylineRecipe(new ItemStack(BlockRegister.BoxModule, 1, 8),
81920000,
32768,
(int) TierEU.RECIPE_UMV,
@@ -612,8 +590,7 @@ public void addUpgradeModuleRecipe() {
new ItemStack(BlockRegister.BoxModuleUpgrad, 1, 8),
2000,
(int) TierEU.RECIPE_UXV);
- TT_recipeAdder.addResearchableAssemblylineRecipe(
- new ItemStack(BlockRegister.BoxModule, 1, 9),
+ TT_recipeAdder.addResearchableAssemblylineRecipe(new ItemStack(BlockRegister.BoxModule, 1, 9),
10240000,
6144,
(int) TierEU.RECIPE_UIV,
@@ -636,8 +613,7 @@ public void addUpgradeModuleRecipe() {
new ItemStack(BlockRegister.BoxModuleUpgrad, 1, 9),
2000,
(int) TierEU.RECIPE_UIV);
- TT_recipeAdder.addResearchableAssemblylineRecipe(
- new ItemStack(BlockRegister.BoxModule, 1, 10),
+ TT_recipeAdder.addResearchableAssemblylineRecipe(new ItemStack(BlockRegister.BoxModule, 1, 10),
20480000,
10240,
(int) TierEU.RECIPE_UMV,
@@ -661,8 +637,7 @@ public void addUpgradeModuleRecipe() {
2000,
(int) TierEU.RECIPE_UXV);
CraftingManager.getInstance()
- .addRecipe(
- new ItemStack(BlockRegister.BoxModuleUpgrad, 1, 12),
+ .addRecipe(new ItemStack(BlockRegister.BoxModuleUpgrad, 1, 12),
"ABA",
"FCF",
"DED",
@@ -678,8 +653,7 @@ public void addUpgradeModuleRecipe() {
new ItemStack(BlockRegister.BoxModule, 1, 10),
'D',
GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.HeavyDutyRocketEngineTier4", 1));
- TT_recipeAdder.addResearchableAssemblylineRecipe(
- new ItemStack(BlockRegister.BoxModule, 1, 13),
+ TT_recipeAdder.addResearchableAssemblylineRecipe(new ItemStack(BlockRegister.BoxModule, 1, 13),
(int) TierEU.UXV,
32767,
(int) TierEU.UXV,
@@ -726,7 +700,8 @@ public void addUpgradeModuleRecipe() {
* GT_OreDictUnificator.get("ingotSilver", 1)
* },
* new FluidStack[]{
- * FluidRegistry.getFluidStack("molten.magnetohydrodynamicallyconstrainedstarmatter", 2000000000),
+ * FluidRegistry.getFluidStack(
+ * "molten.magnetohydrodynamicallyconstrainedstarmatter", 2000000000),
* FluidRegistry.getFluidStack("molten.shirabon", 2000000000),
* FluidRegistry.getFluidStack("molten.titanium", 2000000000),
* FluidRegistry.getFluidStack("molten.silver", 2000000000)},
From f78dfc1d227e86cadf35e2b5dfa7704e58fb606e Mon Sep 17 00:00:00 2001
From: luomolhx <2932965369@qq.com>
Date: Sat, 16 Dec 2023 11:26:55 +0800
Subject: [PATCH 08/12] test format
---
gradle.properties | 2 +-
.../silvermoon/boxplusplus/api/IBoxable.java | 6 +-
.../boxplusplus/api/boxRegister.java | 2 +-
.../silvermoon/boxplusplus/boxplusplus.java | 3 +-
.../boxplusplus/client/BoxNEIHandler.java | 52 +-
.../boxplusplus/client/ClientProxy.java | 6 +-
.../boxplusplus/common/BoxModule.java | 45 +-
.../common/block/BlockBoxModuleCore.java | 5 +-
.../common/items/IB_BoxModule.java | 11 +-
.../boxplusplus/common/items/tierDrone.java | 6 +-
.../common/loader/BlockRegister.java | 30 +-
.../common/loader/RecipeLoader.java | 15 +-
.../common/loader/TileEntitiesLoader.java | 6 +-
.../common/render/RenderBoxRing.java | 5 +-
.../common/render/RenderDrone.java | 5 +-
.../common/tileentities/GTMachineBox.java | 3191 ++++++++---------
.../GTMachineDroneMaintainingCentre.java | 31 +-
.../GTTileEntityDroneMaintananceModule.java | 19 +-
.../boxplusplus/util/BoxRecipe.java | 21 +-
.../boxplusplus/util/BoxRoutings.java | 221 +-
.../boxplusplus/util/FluidContainer.java | 8 +-
.../boxplusplus/util/ItemContainer.java | 14 +-
.../util/ResultModuleRequirement.java | 5 +-
.../com/silvermoon/boxplusplus/util/Util.java | 25 +-
24 files changed, 1812 insertions(+), 1922 deletions(-)
diff --git a/gradle.properties b/gradle.properties
index 44b1ded..be6388f 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -128,7 +128,7 @@ curseForgeRelations =
# Optional parameter to prevent the source code from being published
# noPublishedSources =
# Uncomment this to disable spotless checks
- disableSpotless=true
+# disableSpotless=true
# This should only be uncommented to keep it easier to sync with upstream/other forks.
# That is, if there is no other active fork/upstream, NEVER change this.
disableCheckstyle=true
diff --git a/src/main/java/com/silvermoon/boxplusplus/api/IBoxable.java b/src/main/java/com/silvermoon/boxplusplus/api/IBoxable.java
index 7a81232..cfcf8de 100644
--- a/src/main/java/com/silvermoon/boxplusplus/api/IBoxable.java
+++ b/src/main/java/com/silvermoon/boxplusplus/api/IBoxable.java
@@ -4,9 +4,9 @@
import gregtech.api.recipe.RecipeMap;
/**
- * Implements this on GT_MetaTileEntity_MultiBlockBase to allow your machine encapsulating in Box System.
- * If you don't have a standard getRecipeMap(), override getRealRecipeMap().
- * Do remember to call boxRegister.registerMachineToBox() on postInit!
+ * Implements this on GT_MetaTileEntity_MultiBlockBase to allow your machine encapsulating in Box System. If you don't
+ * have a standard getRecipeMap(), override getRealRecipeMap(). Do remember to call boxRegister.registerMachineToBox()
+ * on postInit!
*
* 为GT_MetaTileEntity_MultiBlockBase实现此接口,将允许Box封装你的机器。如果你的机器有多种模式,重写getRealRecipeMap()来返回你期望封装的那个。
* 记得在postInit调用一次boxRegister.registerMachineToBox()!
diff --git a/src/main/java/com/silvermoon/boxplusplus/api/boxRegister.java b/src/main/java/com/silvermoon/boxplusplus/api/boxRegister.java
index 8a16af8..6b94251 100644
--- a/src/main/java/com/silvermoon/boxplusplus/api/boxRegister.java
+++ b/src/main/java/com/silvermoon/boxplusplus/api/boxRegister.java
@@ -18,7 +18,7 @@ public class boxRegister {
* Use this to register your boxable machine. **Should be called on CommonProxy.postInit().**
*
* 在CommonProxy.postInit()阶段调用本方法。确保传入的GT_MetaTileEntity_MultiBlockBase已经实现了IBoxable。
- *
+ *
* @param machineList You can put multi-GTMultiMachines in this parameter.
*
* 可以接受多个参数
diff --git a/src/main/java/com/silvermoon/boxplusplus/boxplusplus.java b/src/main/java/com/silvermoon/boxplusplus/boxplusplus.java
index f548d84..684736f 100644
--- a/src/main/java/com/silvermoon/boxplusplus/boxplusplus.java
+++ b/src/main/java/com/silvermoon/boxplusplus/boxplusplus.java
@@ -20,7 +20,8 @@
modid = Tags.MODID,
version = Tags.VERSION,
name = Tags.MODNAME,
- dependencies = "required-after:IC2;" + "required-after:structurelib;"
+ dependencies = "required-after:IC2;"
+ + "required-after:structurelib;"
+ "required-after:modularui;"
+ "after:GalacticraftCore;"
+ "required-after:bartworks;"
diff --git a/src/main/java/com/silvermoon/boxplusplus/client/BoxNEIHandler.java b/src/main/java/com/silvermoon/boxplusplus/client/BoxNEIHandler.java
index 5b198b6..02b69af 100644
--- a/src/main/java/com/silvermoon/boxplusplus/client/BoxNEIHandler.java
+++ b/src/main/java/com/silvermoon/boxplusplus/client/BoxNEIHandler.java
@@ -30,9 +30,8 @@ public class BoxNEIHandler {
@SubscribeEvent
public void onDrawScreen(GuiScreenEvent.DrawScreenEvent.Post event) {
- if (event.gui instanceof GuiRecipe gui && gui.firstGui instanceof ModularGui mui
- && mui.getContext()
- .isWindowOpen(10)) {
+ if (event.gui instanceof GuiRecipe gui && gui.firstGui instanceof ModularGui mui && mui.getContext()
+ .isWindowOpen(10)) {
EntityPlayer player = ((ModularGui) gui.firstGui).getContext()
.getPlayer();
GTMachineBox box = Util.boxMap.get(player);
@@ -47,36 +46,34 @@ public void onDrawScreen(GuiScreenEvent.DrawScreenEvent.Post event) {
getRecipesPerPage = GuiRecipe.class.getDeclaredMethod("getRecipesPerPage");
getRecipesPerPage.setAccessible(true);
recipesPerPage = (int) getRecipesPerPage.invoke(gui);
- } catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException ignored) {}
+ } catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException ignored) {
+ }
buttons = new GuiButton[recipesPerPage];
- int OVERLAY_BUTTON_ID_START = ObfuscationReflectionHelper
- .getPrivateValue(GuiRecipe.class, gui, "OVERLAY_BUTTON_ID_START");
+ int OVERLAY_BUTTON_ID_START = ObfuscationReflectionHelper.getPrivateValue(
+ GuiRecipe.class,
+ gui,
+ "OVERLAY_BUTTON_ID_START");
int guiTop = ObfuscationReflectionHelper.getPrivateValue(GuiContainer.class, gui, "field_147009_r");
int buttonWidth = ObfuscationReflectionHelper.getPrivateValue(GuiRecipe.class, gui, "buttonWidth");
int buttonHeight = ObfuscationReflectionHelper.getPrivateValue(GuiRecipe.class, gui, "buttonHeight");
HandlerInfo handlerInfo = ObfuscationReflectionHelper.getPrivateValue(GuiRecipe.class, gui, "handlerInfo");
for (int i = 0; i < recipesPerPage; i++) {
- buttons[i] = new GuiNEIButton(
- OVERLAY_BUTTON_ID_START + i,
+ buttons[i] = new GuiNEIButton(OVERLAY_BUTTON_ID_START + i,
(gui.width / 2) + 65,
guiTop + 16 + (handlerInfo.getHeight() * (i + 1)) - 2,
buttonWidth,
buttonHeight,
"B");
}
- int counts = Math.min(
- gui.getHandler()
- .numRecipes() - (gui.page * recipesPerPage),
- recipesPerPage);
+ int counts = Math.min(gui.getHandler()
+ .numRecipes() - (gui.page * recipesPerPage), recipesPerPage);
for (int i = 0; i < buttons.length; i++) {
if (i >= counts) {
buttons[i].visible = false;
} else {
- buttons[i].visible = RecipeInfo.hasOverlayHandler(
- GuiPatternTermEx.class,
+ buttons[i].visible = RecipeInfo.hasOverlayHandler(GuiPatternTermEx.class,
gui.getHandler()
- .getOverlayIdentifier())
- && gui.getHandler() instanceof GT_NEI_DefaultHandler;
+ .getOverlayIdentifier()) && gui.getHandler() instanceof GT_NEI_DefaultHandler;
}
}
Collections.addAll(buttonList, buttons);
@@ -85,22 +82,27 @@ public void onDrawScreen(GuiScreenEvent.DrawScreenEvent.Post event) {
@SubscribeEvent
public void onActionPerformedEventPre(GuiScreenEvent.ActionPerformedEvent.Pre event) {
- if (event.gui instanceof GuiRecipe gui && gui.firstGui instanceof ModularGui mui
- && mui.getContext()
- .isWindowOpen(10)) {
+ if (event.gui instanceof GuiRecipe gui && gui.firstGui instanceof ModularGui mui && mui.getContext()
+ .isWindowOpen(10)) {
EntityPlayer player = ((ModularGui) gui.firstGui).getContext()
.getPlayer();
- List overlayButtons = new ArrayList<>(
- Arrays.asList(ObfuscationReflectionHelper.getPrivateValue(GuiRecipe.class, gui, "overlayButtons")));
- int OVERLAY_BUTTON_ID_START = ObfuscationReflectionHelper
- .getPrivateValue(GuiRecipe.class, gui, "OVERLAY_BUTTON_ID_START");
+ List overlayButtons = new ArrayList<>(Arrays.asList(ObfuscationReflectionHelper.getPrivateValue(
+ GuiRecipe.class,
+ gui,
+ "overlayButtons")));
+ int OVERLAY_BUTTON_ID_START = ObfuscationReflectionHelper.getPrivateValue(
+ GuiRecipe.class,
+ gui,
+ "OVERLAY_BUTTON_ID_START");
if (event.button.id >= OVERLAY_BUTTON_ID_START
&& event.button.id < OVERLAY_BUTTON_ID_START + overlayButtons.size()) {
IRecipeHandler handler = (IRecipeHandler) gui.currenthandlers.get(gui.recipetype);
if (recipesPerPage >= 0 && handler != null) {
int recipe = gui.page * recipesPerPage + event.button.id - OVERLAY_BUTTON_ID_START;
- BoxRoutings
- .makeRouting((GT_NEI_DefaultHandler) gui.currenthandlers.get(gui.recipetype), recipe, player);
+ BoxRoutings.makeRouting(
+ (GT_NEI_DefaultHandler) gui.currenthandlers.get(gui.recipetype),
+ recipe,
+ player);
event.setCanceled(true);
}
}
diff --git a/src/main/java/com/silvermoon/boxplusplus/client/ClientProxy.java b/src/main/java/com/silvermoon/boxplusplus/client/ClientProxy.java
index 4a24aaa..3c2e9c4 100644
--- a/src/main/java/com/silvermoon/boxplusplus/client/ClientProxy.java
+++ b/src/main/java/com/silvermoon/boxplusplus/client/ClientProxy.java
@@ -18,10 +18,8 @@ public class ClientProxy extends CommonProxy {
public void init(FMLInitializationEvent e) {
super.init(e);
ClientRegistry.bindTileEntitySpecialRenderer(TEBoxRing.class, new RenderBoxRing());
- ClientRegistry.bindTileEntitySpecialRenderer(
- (Class extends TileEntity>) TileEntitiesLoader.DroneMaintainingCentre.getBaseMetaTileEntity()
- .getClass(),
- new RenderDrone());
+ ClientRegistry.bindTileEntitySpecialRenderer((Class extends TileEntity>) TileEntitiesLoader.DroneMaintainingCentre.getBaseMetaTileEntity()
+ .getClass(), new RenderDrone());
MinecraftForge.EVENT_BUS.register(BoxNEIHandler.instance);
}
}
diff --git a/src/main/java/com/silvermoon/boxplusplus/common/BoxModule.java b/src/main/java/com/silvermoon/boxplusplus/common/BoxModule.java
index ce6d10e..120b06c 100644
--- a/src/main/java/com/silvermoon/boxplusplus/common/BoxModule.java
+++ b/src/main/java/com/silvermoon/boxplusplus/common/BoxModule.java
@@ -17,20 +17,17 @@ public class BoxModule {
public static BoxModule AMD_Wafer_Fabrication_Plant = new BoxModule("AMD_Wafer_Fabrication_Plant", 17, 6, -2);
public static BoxModule Liquid_Level_Regulator = new BoxModule("Liquid_Level_Regulator", 1, 6, -18);
public static BoxModule Solid_State_Reshaper = new BoxModule("Solid_State_Reshaper", -15, 6, -2);
- public static BoxModule Residential_Flush_Toilet_with_Built_in_Pump = new BoxModule(
- "Residential_Flush_Toilet_with_Built_in_Pump",
+ public static BoxModule Residential_Flush_Toilet_with_Built_in_Pump = new BoxModule("Residential_Flush_Toilet_with_Built_in_Pump",
1,
6,
14);
- public static BoxModule Extreme_Temperature_Difference_Generation_Tower = new BoxModule(
- "Extreme_Temperature_Difference_Generation_Tower",
+ public static BoxModule Extreme_Temperature_Difference_Generation_Tower = new BoxModule("Extreme_Temperature_Difference_Generation_Tower",
23,
6,
-1);
public static BoxModule Superstructure_Assembly_Plant = new BoxModule("Superstructure_Assembly_Plant", 2, 6, -23);
public static BoxModule Phase_Parallel_Matrix = new BoxModule("Phase_Parallel_Matrix", -21, 6, -1);
- public static BoxModule Arrayed_and_Maneuverable_Hyperbeam_Receiver_Redirector = new BoxModule(
- "Arrayed_and_Maneuverable_Hyperbeam_Receiver_Redirector",
+ public static BoxModule Arrayed_and_Maneuverable_Hyperbeam_Receiver_Redirector = new BoxModule("Arrayed_and_Maneuverable_Hyperbeam_Receiver_Redirector",
2,
7,
-1);
@@ -113,19 +110,19 @@ public static int[] transMachinesToModule(BoxRoutings routing) {
.substring(17)) {
case "industrialmixer.controller.tier.single", "multimachine.chemicalreactor" -> new int[] { 0, 0 };
case "gtplusplus.autocrafter.multi", "mxrandomlargemolecularassembler" -> new int[] { 1, 0 };
- case "multimachine.cracker", "megadistillationtower", "multimachine.adv.distillationtower", "megaoilcracker", "multimachine.distillationtower" -> new int[] {
- 2, 0 };
- case "multimachine.multifurnace", "industrialthermalcentrifuge.controller.tier.single", "industrialarcfurnace.controller.tier.single", "industrialalloysmelter.controller.tier.single" -> new int[] {
- 3, 0 };
+ case "multimachine.cracker", "megadistillationtower", "multimachine.adv.distillationtower", "megaoilcracker", "multimachine.distillationtower" ->
+ new int[] { 2, 0 };
+ case "multimachine.multifurnace", "industrialthermalcentrifuge.controller.tier.single", "industrialarcfurnace.controller.tier.single", "industrialalloysmelter.controller.tier.single" ->
+ new int[] { 3, 0 };
case "industrialmultimachine.controller.tier.single" -> new int[] { 4, 0 };
- case "industrialrockcrusher.controller.tier.single", "industrialfluidheater.controller.tier.single", "ompressor" -> new int[] {
- 5, 0 };
- case "industrialcuttingmachine.controller.tier.01", "industrialmacerator.controller.tier.single", "industrialbender.controller.tier.single", "industrialextruder.controller.tier.single", "industrialwiremill.controller.tier.single", "industrialhammer.controller.tier.single" -> new int[] {
- 6, 0 };
- case "industrialwashplant.controller.tier.single", "industrialsifter.controller.tier.single", "industrialcentrifuge.controller.tier.single", "industrialelectrolyzer.controller.tier.single", "digester", "basicmachine.electromagneticseparator.tier.06" -> new int[] {
- 7, 0 };
- case "industrialcokeoven.controller.tier.single", "multimachine.pyro", "multimachine.vacuumfreezer", "multimachine.adv.industrialfreezer" -> new int[] {
- 8, 0 };
+ case "industrialrockcrusher.controller.tier.single", "industrialfluidheater.controller.tier.single", "ompressor" ->
+ new int[] { 5, 0 };
+ case "industrialcuttingmachine.controller.tier.01", "industrialmacerator.controller.tier.single", "industrialbender.controller.tier.single", "industrialextruder.controller.tier.single", "industrialwiremill.controller.tier.single", "industrialhammer.controller.tier.single" ->
+ new int[] { 6, 0 };
+ case "industrialwashplant.controller.tier.single", "industrialsifter.controller.tier.single", "industrialcentrifuge.controller.tier.single", "industrialelectrolyzer.controller.tier.single", "digester", "basicmachine.electromagneticseparator.tier.06" ->
+ new int[] { 7, 0 };
+ case "industrialcokeoven.controller.tier.single", "multimachine.pyro", "multimachine.vacuumfreezer", "multimachine.adv.industrialfreezer" ->
+ new int[] { 8, 0 };
case "multimachine.assemblyline" -> new int[] { 9, 0 };
case "industrialsalloyamelter.controller.tier.single" -> new int[] { 10, 0 };
case "moleculartransformer.controller.tier.single", "gtpp.multimachine.replicator" -> new int[] { 0, 1 };
@@ -135,12 +132,12 @@ public static int[] transMachinesToModule(BoxRoutings routing) {
case "multimachine.pcbfactory", "circuitassemblyline" -> new int[] { 4, 1 };
case "largefusioncomputer5" -> new int[] { 5, 1 };
case "dissolution_tank", "bw.biovat" -> new int[] { 7, 1 };
- case "electricimplosioncompressor", "componentassemblyline", "projectmoduleassemblert3" -> new int[] { 9,
- 1 };
- case "multimachine.plasmaforge", "multimachine.transcendentplasmamixer", "multimachine.nanoforge" -> new int[] {
- 8, 1 };
- case "quantumforcetransformer.controller.tier.single", "frf", "industrialmassfab.controller.tier.single" -> new int[] {
- 10, 1 };
+ case "electricimplosioncompressor", "componentassemblyline", "projectmoduleassemblert3" ->
+ new int[] { 9, 1 };
+ case "multimachine.plasmaforge", "multimachine.transcendentplasmamixer", "multimachine.nanoforge" ->
+ new int[] { 8, 1 };
+ case "quantumforcetransformer.controller.tier.single", "frf", "industrialmassfab.controller.tier.single" ->
+ new int[] { 10, 1 };
default -> {
for (GT_MetaTileEntity_MultiBlockBase machine : customerMachineList) {
if (GT_Utility.areStacksEqual(machine.getStackForm(1), routing.RoutingMachine, true)) {
diff --git a/src/main/java/com/silvermoon/boxplusplus/common/block/BlockBoxModuleCore.java b/src/main/java/com/silvermoon/boxplusplus/common/block/BlockBoxModuleCore.java
index 6de8a62..1e937cb 100644
--- a/src/main/java/com/silvermoon/boxplusplus/common/block/BlockBoxModuleCore.java
+++ b/src/main/java/com/silvermoon/boxplusplus/common/block/BlockBoxModuleCore.java
@@ -44,8 +44,9 @@ public void registerBlock() {
@Override
public void registerBlockIcons(IIconRegister iconRegister) {
for (int i = 0; i < 15; i++) {
- ModuleIcon[i] = iconRegister
- .registerIcon(Tags.MODID + (!isUpdate ? ":modules/BoxModule" : ":modules/BoxModulePlus") + i);
+ ModuleIcon[i] = iconRegister.registerIcon(Tags.MODID + (!isUpdate
+ ? ":modules/BoxModule"
+ : ":modules/BoxModulePlus") + i);
}
}
diff --git a/src/main/java/com/silvermoon/boxplusplus/common/items/IB_BoxModule.java b/src/main/java/com/silvermoon/boxplusplus/common/items/IB_BoxModule.java
index 3ff83ef..7b0405c 100644
--- a/src/main/java/com/silvermoon/boxplusplus/common/items/IB_BoxModule.java
+++ b/src/main/java/com/silvermoon/boxplusplus/common/items/IB_BoxModule.java
@@ -33,13 +33,12 @@ public boolean getHasSubtypes() {
@Override
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean p_77624_4_) {
boolean update = ((BlockBoxModuleCore) field_150939_a).isUpdate;
- list.add(
- EnumChatFormatting.AQUA.toString() + EnumChatFormatting.BOLD
- + i18n("tile.boxplusplus.boxUI.module.context." + (stack.getItemDamage() + 1) + (update ? "f" : "a")));
+ list.add(EnumChatFormatting.AQUA.toString() + EnumChatFormatting.BOLD + i18n(
+ "tile.boxplusplus.boxUI.module.context." + (stack.getItemDamage() + 1) + (update ? "f" : "a")));
if (update) {
- list.add(
- EnumChatFormatting.GOLD + i18n("tile.boxplusplus.boxUI.module." + (stack.getItemDamage() + 1))
- + " (T2)");
+ list.add(EnumChatFormatting.GOLD
+ + i18n("tile.boxplusplus.boxUI.module." + (stack.getItemDamage() + 1))
+ + " (T2)");
}
list.add(i18n("tile.boxplusplus.boxUI.module.context." + (stack.getItemDamage() + 1) + (update ? "d" : "b")));
if (customUpdatedModuleList.containsKey(stack.getItemDamage())
diff --git a/src/main/java/com/silvermoon/boxplusplus/common/items/tierDrone.java b/src/main/java/com/silvermoon/boxplusplus/common/items/tierDrone.java
index 5d47e99..5a61859 100644
--- a/src/main/java/com/silvermoon/boxplusplus/common/items/tierDrone.java
+++ b/src/main/java/com/silvermoon/boxplusplus/common/items/tierDrone.java
@@ -63,8 +63,8 @@ public int getMetadata(int p_77647_1_) {
@Override
public void addInformation(ItemStack item, EntityPlayer player, List list, boolean b) {
- list.add(
- Util.i18n(
- ("tile.boxplusplus_maintainingDrone%.desc".replaceAll("%", String.valueOf(item.getItemDamage())))));
+ list.add(Util.i18n(("tile.boxplusplus_maintainingDrone%.desc".replaceAll(
+ "%",
+ String.valueOf(item.getItemDamage())))));
}
}
diff --git a/src/main/java/com/silvermoon/boxplusplus/common/loader/BlockRegister.java b/src/main/java/com/silvermoon/boxplusplus/common/loader/BlockRegister.java
index a679898..8c48c65 100644
--- a/src/main/java/com/silvermoon/boxplusplus/common/loader/BlockRegister.java
+++ b/src/main/java/com/silvermoon/boxplusplus/common/loader/BlockRegister.java
@@ -8,20 +8,26 @@
public class BlockRegister {
- public static BlockMachineBase SpaceExtend = new BlockMachineBase("boxplusplus_SpaceExtend", Material.iron, 0)
- .setHarvest("wrench", 3);
- public static BlockMachineBase SpaceConstraint = new BlockMachineBase(
- "boxplusplus_SpaceConstraint",
+ public static BlockMachineBase SpaceExtend = new BlockMachineBase(
+ "boxplusplus_SpaceExtend",
+ Material.iron,
+ 0).setHarvest("wrench", 3);
+ public static BlockMachineBase SpaceConstraint = new BlockMachineBase("boxplusplus_SpaceConstraint",
Material.iron,
2).setHarvest("wrench", 3);
- public static BlockMachineBase SpaceCompress = new BlockMachineBase("boxplusplus_SpaceCompress", Material.iron, 1)
- .setHarvest("wrench", 3);
- public static BlockMachineBase SpaceWall = new BlockMachineBase("boxplusplus_SpaceWall", Material.iron, 3)
- .setHarvest("wrench", 3);
- public static BlockBoxModuleCore BoxModule = new BlockBoxModuleCore("boxplusplus_boxmodule", Material.iron, false)
- .setHarvest("wrench", 5);
- public static BlockBoxModuleCore BoxModuleUpgrad = new BlockBoxModuleCore(
- "boxplusplus_boxmoduleplus",
+ public static BlockMachineBase SpaceCompress = new BlockMachineBase(
+ "boxplusplus_SpaceCompress",
+ Material.iron,
+ 1).setHarvest("wrench", 3);
+ public static BlockMachineBase SpaceWall = new BlockMachineBase(
+ "boxplusplus_SpaceWall",
+ Material.iron,
+ 3).setHarvest("wrench", 3);
+ public static BlockBoxModuleCore BoxModule = new BlockBoxModuleCore(
+ "boxplusplus_boxmodule",
+ Material.iron,
+ false).setHarvest("wrench", 5);
+ public static BlockBoxModuleCore BoxModuleUpgrad = new BlockBoxModuleCore("boxplusplus_boxmoduleplus",
Material.iron,
true).setHarvest("wrench", 5);
public static BlockBoxRing BoxRing = new BlockBoxRing(1);
diff --git a/src/main/java/com/silvermoon/boxplusplus/common/loader/RecipeLoader.java b/src/main/java/com/silvermoon/boxplusplus/common/loader/RecipeLoader.java
index 3ef4b01..f1f4294 100644
--- a/src/main/java/com/silvermoon/boxplusplus/common/loader/RecipeLoader.java
+++ b/src/main/java/com/silvermoon/boxplusplus/common/loader/RecipeLoader.java
@@ -309,8 +309,7 @@ public void addModuleRecipe() {
.eut(TierEU.RECIPE_UV)
.duration(1200)
.addTo(AssemblyLine);
- TT_recipeAdder.addResearchableAssemblylineRecipe(GT_ModHandler.getModItem(
- GregTech.ID,
+ TT_recipeAdder.addResearchableAssemblylineRecipe(GT_ModHandler.getModItem(GregTech.ID,
"gt.blockmachines",
1,
12730),
@@ -330,8 +329,7 @@ public void addModuleRecipe() {
new ItemStack(BlockRegister.BoxModule, 1, 8),
2000,
(int) TierEU.RECIPE_UEV);
- TT_recipeAdder.addResearchableAssemblylineRecipe(GT_ModHandler.getModItem(
- GregTech.ID,
+ TT_recipeAdder.addResearchableAssemblylineRecipe(GT_ModHandler.getModItem(GregTech.ID,
"gt.blockmachines",
1,
17001),
@@ -354,8 +352,7 @@ public void addModuleRecipe() {
new ItemStack(BlockRegister.BoxModule, 1, 9),
2000,
(int) TierEU.RECIPE_UEV);
- TT_recipeAdder.addResearchableAssemblylineRecipe(GT_ModHandler.getModItem(
- GregTech.ID,
+ TT_recipeAdder.addResearchableAssemblylineRecipe(GT_ModHandler.getModItem(GregTech.ID,
"gt.blockmachines",
1,
31150),
@@ -375,8 +372,7 @@ public void addModuleRecipe() {
new ItemStack(BlockRegister.BoxModule, 1, 10),
2000,
(int) TierEU.RECIPE_UEV);
- TT_recipeAdder.addResearchableAssemblylineRecipe(GT_ModHandler.getModItem(
- GregTech.ID,
+ TT_recipeAdder.addResearchableAssemblylineRecipe(GT_ModHandler.getModItem(GregTech.ID,
"gt.blockmachines",
1,
15472),
@@ -398,8 +394,7 @@ public void addModuleRecipe() {
new ItemStack(BlockRegister.BoxModule, 1, 12),
2000,
(int) TierEU.RECIPE_UEV);
- TT_recipeAdder.addResearchableAssemblylineRecipe(GT_ModHandler.getModItem(
- AppliedEnergistics2.ID,
+ TT_recipeAdder.addResearchableAssemblylineRecipe(GT_ModHandler.getModItem(AppliedEnergistics2.ID,
"tile.BlockAdvancedCraftingUnit",
1,
3),
diff --git a/src/main/java/com/silvermoon/boxplusplus/common/loader/TileEntitiesLoader.java b/src/main/java/com/silvermoon/boxplusplus/common/loader/TileEntitiesLoader.java
index 7cf86fa..28afe4a 100644
--- a/src/main/java/com/silvermoon/boxplusplus/common/loader/TileEntitiesLoader.java
+++ b/src/main/java/com/silvermoon/boxplusplus/common/loader/TileEntitiesLoader.java
@@ -17,12 +17,10 @@ public class TileEntitiesLoader {
public static void register() {
Box = new GTMachineBox(17001, "multimachine_Box", i18n("tile.boxplusplus.box"));
- DroneMaintainingCentre = new GTMachineDroneMaintainingCentre(
- 18001,
+ DroneMaintainingCentre = new GTMachineDroneMaintainingCentre(18001,
"multimachine_DroneMaintainingCentre",
i18n("tile.boxplusplus.DroneMaintainingCentre"));
- DroneMaintananceModule = new GTTileEntityDroneMaintananceModule(
- 18002,
+ DroneMaintananceModule = new GTTileEntityDroneMaintananceModule(18002,
"DroneMaintananceModule",
"无人机维护中心下行模块",
5);
diff --git a/src/main/java/com/silvermoon/boxplusplus/common/render/RenderBoxRing.java b/src/main/java/com/silvermoon/boxplusplus/common/render/RenderBoxRing.java
index 077018c..7349d72 100644
--- a/src/main/java/com/silvermoon/boxplusplus/common/render/RenderBoxRing.java
+++ b/src/main/java/com/silvermoon/boxplusplus/common/render/RenderBoxRing.java
@@ -19,8 +19,9 @@
public class RenderBoxRing extends TileEntitySpecialRenderer {
private static final ResourceLocation BoxRingTexture = new ResourceLocation(Tags.MODID, "textures/models/ring.png");
- private static final IModelCustom Ring = AdvancedModelLoader
- .loadModel(new ResourceLocation(Tags.MODID, "models/Ring.obj"));
+ private static final IModelCustom Ring = AdvancedModelLoader.loadModel(new ResourceLocation(
+ Tags.MODID,
+ "models/Ring.obj"));
public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float timeSinceLastTick) {
if (!(tile instanceof TEBoxRing ring)) return;
diff --git a/src/main/java/com/silvermoon/boxplusplus/common/render/RenderDrone.java b/src/main/java/com/silvermoon/boxplusplus/common/render/RenderDrone.java
index 975a4d7..1ff757f 100644
--- a/src/main/java/com/silvermoon/boxplusplus/common/render/RenderDrone.java
+++ b/src/main/java/com/silvermoon/boxplusplus/common/render/RenderDrone.java
@@ -20,8 +20,9 @@
public class RenderDrone extends TileEntitySpecialRenderer {
private static final ResourceLocation DroneTexture = new ResourceLocation(Tags.MODID, "textures/models/drone.png");
- private static final IModelCustom Drone = AdvancedModelLoader
- .loadModel(new ResourceLocation(Tags.MODID, "models/drone1.obj"));
+ private static final IModelCustom Drone = AdvancedModelLoader.loadModel(new ResourceLocation(
+ Tags.MODID,
+ "models/drone1.obj"));
public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float timeSinceLastTick) {
if (!(tile instanceof IGregTechTileEntity te
diff --git a/src/main/java/com/silvermoon/boxplusplus/common/tileentities/GTMachineBox.java b/src/main/java/com/silvermoon/boxplusplus/common/tileentities/GTMachineBox.java
index eab49b6..c39aef5 100644
--- a/src/main/java/com/silvermoon/boxplusplus/common/tileentities/GTMachineBox.java
+++ b/src/main/java/com/silvermoon/boxplusplus/common/tileentities/GTMachineBox.java
@@ -107,795 +107,791 @@ public class GTMachineBox extends GT_MetaTileEntity_ExtendedPowerMultiBlockBase<
// spotless off
static {
StructureDefinition.Builder A = IStructureDefinition.builder()
- .addShape(
- STRUCTURE_PIECE_MainFrames,
- transpose(
- new String[][] {
- { " ", " C ", " CCC ", " CCCCC ", " CCC ", " C ", " ", " ",
- " ", " ", " " },
- { " C ", " CCCCC ", " CC CC ", "CC CC", " CC CC ", " CCCCC ", " C ", " ",
- " ", " ", " " },
- { " CCC ", " CC CC ", "CC CC", "C C", "CC CC", " CC CC ", " CCC ", " ",
- " ", " ", " " },
- { " CC~CC ", "CC CC", "C C", "C D C", "C C", "CC CC", " CCCCC ", " C ",
- " C ", " C ", " C " },
- { " CCC ", " CC CC ", "CC CC", "C C", "CC CC", " CC CC ", " CCC ", " ",
- " ", " ", " " },
- { " C ", " CCCCC ", " CC CC ", "CC CC", " CC CC ", " CCCCC ", " C ", " ",
- " ", " ", " " },
- { " ", " C ", " CCC ", " CCCCC ", " CCC ", " C ", " ", " ",
- " ", " ", " " } }))
- .addShape(
- STRUCTURE_PIECE_FirstRing,
- transpose(
- new String[][] {
- { " E ", " ", " E ",
- " ", " ", " ",
- " ", " ", " ",
- " ", " ", "E E E E",
- " ", " ", " ",
- " ", " ", " ",
- " ", " ", " E ",
- " ", " E " },
- { " EEE ", " ", " EEE ",
- " ", " ", " ",
- " ", " ", " ",
- " ", "E E E E", "E E E E",
- "E E E E", " ", " ",
- " ", " ", " ",
- " ", " ", " EEE ",
- " ", " EEE " },
- { " EEEEE ", " EEEEEEEEEEE ", " EEE EEEEE EEE ",
- " EE E EE ", " EE E EE ", " EE EE ",
- " EE EE ", " EE EE ", " E E ",
- "EEE EEE", "EEE EEE", "EEEEE EEEEE",
- "EEE EEE", "EEE EEE", " E E ",
- " EE EE ", " EE EE ", " EE EE ",
- " EE E EE ", " EE E EE ", " EEE EEEEE EEE ",
- " EEEEEEEEEEE ", " EEEEE " },
- { " EEE EEE ", " E E ", " EEE EEE ",
- " E E ", " E E ", " ",
- " ", " ", "E E E E",
- "E E E E", "EEEEE EEEEE", " ",
- "EEEEE EEEEE", "E E E E", "E E E E",
- " ", " ", " ",
- " E E ", " E E ", " EEE EEE ",
- " E E ", " EEE EEE " },
- { " EEEEE ", " EEEEEEEEEEE ", " EEE EEEEE EEE ",
- " EE E EE ", " EE E EE ", " EE EE ",
- " EE EE ", " EE EE ", " E E ",
- "EEE EEE", "EEE EEE", "EEEEE EEEEE",
- "EEE EEE", "EEE EEE", " E E ",
- " EE EE ", " EE EE ", " EE EE ",
- " EE E EE ", " EE E EE ", " EEE EEEEE EEE ",
- " EEEEEEEEEEE ", " EEEEE " },
- { " EEE ", " ", " EEE ",
- " ", " ", " ",
- " ", " ", " ",
- " ", "E E E E", "E E E E",
- "E E E E", " ", " ",
- " ", " ", " ",
- " ", " ", " EEE ",
- " ", " EEE " },
- { " E ", " ", " E ",
- " ", " ", " ",
- " ", " ", " ",
- " ", " ", "E E E E",
- " ", " ", " ",
- " ", " ", " ",
- " ", " ", " E ",
- " ", " E " } }))
- .addShape(
- STRUCTURE_PIECE_SecondRing,
- transpose(
- new String[][] {
- { " F ", " ",
- " F ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", "F F F F",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " F ", " ",
- " F " },
- { " FFF ", " ",
- " FFF ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- "F F F F", "F F F F",
- "F F F F", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " FFF ", " ",
- " FFF " },
- { " F F ", " ",
- " F F ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- "F F F F", " ",
- "F F F F", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " F F ", " ",
- " F F " },
- { " FFFFFFF ", " FFFFFFFFFFFFF ",
- " FFFF FFFFFFF FFFF ", " FF F FF ",
- " FFF F FFF ", " FF F FF ",
- " FF FF ", " F F ",
- " FF FF ", " FF FF ",
- " F F ", " FF FF ",
- " FF FF ", " F F ",
- "FFF FFF", "FFF FFF",
- "FFF FFF", "FFFFFF FFFFFF",
- "FFF FFF", "FFF FFF",
- "FFF FFF", " F F ",
- " FF FF ", " FF FF ",
- " F F ", " FF FF ",
- " FF FF ", " F F ",
- " FF FF ", " FF F FF ",
- " FFF F FFF ", " FF F FF ",
- " FFFF FFFFFFF FFFF ", " FFFFFFFFFFFFF ",
- " FFFFFFF " },
- { " FF F F FF ", " F F ",
- " FF F F FF ", " F F ",
- " F F ", " F F ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", "F F F F",
- "F F F F", " ",
- "FFFFFF FFFFFF", " ",
- "FFFFFF FFFFFF", " ",
- "F F F F", "F F F F",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " F F ",
- " F F ", " F F ",
- " FF F F FF ", " F F ",
- " FF F F FF " },
- { " FFFFFFF ", " FFFFFFFFFFFFF ",
- " FFFF FFFFFFF FFFF ", " FF F FF ",
- " FFF F FFF ", " FF F FF ",
- " FF FF ", " F F ",
- " FF FF ", " FF FF ",
- " F F ", " FF FF ",
- " FF FF ", " F F ",
- "FFF FFF", "FFF FFF",
- "FFF FFF", "FFFFFF FFFFFF",
- "FFF FFF", "FFF FFF",
- "FFF FFF", " F F ",
- " FF FF ", " FF FF ",
- " F F ", " FF FF ",
- " FF FF ", " F F ",
- " FF FF ", " FF F FF ",
- " FFF F FFF ", " FF F FF ",
- " FFFF FFFFFFF FFFF ", " FFFFFFFFFFFFF ",
- " FFFFFFF " },
- { " F F ", " ",
- " F F ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- "F F F F", " ",
- "F F F F", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " F F ", " ",
- " F F " },
- { " FFF ", " ",
- " FFF ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- "F F F F", "F F F F",
- "F F F F", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " FFF ", " ",
- " FFF " },
- { " F ", " ",
- " F ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", "F F F F",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " ", " ",
- " F ", " ",
- " F " } }))
- .addShape(
- STRUCTURE_PIECE_Final,
- transpose(
- new String[][] {
- { " G ",
- " ",
- " G ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- "G G G G",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " G ",
- " ",
- " G " },
- { " GGG ",
- " ",
- " GGG ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- "G G G G",
- "G G G G",
- "G G G G",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " GGG ",
- " ",
- " GGG " },
- { " G G ",
- " ",
- " G G ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- "G G G G",
- " ",
- "G G G G",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " G G ",
- " ",
- " G G " },
- { " GGGGG ",
- " GGGGGGGGGGGGGGG ",
- " GGGG GG GG GGGG ",
- " GGG GGG ",
- " GGG GGG ",
- " GG GG ",
- " GG GG ",
- " GG GG ",
- " GG GG ",
- " GG GG ",
- " GG GG ",
- " G G ",
- " GG GG ",
- " G G ",
- " GG GG ",
- " G G ",
- " GG GG ",
- " GG GG ",
- " G G ",
- " G G ",
- " G G ",
- "GGG GGG",
- "GGG GGG",
- "GG GG",
- "GGG GGG",
- "GGG GGG",
- " G G ",
- " G G ",
- " G G ",
- " GG GG ",
- " GG GG ",
- " G G ",
- " GG GG ",
- " G G ",
- " GG GG ",
- " G G ",
- " GG GG ",
- " GG GG ",
- " GG GG ",
- " GG GG ",
- " GG GG ",
- " GG GG ",
- " GGG GGG ",
- " GGG GGG ",
- " GGGG GG GG GGGG ",
- " GGGGGGGGGGGGGGG ",
- " GGGGG " },
- { " GGG G GGG ",
- " G ",
- " GGG G GGG ",
- " G ",
- " G ",
- " G ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- "G G G G",
- "G G G G",
- "G G G G",
- " ",
- "GGGGGG GGGGGG",
- " ",
- "G G G G",
- "G G G G",
- "G G G G",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " G ",
- " G ",
- " G ",
- " GGG G GGG ",
- " G ",
- " GGG G GGG " },
- { " GG G G GG ",
- " G G ",
- " GG G G GG ",
- " G G ",
- " G G ",
- " G G ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- "G G G G",
- "G G G G",
- " ",
- " ",
- "GGGGGG GGGGGG",
- " ",
- "GGGGGG GGGGGG",
- " ",
- " ",
- "G G G G",
- "G G G G",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " G G ",
- " G G ",
- " G G ",
- " GG G G GG ",
- " G G ",
- " GG G G GG " },
- { " GGG G GGG ",
- " G ",
- " GGG G GGG ",
- " G ",
- " G ",
- " G ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- "G G G G",
- "G G G G",
- "G G G G",
- " ",
- "GGGGGG GGGGGG",
- " ",
- "G G G G",
- "G G G G",
- "G G G G",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " G ",
- " G ",
- " G ",
- " GGG G GGG ",
- " G ",
- " GGG G GGG " },
- { " GGGGG ",
- " GGGGGGGGGGGGGGG ",
- " GGGG GG GG GGGG ",
- " GGG GGG ",
- " GGG GGG ",
- " GG GG ",
- " GG GG ",
- " GG GG ",
- " GG GG ",
- " GG GG ",
- " GG GG ",
- " G G ",
- " GG GG ",
- " G G ",
- " GG GG ",
- " G G ",
- " GG GG ",
- " GG GG ",
- " G G ",
- " G G ",
- " G G ",
- "GGG GGG",
- "GGG GGG",
- "GG GG",
- "GGG GGG",
- "GGG GGG",
- " G G ",
- " G G ",
- " G G ",
- " GG GG ",
- " GG GG ",
- " G G ",
- " GG GG ",
- " G G ",
- " GG GG ",
- " G G ",
- " GG GG ",
- " GG GG ",
- " GG GG ",
- " GG GG ",
- " GG GG ",
- " GG GG ",
- " GGG GGG ",
- " GGG GGG ",
- " GGGG GG GG GGGG ",
- " GGGGGGGGGGGGGGG ",
- " GGGGG " },
- { " G G ",
- " ",
- " G G ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- "G G G G",
- " ",
- "G G G G",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " G G ",
- " ",
- " G G " },
- { " GGG ",
- " ",
- " GGG ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- "G G G G",
- "G G G G",
- "G G G G",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " GGG ",
- " ",
- " GGG " },
- { " G ",
- " ",
- " G ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- "G G G G",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " G ",
- " ",
- " G " } }));
+ .addShape(STRUCTURE_PIECE_MainFrames,
+ transpose(new String[][] {
+ { " ", " C ", " CCC ", " CCCCC ", " CCC ", " C ", " ", " ", " ",
+ " ", " " },
+ { " C ", " CCCCC ", " CC CC ", "CC CC", " CC CC ", " CCCCC ", " C ", " ", " ",
+ " ", " " },
+ { " CCC ", " CC CC ", "CC CC", "C C", "CC CC", " CC CC ", " CCC ", " ", " ",
+ " ", " " },
+ { " CC~CC ", "CC CC", "C C", "C D C", "C C", "CC CC", " CCCCC ", " C ", " C ",
+ " C ", " C " },
+ { " CCC ", " CC CC ", "CC CC", "C C", "CC CC", " CC CC ", " CCC ", " ", " ",
+ " ", " " },
+ { " C ", " CCCCC ", " CC CC ", "CC CC", " CC CC ", " CCCCC ", " C ", " ", " ",
+ " ", " " },
+ { " ", " C ", " CCC ", " CCCCC ", " CCC ", " C ", " ", " ", " ",
+ " ", " " } }))
+ .addShape(STRUCTURE_PIECE_FirstRing,
+ transpose(new String[][] {
+ { " E ", " ", " E ",
+ " ", " ", " ",
+ " ", " ", " ",
+ " ", " ", "E E E E",
+ " ", " ", " ",
+ " ", " ", " ",
+ " ", " ", " E ",
+ " ", " E " },
+ { " EEE ", " ", " EEE ",
+ " ", " ", " ",
+ " ", " ", " ",
+ " ", "E E E E", "E E E E",
+ "E E E E", " ", " ",
+ " ", " ", " ",
+ " ", " ", " EEE ",
+ " ", " EEE " },
+ { " EEEEE ", " EEEEEEEEEEE ", " EEE EEEEE EEE ",
+ " EE E EE ", " EE E EE ", " EE EE ",
+ " EE EE ", " EE EE ", " E E ",
+ "EEE EEE", "EEE EEE", "EEEEE EEEEE",
+ "EEE EEE", "EEE EEE", " E E ",
+ " EE EE ", " EE EE ", " EE EE ",
+ " EE E EE ", " EE E EE ", " EEE EEEEE EEE ",
+ " EEEEEEEEEEE ", " EEEEE " },
+ { " EEE EEE ", " E E ", " EEE EEE ",
+ " E E ", " E E ", " ",
+ " ", " ", "E E E E",
+ "E E E E", "EEEEE EEEEE", " ",
+ "EEEEE EEEEE", "E E E E", "E E E E",
+ " ", " ", " ",
+ " E E ", " E E ", " EEE EEE ",
+ " E E ", " EEE EEE " },
+ { " EEEEE ", " EEEEEEEEEEE ", " EEE EEEEE EEE ",
+ " EE E EE ", " EE E EE ", " EE EE ",
+ " EE EE ", " EE EE ", " E E ",
+ "EEE EEE", "EEE EEE", "EEEEE EEEEE",
+ "EEE EEE", "EEE EEE", " E E ",
+ " EE EE ", " EE EE ", " EE EE ",
+ " EE E EE ", " EE E EE ", " EEE EEEEE EEE ",
+ " EEEEEEEEEEE ", " EEEEE " },
+ { " EEE ", " ", " EEE ",
+ " ", " ", " ",
+ " ", " ", " ",
+ " ", "E E E E", "E E E E",
+ "E E E E", " ", " ",
+ " ", " ", " ",
+ " ", " ", " EEE ",
+ " ", " EEE " },
+ { " E ", " ", " E ",
+ " ", " ", " ",
+ " ", " ", " ",
+ " ", " ", "E E E E",
+ " ", " ", " ",
+ " ", " ", " ",
+ " ", " ", " E ",
+ " ", " E " } }))
+ .addShape(STRUCTURE_PIECE_SecondRing,
+ transpose(new String[][] {
+ { " F ", " ",
+ " F ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", "F F F F",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " F ", " ",
+ " F " },
+ { " FFF ", " ",
+ " FFF ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ "F F F F", "F F F F",
+ "F F F F", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " FFF ", " ",
+ " FFF " },
+ { " F F ", " ",
+ " F F ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ "F F F F", " ",
+ "F F F F", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " F F ", " ",
+ " F F " },
+ { " FFFFFFF ", " FFFFFFFFFFFFF ",
+ " FFFF FFFFFFF FFFF ", " FF F FF ",
+ " FFF F FFF ", " FF F FF ",
+ " FF FF ", " F F ",
+ " FF FF ", " FF FF ",
+ " F F ", " FF FF ",
+ " FF FF ", " F F ",
+ "FFF FFF", "FFF FFF",
+ "FFF FFF", "FFFFFF FFFFFF",
+ "FFF FFF", "FFF FFF",
+ "FFF FFF", " F F ",
+ " FF FF ", " FF FF ",
+ " F F ", " FF FF ",
+ " FF FF ", " F F ",
+ " FF FF ", " FF F FF ",
+ " FFF F FFF ", " FF F FF ",
+ " FFFF FFFFFFF FFFF ", " FFFFFFFFFFFFF ",
+ " FFFFFFF " },
+ { " FF F F FF ", " F F ",
+ " FF F F FF ", " F F ",
+ " F F ", " F F ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", "F F F F",
+ "F F F F", " ",
+ "FFFFFF FFFFFF", " ",
+ "FFFFFF FFFFFF", " ",
+ "F F F F", "F F F F",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " F F ",
+ " F F ", " F F ",
+ " FF F F FF ", " F F ",
+ " FF F F FF " },
+ { " FFFFFFF ", " FFFFFFFFFFFFF ",
+ " FFFF FFFFFFF FFFF ", " FF F FF ",
+ " FFF F FFF ", " FF F FF ",
+ " FF FF ", " F F ",
+ " FF FF ", " FF FF ",
+ " F F ", " FF FF ",
+ " FF FF ", " F F ",
+ "FFF FFF", "FFF FFF",
+ "FFF FFF", "FFFFFF FFFFFF",
+ "FFF FFF", "FFF FFF",
+ "FFF FFF", " F F ",
+ " FF FF ", " FF FF ",
+ " F F ", " FF FF ",
+ " FF FF ", " F F ",
+ " FF FF ", " FF F FF ",
+ " FFF F FFF ", " FF F FF ",
+ " FFFF FFFFFFF FFFF ", " FFFFFFFFFFFFF ",
+ " FFFFFFF " },
+ { " F F ", " ",
+ " F F ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ "F F F F", " ",
+ "F F F F", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " F F ", " ",
+ " F F " },
+ { " FFF ", " ",
+ " FFF ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ "F F F F", "F F F F",
+ "F F F F", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " FFF ", " ",
+ " FFF " },
+ { " F ", " ",
+ " F ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", "F F F F",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " ", " ",
+ " F ", " ",
+ " F " } }))
+ .addShape(STRUCTURE_PIECE_Final,
+ transpose(new String[][] { { " G ",
+ " ",
+ " G ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ "G G G G",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " G ",
+ " ",
+ " G " },
+ { " GGG ",
+ " ",
+ " GGG ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ "G G G G",
+ "G G G G",
+ "G G G G",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " GGG ",
+ " ",
+ " GGG " },
+ { " G G ",
+ " ",
+ " G G ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ "G G G G",
+ " ",
+ "G G G G",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " G G ",
+ " ",
+ " G G " },
+ { " GGGGG ",
+ " GGGGGGGGGGGGGGG ",
+ " GGGG GG GG GGGG ",
+ " GGG GGG ",
+ " GGG GGG ",
+ " GG GG ",
+ " GG GG ",
+ " GG GG ",
+ " GG GG ",
+ " GG GG ",
+ " GG GG ",
+ " G G ",
+ " GG GG ",
+ " G G ",
+ " GG GG ",
+ " G G ",
+ " GG GG ",
+ " GG GG ",
+ " G G ",
+ " G G ",
+ " G G ",
+ "GGG GGG",
+ "GGG GGG",
+ "GG GG",
+ "GGG GGG",
+ "GGG GGG",
+ " G G ",
+ " G G ",
+ " G G ",
+ " GG GG ",
+ " GG GG ",
+ " G G ",
+ " GG GG ",
+ " G G ",
+ " GG GG ",
+ " G G ",
+ " GG GG ",
+ " GG GG ",
+ " GG GG ",
+ " GG GG ",
+ " GG GG ",
+ " GG GG ",
+ " GGG GGG ",
+ " GGG GGG ",
+ " GGGG GG GG GGGG ",
+ " GGGGGGGGGGGGGGG ",
+ " GGGGG " },
+ { " GGG G GGG ",
+ " G ",
+ " GGG G GGG ",
+ " G ",
+ " G ",
+ " G ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ "G G G G",
+ "G G G G",
+ "G G G G",
+ " ",
+ "GGGGGG GGGGGG",
+ " ",
+ "G G G G",
+ "G G G G",
+ "G G G G",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " G ",
+ " G ",
+ " G ",
+ " GGG G GGG ",
+ " G ",
+ " GGG G GGG " },
+ { " GG G G GG ",
+ " G G ",
+ " GG G G GG ",
+ " G G ",
+ " G G ",
+ " G G ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ "G G G G",
+ "G G G G",
+ " ",
+ " ",
+ "GGGGGG GGGGGG",
+ " ",
+ "GGGGGG GGGGGG",
+ " ",
+ " ",
+ "G G G G",
+ "G G G G",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " G G ",
+ " G G ",
+ " G G ",
+ " GG G G GG ",
+ " G G ",
+ " GG G G GG " },
+ { " GGG G GGG ",
+ " G ",
+ " GGG G GGG ",
+ " G ",
+ " G ",
+ " G ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ "G G G G",
+ "G G G G",
+ "G G G G",
+ " ",
+ "GGGGGG GGGGGG",
+ " ",
+ "G G G G",
+ "G G G G",
+ "G G G G",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " G ",
+ " G ",
+ " G ",
+ " GGG G GGG ",
+ " G ",
+ " GGG G GGG " },
+ { " GGGGG ",
+ " GGGGGGGGGGGGGGG ",
+ " GGGG GG GG GGGG ",
+ " GGG GGG ",
+ " GGG GGG ",
+ " GG GG ",
+ " GG GG ",
+ " GG GG ",
+ " GG GG ",
+ " GG GG ",
+ " GG GG ",
+ " G G ",
+ " GG GG ",
+ " G G ",
+ " GG GG ",
+ " G G ",
+ " GG GG ",
+ " GG GG ",
+ " G G ",
+ " G G ",
+ " G G ",
+ "GGG GGG",
+ "GGG GGG",
+ "GG GG",
+ "GGG GGG",
+ "GGG GGG",
+ " G G ",
+ " G G ",
+ " G G ",
+ " GG GG ",
+ " GG GG ",
+ " G G ",
+ " GG GG ",
+ " G G ",
+ " GG GG ",
+ " G G ",
+ " GG GG ",
+ " GG GG ",
+ " GG GG ",
+ " GG GG ",
+ " GG GG ",
+ " GG GG ",
+ " GGG GGG ",
+ " GGG GGG ",
+ " GGGG GG GG GGGG ",
+ " GGGGGGGGGGGGGGG ",
+ " GGGGG " },
+ { " G G ",
+ " ",
+ " G G ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ "G G G G",
+ " ",
+ "G G G G",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " G G ",
+ " ",
+ " G G " },
+ { " GGG ",
+ " ",
+ " GGG ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ "G G G G",
+ "G G G G",
+ "G G G G",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " GGG ",
+ " ",
+ " GGG " },
+ { " G ",
+ " ",
+ " G ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ "G G G G",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " G ",
+ " ",
+ " G " } }));
for (int i = 0; i < 14; i++) {
A.addShape(getModuleByIndex(i).name, transpose(getModuleByIndex(i).moduleStructure));
}
- A.addElement(
- 'C',
- buildHatchAdder(GTMachineBox.class)
- .atLeast(InputBus, OutputBus, InputHatch, OutputHatch, Energy, ExoticEnergy, Maintenance)
- .casingIndex(114 << 7)
- .dot(1)
- .buildAndChain(onElementPass(i -> ++i.extendCasing, ofBlock(BlockRegister.SpaceExtend, 0))))
+ A.addElement('C',
+ buildHatchAdder(GTMachineBox.class).atLeast(InputBus,
+ OutputBus,
+ InputHatch,
+ OutputHatch,
+ Energy,
+ ExoticEnergy,
+ Maintenance)
+ .casingIndex(114 << 7)
+ .dot(1)
+ .buildAndChain(onElementPass(i -> ++i.extendCasing, ofBlock(BlockRegister.SpaceExtend, 0))))
.addElement('D', Util.RingTileAdder((v, t) -> {
- if ((t.getBlockType()
- .isAssociatedBlock(BlockRegister.BoxRing) && v.ringCountSet != 1)) return false;
- if ((t.getBlockType()
- .isAssociatedBlock(BlockRegister.BoxRing2) && v.ringCountSet != 2)) return false;
- if ((t.getBlockType()
- .isAssociatedBlock(BlockRegister.BoxRing3) && v.ringCountSet != 3)) return false;
- v.teBoxRing = t;
- return true;
- },
+ if ((t.getBlockType()
+ .isAssociatedBlock(BlockRegister.BoxRing) && v.ringCountSet != 1)) return false;
+ if ((t.getBlockType()
+ .isAssociatedBlock(BlockRegister.BoxRing2) && v.ringCountSet != 2)) return false;
+ if ((t.getBlockType()
+ .isAssociatedBlock(BlockRegister.BoxRing3) && v.ringCountSet != 3)) return false;
+ v.teBoxRing = t;
+ return true;
+ },
TEBoxRing.class,
BlockRegister.BoxRing,
0,
- v -> v.ringCountSet == 1 ? BlockRegister.BoxRing
+ v -> v.ringCountSet == 1
+ ? BlockRegister.BoxRing
: (v.ringCountSet == 2 ? BlockRegister.BoxRing2 : BlockRegister.BoxRing3)))
.addElement('E', ofBlock(BlockRegister.SpaceCompress, 0))
.addElement('F', ofBlock(BlockRegister.SpaceConstraint, 0))
@@ -1025,8 +1021,7 @@ public void construct(ItemStack stackSize, boolean hintsOnly) {
}
for (int i = 0; i < 14; i++) {
if (moduleSwitch[i] || stackSize.stackSize - 4 >= i) {
- buildPiece(
- getModuleByIndex(i).name,
+ buildPiece(getModuleByIndex(i).name,
stackSize,
hintsOnly,
getModuleByIndex(i).horizontalOffset,
@@ -1045,8 +1040,7 @@ public int survivalConstruct(ItemStack stack, int elementBudget, ISurvivalBuildE
case 1 -> {
switch (stack.stackSize) {
case 1 -> {
- count += survivialBuildPiece(
- STRUCTURE_PIECE_MainFrames,
+ count += survivialBuildPiece(STRUCTURE_PIECE_MainFrames,
stack,
3,
3,
@@ -1055,8 +1049,7 @@ public int survivalConstruct(ItemStack stack, int elementBudget, ISurvivalBuildE
env,
false,
true);
- count += survivialBuildPiece(
- STRUCTURE_PIECE_FirstRing,
+ count += survivialBuildPiece(STRUCTURE_PIECE_FirstRing,
stack,
11,
3,
@@ -1067,8 +1060,7 @@ public int survivalConstruct(ItemStack stack, int elementBudget, ISurvivalBuildE
true);
}
case 2 -> {
- count += survivialBuildPiece(
- STRUCTURE_PIECE_MainFrames,
+ count += survivialBuildPiece(STRUCTURE_PIECE_MainFrames,
stack,
3,
3,
@@ -1077,8 +1069,7 @@ public int survivalConstruct(ItemStack stack, int elementBudget, ISurvivalBuildE
env,
false,
true);
- count += survivialBuildPiece(
- STRUCTURE_PIECE_FirstRing,
+ count += survivialBuildPiece(STRUCTURE_PIECE_FirstRing,
stack,
11,
3,
@@ -1087,8 +1078,7 @@ public int survivalConstruct(ItemStack stack, int elementBudget, ISurvivalBuildE
env,
false,
true);
- count += survivialBuildPiece(
- STRUCTURE_PIECE_SecondRing,
+ count += survivialBuildPiece(STRUCTURE_PIECE_SecondRing,
stack,
17,
5,
@@ -1099,8 +1089,7 @@ public int survivalConstruct(ItemStack stack, int elementBudget, ISurvivalBuildE
true);
}
default -> {
- count += survivialBuildPiece(
- STRUCTURE_PIECE_MainFrames,
+ count += survivialBuildPiece(STRUCTURE_PIECE_MainFrames,
stack,
3,
3,
@@ -1109,8 +1098,7 @@ public int survivalConstruct(ItemStack stack, int elementBudget, ISurvivalBuildE
env,
false,
true);
- count += survivialBuildPiece(
- STRUCTURE_PIECE_FirstRing,
+ count += survivialBuildPiece(STRUCTURE_PIECE_FirstRing,
stack,
11,
3,
@@ -1119,8 +1107,7 @@ public int survivalConstruct(ItemStack stack, int elementBudget, ISurvivalBuildE
env,
false,
true);
- count += survivialBuildPiece(
- STRUCTURE_PIECE_SecondRing,
+ count += survivialBuildPiece(STRUCTURE_PIECE_SecondRing,
stack,
17,
5,
@@ -1129,8 +1116,7 @@ public int survivalConstruct(ItemStack stack, int elementBudget, ISurvivalBuildE
env,
false,
true);
- count += survivialBuildPiece(
- STRUCTURE_PIECE_Final,
+ count += survivialBuildPiece(STRUCTURE_PIECE_Final,
stack,
23,
5,
@@ -1143,8 +1129,7 @@ public int survivalConstruct(ItemStack stack, int elementBudget, ISurvivalBuildE
}
}
case 2 -> {
- count += survivialBuildPiece(
- STRUCTURE_PIECE_MainFrames,
+ count += survivialBuildPiece(STRUCTURE_PIECE_MainFrames,
stack,
3,
3,
@@ -1153,8 +1138,7 @@ public int survivalConstruct(ItemStack stack, int elementBudget, ISurvivalBuildE
env,
false,
true);
- count += survivialBuildPiece(
- STRUCTURE_PIECE_FirstRing,
+ count += survivialBuildPiece(STRUCTURE_PIECE_FirstRing,
stack,
11,
3,
@@ -1163,8 +1147,7 @@ public int survivalConstruct(ItemStack stack, int elementBudget, ISurvivalBuildE
env,
false,
true);
- count += survivialBuildPiece(
- STRUCTURE_PIECE_SecondRing,
+ count += survivialBuildPiece(STRUCTURE_PIECE_SecondRing,
stack,
17,
5,
@@ -1175,8 +1158,7 @@ public int survivalConstruct(ItemStack stack, int elementBudget, ISurvivalBuildE
true);
}
case 3 -> {
- count += survivialBuildPiece(
- STRUCTURE_PIECE_MainFrames,
+ count += survivialBuildPiece(STRUCTURE_PIECE_MainFrames,
stack,
3,
3,
@@ -1185,8 +1167,7 @@ public int survivalConstruct(ItemStack stack, int elementBudget, ISurvivalBuildE
env,
false,
true);
- count += survivialBuildPiece(
- STRUCTURE_PIECE_FirstRing,
+ count += survivialBuildPiece(STRUCTURE_PIECE_FirstRing,
stack,
11,
3,
@@ -1195,8 +1176,7 @@ public int survivalConstruct(ItemStack stack, int elementBudget, ISurvivalBuildE
env,
false,
true);
- count += survivialBuildPiece(
- STRUCTURE_PIECE_SecondRing,
+ count += survivialBuildPiece(STRUCTURE_PIECE_SecondRing,
stack,
17,
5,
@@ -1224,8 +1204,11 @@ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack a
machineError = new int[2];
switch (ringCountSet) {
case 1 -> {
- if (checkPiece(STRUCTURE_PIECE_MainFrames, 3, 3, 0)
- && checkPiece(STRUCTURE_PIECE_FirstRing, 11, 3, 8)) {
+ if (checkPiece(STRUCTURE_PIECE_MainFrames, 3, 3, 0) && checkPiece(
+ STRUCTURE_PIECE_FirstRing,
+ 11,
+ 3,
+ 8)) {
ringCount = 1;
break;
}
@@ -1237,7 +1220,8 @@ && checkPiece(STRUCTURE_PIECE_FirstRing, 11, 3, 8)) {
return false;
}
case 2 -> {
- if (checkPiece(STRUCTURE_PIECE_MainFrames, 3, 3, 0) && checkPiece(STRUCTURE_PIECE_FirstRing, 11, 3, 8)
+ if (checkPiece(STRUCTURE_PIECE_MainFrames, 3, 3, 0)
+ && checkPiece(STRUCTURE_PIECE_FirstRing, 11, 3, 8)
&& checkPiece(STRUCTURE_PIECE_SecondRing, 17, 5, 14)) {
ringCount = 2;
maxParallel = 6400;
@@ -1252,7 +1236,8 @@ && checkPiece(STRUCTURE_PIECE_SecondRing, 17, 5, 14)) {
return false;
}
case 3 -> {
- if (checkPiece(STRUCTURE_PIECE_MainFrames, 3, 3, 0) && checkPiece(STRUCTURE_PIECE_FirstRing, 11, 3, 8)
+ if (checkPiece(STRUCTURE_PIECE_MainFrames, 3, 3, 0)
+ && checkPiece(STRUCTURE_PIECE_FirstRing, 11, 3, 8)
&& checkPiece(STRUCTURE_PIECE_SecondRing, 17, 5, 14)
&& checkPiece(STRUCTURE_PIECE_Final, 23, 5, 20)) {
ringCount = 3;
@@ -1273,8 +1258,7 @@ && checkPiece(STRUCTURE_PIECE_Final, 23, 5, 20)) {
}
for (int i = 0; i < 15; i++) {
if (moduleSwitch[i]) {
- if (checkPiece(
- getModuleByIndex(i).name,
+ if (checkPiece(getModuleByIndex(i).name,
getModuleByIndex(i).horizontalOffset,
getModuleByIndex(i).verticalOffset,
getModuleByIndex(i).depthOffset)) {
@@ -1331,8 +1315,8 @@ public CheckRecipeResult checkProcessing() {
inputFluid.addAll(Arrays.asList(inv.getFluidInputs()));
}
}
- if ((inputItem.isEmpty() && !recipe.FinalItemInput.isEmpty())
- || (inputFluid.isEmpty() && !recipe.FinalFluidInput.isEmpty())) return CheckRecipeResultRegistry.NO_RECIPE;
+ if ((inputItem.isEmpty() && !recipe.FinalItemInput.isEmpty()) || (inputFluid.isEmpty()
+ && !recipe.FinalFluidInput.isEmpty())) return CheckRecipeResultRegistry.NO_RECIPE;
for (int k : recipe.requireModules.keySet()) {
if (k == 13 && recipe.requireModules.get(k) == 2 && !debug)
return SimpleCheckRecipeResult.ofFailure("box_debugmode");
@@ -1353,9 +1337,9 @@ public CheckRecipeResult checkProcessing() {
inputFluid.removeAll(Collections.singleton(null));
return (!recipe.FinalItemInput.isEmpty())
? (!recipe.FinalFluidInput.isEmpty()
- ? ((requireItem.isEmpty() && requireFluid.isEmpty()) ? runBox(inputItem, inputFluid)
- : CheckRecipeResultRegistry.NO_RECIPE)
- : (requireItem.isEmpty() ? runBox(inputItem, inputFluid) : CheckRecipeResultRegistry.NO_RECIPE))
+ ? ((requireItem.isEmpty()
+ && requireFluid.isEmpty()) ? runBox(inputItem, inputFluid) : CheckRecipeResultRegistry.NO_RECIPE)
+ : (requireItem.isEmpty() ? runBox(inputItem, inputFluid) : CheckRecipeResultRegistry.NO_RECIPE))
: (requireFluid.isEmpty() ? runBox(inputItem, inputFluid) : CheckRecipeResultRegistry.NO_RECIPE);
}
@@ -1372,8 +1356,9 @@ public CheckRecipeResult runBox(List inputItem, List inpu
return CheckRecipeResultRegistry.insufficientPower(recipe.FinalVoteage);
lEUt = -recipe.FinalVoteage;
}
- if (moduleActive[12] && moduleTier[12] == 1
- && !addEUToGlobalEnergyMap(userUUID, -recipe.FinalVoteage * recipe.FinalTime)) {
+ if (moduleActive[12] && moduleTier[12] == 1 && !addEUToGlobalEnergyMap(
+ userUUID,
+ -recipe.FinalVoteage * recipe.FinalTime)) {
return SimpleCheckRecipeResult.ofFailure("no_wireless_power");
}
calTime();
@@ -1443,12 +1428,10 @@ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, ForgeDirec
if (side == aFacing) {
if (aActive) return new ITexture[] { casingTexturePages[114][0], TextureFactory.builder()
.addIcon(boxActive)
- .extFacing()
- .build() };
+ .extFacing().build() };
return new ITexture[] { casingTexturePages[114][0], TextureFactory.builder()
.addIcon(boxInactive)
- .extFacing()
- .build() };
+ .extFacing().build() };
}
return new ITexture[] { casingTexturePages[114][0] };
}
@@ -1496,8 +1479,9 @@ private void makeAE2Pattern(EntityPlayer player, String item, String fluid) {
patternDetail.setCanBeSubstitute(0);
outputPattern = patternDetail.writeToStack();
}
- outputPattern.stackTagCompound
- .setString("author", player.getDisplayName() + i18n("tile.boxplusplus.boxinfo.16"));
+ outputPattern.stackTagCompound.setString(
+ "author",
+ player.getDisplayName() + i18n("tile.boxplusplus.boxinfo.16"));
pattern.stackSize -= 1;
mOutputItems = new ItemStack[] { outputPattern };
mMaxProgresstime = 100;
@@ -1520,8 +1504,10 @@ public void buildRecipe() {
recipe = new BoxRecipe();
routingMap.forEach(boxRoutings -> {
inputItemContainer.addItemStackList(boxRoutings.InputItem, boxRoutings.Parallel);
- outputItemContainer
- .addItemStackList(boxRoutings.OutputItem, boxRoutings.OutputChance, boxRoutings.Parallel);
+ outputItemContainer.addItemStackList(
+ boxRoutings.OutputItem,
+ boxRoutings.OutputChance,
+ boxRoutings.Parallel);
inputFluidContainer.addFluidStackList(boxRoutings.InputFluid, boxRoutings.Parallel);
OutputFluidContainer.addFluidStackList(boxRoutings.OutputFluid, boxRoutings.Parallel);
recipe.FinalTime += boxRoutings.time * 5000 / (1 + Math.exp(-(boxRoutings.Parallel - 2000) / 320.0));
@@ -1566,9 +1552,8 @@ private boolean halveRecipe() {
@Override
public void onRemoval() {
if (boxMap.containsValue(this)) boxMap.entrySet()
- .removeIf(
- t -> t.getValue()
- .equals(this));
+ .removeIf(t -> t.getValue()
+ .equals(this));
}
/**
@@ -1581,8 +1566,7 @@ public void saveNBTData(NBTTagCompound NBT) {
NBTTagCompound Routing = new NBTTagCompound();
Routing.setInteger("ActiveRouting", routingMap.size());
for (int i = 0; i < routingMap.size(); i++) {
- Routing.setTag(
- "Routing" + (i + 1),
+ Routing.setTag("Routing" + (i + 1),
routingMap.get(i)
.routingToNbt());
}
@@ -1651,28 +1635,27 @@ public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildCont
buildContext.addSyncedWindow(20, this::createClearWindow);
Synchronize(builder);
builder.widget(// Module
- new ButtonWidget().setOnClick(
- (clickData, widget) -> {
- if (!widget.isClient()) widget.getContext()
- .openSyncedWindow(13);
- })
- .setSize(16, 16)
- .setBackground(() -> {
- List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_WHITELIST);
- return UI.toArray(new IDrawable[0]);
- })
- .addTooltip(i18n("tile.boxplusplus.boxUI.01"))
- .setPos(94, 91))
+ new ButtonWidget().setOnClick((clickData, widget) -> {
+ if (!widget.isClient()) widget.getContext()
+ .openSyncedWindow(13);
+ })
+ .setSize(16, 16)
+ .setBackground(() -> {
+ List UI = new ArrayList<>();
+ UI.add(GT_UITextures.BUTTON_STANDARD);
+ UI.add(GT_UITextures.OVERLAY_BUTTON_WHITELIST);
+ return UI.toArray(new IDrawable[0]);
+ })
+ .addTooltip(i18n("tile.boxplusplus.boxUI.01"))
+ .setPos(94, 91))
.widget(// SwitchRender
new ButtonWidget().setOnClick((clickData, widget) -> {
- if (!widget.isClient()) {
- if (teBoxRing != null) {
- teBoxRing.teRingSwitch = !teBoxRing.teRingSwitch;
+ if (!widget.isClient()) {
+ if (teBoxRing != null) {
+ teBoxRing.teRingSwitch = !teBoxRing.teRingSwitch;
+ }
}
- }
- })
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -1684,15 +1667,13 @@ public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildCont
.setPos(146, 91))
.widget(// Routing
new ButtonWidget().setOnClick((clickData, widget) -> {
- if (!widget.isClient()) {
- Util.boxMap.put(
+ if (!widget.isClient()) {
+ Util.boxMap.put(widget.getContext()
+ .getPlayer(), this);
widget.getContext()
- .getPlayer(),
- this);
- widget.getContext()
- .openSyncedWindow(10);
- }
- })
+ .openSyncedWindow(10);
+ }
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -1703,8 +1684,7 @@ public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildCont
.addTooltip(i18n("tile.boxplusplus.boxUI.03"))
.setPos(120, 91))
.widget(// WIKI
- new ButtonWidget().setOnClick(
- (clickData, widget) -> {
+ new ButtonWidget().setOnClick((clickData, widget) -> {
if (!widget.isClient()) widget.getContext()
.openSyncedWindow(15);
})
@@ -1724,25 +1704,29 @@ public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildCont
*/
protected ModularWindow createModuleWindow(final EntityPlayer player) {
ModularWindow.Builder builder = ModularWindow.builder(250, 250);
- builder
- .setBackground(AdaptableUITexture.of(Tags.MODID, "textures/gui/ring" + ringCountSet + ".png", 695, 695, 4));
+ builder.setBackground(AdaptableUITexture.of(
+ Tags.MODID,
+ "textures/gui/ring" + ringCountSet + ".png",
+ 695,
+ 695,
+ 4));
builder.setGuiTint(getGUIColorization());
Synchronize(builder);
builder.widget(// Ring1
new ButtonWidget().setOnClick((clickData, widget) -> {
- this.ringCountSet = 1;
- for (int i = 4; i < 14; i++) {
- moduleSwitch[i] = false;
- moduleActive[i] = false;
- onMachineBlockUpdate();
- }
- if (!widget.isClient()) {
- widget.getWindow()
- .closeWindow();
- widget.getContext()
- .openSyncedWindow(13);
- }
- })
+ this.ringCountSet = 1;
+ for (int i = 4; i < 14; i++) {
+ moduleSwitch[i] = false;
+ moduleActive[i] = false;
+ onMachineBlockUpdate();
+ }
+ if (!widget.isClient()) {
+ widget.getWindow()
+ .closeWindow();
+ widget.getContext()
+ .openSyncedWindow(13);
+ }
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -1754,19 +1738,19 @@ protected ModularWindow createModuleWindow(final EntityPlayer player) {
.setPos(8, 8));
builder.widget(// Ring2
new ButtonWidget().setOnClick((clickData, widget) -> {
- this.ringCountSet = 2;
- for (int i = 8; i < 14; i++) {
- moduleSwitch[i] = false;
- moduleActive[i] = false;
- onMachineBlockUpdate();
- }
- if (!widget.isClient()) {
- widget.getWindow()
- .closeWindow();
- widget.getContext()
- .openSyncedWindow(13);
- }
- })
+ this.ringCountSet = 2;
+ for (int i = 8; i < 14; i++) {
+ moduleSwitch[i] = false;
+ moduleActive[i] = false;
+ onMachineBlockUpdate();
+ }
+ if (!widget.isClient()) {
+ widget.getWindow()
+ .closeWindow();
+ widget.getContext()
+ .openSyncedWindow(13);
+ }
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -1777,54 +1761,53 @@ protected ModularWindow createModuleWindow(final EntityPlayer player) {
.addTooltip(i18n("tile.boxplusplus.boxUI.module.21"))
.setPos(8, 26));
builder.widget(// Ring3
- new ButtonWidget().setOnClick((clickData, widget) -> {
- this.ringCountSet = 3;
- onMachineBlockUpdate();
- if (!widget.isClient()) {
- widget.getWindow()
- .closeWindow();
- widget.getContext()
- .openSyncedWindow(13);
- }
- })
- .setSize(16, 16)
- .setBackground(() -> {
- List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_AUTOOUTPUT_FLUID);
- return UI.toArray(new IDrawable[0]);
- })
- .addTooltip(i18n("tile.boxplusplus.boxUI.module.22"))
- .setPos(8, 44))
- .widget(
- ButtonWidget.closeWindowButton(true)
- .setPos(238, 0));
+ new ButtonWidget().setOnClick((clickData, widget) -> {
+ this.ringCountSet = 3;
+ onMachineBlockUpdate();
+ if (!widget.isClient()) {
+ widget.getWindow()
+ .closeWindow();
+ widget.getContext()
+ .openSyncedWindow(13);
+ }
+ })
+ .setSize(16, 16)
+ .setBackground(() -> {
+ List UI = new ArrayList<>();
+ UI.add(GT_UITextures.BUTTON_STANDARD);
+ UI.add(GT_UITextures.OVERLAY_BUTTON_AUTOOUTPUT_FLUID);
+ return UI.toArray(new IDrawable[0]);
+ })
+ .addTooltip(i18n("tile.boxplusplus.boxUI.module.22"))
+ .setPos(8, 44))
+ .widget(ButtonWidget.closeWindowButton(true)
+ .setPos(238, 0));
builder.widget(// 3.1
- new ButtonWidget().setOnClick((clickData, widget) -> {
- moduleSN = 8;
- if (!widget.isClient()) {
- widget.getContext()
- .openSyncedWindow(14);
- }
- })
- .setSize(16, 16)
- .setBackground(() -> {
- List UI = new ArrayList<>();
- UI.add(AdaptableUITexture.of(Tags.MODID, "textures/gui/09a.png", 16, 16, 4));
- UI.add(AdaptableUITexture.of(Tags.MODID, "textures/gui/01b.png", 16, 16, 4));
- return UI.toArray(new IDrawable[0]);
- })
- .addTooltip(i18n("tile.boxplusplus.boxUI.module.9"))
- .setPos(8, 117)
- .setEnabled(ringCountSet == 3))
+ new ButtonWidget().setOnClick((clickData, widget) -> {
+ moduleSN = 8;
+ if (!widget.isClient()) {
+ widget.getContext()
+ .openSyncedWindow(14);
+ }
+ })
+ .setSize(16, 16)
+ .setBackground(() -> {
+ List UI = new ArrayList<>();
+ UI.add(AdaptableUITexture.of(Tags.MODID, "textures/gui/09a.png", 16, 16, 4));
+ UI.add(AdaptableUITexture.of(Tags.MODID, "textures/gui/01b.png", 16, 16, 4));
+ return UI.toArray(new IDrawable[0]);
+ })
+ .addTooltip(i18n("tile.boxplusplus.boxUI.module.9"))
+ .setPos(8, 117)
+ .setEnabled(ringCountSet == 3))
.widget(// 3.2
new ButtonWidget().setOnClick((clickData, widget) -> {
- moduleSN = 9;
- if (!widget.isClient()) {
- widget.getContext()
- .openSyncedWindow(14);
- }
- })
+ moduleSN = 9;
+ if (!widget.isClient()) {
+ widget.getContext()
+ .openSyncedWindow(14);
+ }
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -1837,12 +1820,12 @@ protected ModularWindow createModuleWindow(final EntityPlayer player) {
.setEnabled(ringCountSet == 3))
.widget(// 3.3
new ButtonWidget().setOnClick((clickData, widget) -> {
- moduleSN = 10;
- if (!widget.isClient()) {
- widget.getContext()
- .openSyncedWindow(14);
- }
- })
+ moduleSN = 10;
+ if (!widget.isClient()) {
+ widget.getContext()
+ .openSyncedWindow(14);
+ }
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -1870,15 +1853,14 @@ protected ModularWindow createModuleWindow(final EntityPlayer player) {
* .addTooltip(i18n("tile.boxplusplus.boxUI.module.12"))
* .setPos(117, 223)
* .setEnabled(RingCounts==3))
- */
- .widget(// 2.1
+ */.widget(// 2.1
new ButtonWidget().setOnClick((clickData, widget) -> {
- moduleSN = 4;
- if (!widget.isClient()) {
- widget.getContext()
- .openSyncedWindow(14);
- }
- })
+ moduleSN = 4;
+ if (!widget.isClient()) {
+ widget.getContext()
+ .openSyncedWindow(14);
+ }
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -1891,12 +1873,12 @@ protected ModularWindow createModuleWindow(final EntityPlayer player) {
.setEnabled(ringCountSet > 1))
.widget(// 2.2
new ButtonWidget().setOnClick((clickData, widget) -> {
- moduleSN = 5;
- if (!widget.isClient()) {
- widget.getContext()
- .openSyncedWindow(14);
- }
- })
+ moduleSN = 5;
+ if (!widget.isClient()) {
+ widget.getContext()
+ .openSyncedWindow(14);
+ }
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -1909,12 +1891,12 @@ protected ModularWindow createModuleWindow(final EntityPlayer player) {
.setEnabled(ringCountSet > 1))
.widget(// 2.3
new ButtonWidget().setOnClick((clickData, widget) -> {
- moduleSN = 6;
- if (!widget.isClient()) {
- widget.getContext()
- .openSyncedWindow(14);
- }
- })
+ moduleSN = 6;
+ if (!widget.isClient()) {
+ widget.getContext()
+ .openSyncedWindow(14);
+ }
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -1927,12 +1909,12 @@ protected ModularWindow createModuleWindow(final EntityPlayer player) {
.setEnabled(ringCountSet > 1))
.widget(// 2.4
new ButtonWidget().setOnClick((clickData, widget) -> {
- moduleSN = 7;
- if (!widget.isClient()) {
- widget.getContext()
- .openSyncedWindow(14);
- }
- })
+ moduleSN = 7;
+ if (!widget.isClient()) {
+ widget.getContext()
+ .openSyncedWindow(14);
+ }
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -1945,12 +1927,12 @@ protected ModularWindow createModuleWindow(final EntityPlayer player) {
.setEnabled(ringCountSet > 1))
.widget(// 1.1
new ButtonWidget().setOnClick((clickData, widget) -> {
- moduleSN = 0;
- if (!widget.isClient()) {
- widget.getContext()
- .openSyncedWindow(14);
- }
- })
+ moduleSN = 0;
+ if (!widget.isClient()) {
+ widget.getContext()
+ .openSyncedWindow(14);
+ }
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -1962,12 +1944,12 @@ protected ModularWindow createModuleWindow(final EntityPlayer player) {
.setPos(64, 117))
.widget(// 1.2
new ButtonWidget().setOnClick((clickData, widget) -> {
- moduleSN = 1;
- if (!widget.isClient()) {
- widget.getContext()
- .openSyncedWindow(14);
- }
- })
+ moduleSN = 1;
+ if (!widget.isClient()) {
+ widget.getContext()
+ .openSyncedWindow(14);
+ }
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -1979,12 +1961,12 @@ protected ModularWindow createModuleWindow(final EntityPlayer player) {
.setPos(117, 67))
.widget(// 1.3
new ButtonWidget().setOnClick((clickData, widget) -> {
- moduleSN = 2;
- if (!widget.isClient()) {
- widget.getContext()
- .openSyncedWindow(14);
- }
- })
+ moduleSN = 2;
+ if (!widget.isClient()) {
+ widget.getContext()
+ .openSyncedWindow(14);
+ }
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -1996,12 +1978,12 @@ protected ModularWindow createModuleWindow(final EntityPlayer player) {
.setPos(164, 117))
.widget(// 1.4
new ButtonWidget().setOnClick((clickData, widget) -> {
- moduleSN = 3;
- if (!widget.isClient()) {
- widget.getContext()
- .openSyncedWindow(14);
- }
- })
+ moduleSN = 3;
+ if (!widget.isClient()) {
+ widget.getContext()
+ .openSyncedWindow(14);
+ }
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -2013,12 +1995,12 @@ protected ModularWindow createModuleWindow(final EntityPlayer player) {
.setPos(117, 167))
.widget(// Up
new ButtonWidget().setOnClick((clickData, widget) -> {
- moduleSN = 12;
- if (!widget.isClient()) {
- widget.getContext()
- .openSyncedWindow(14);
- }
- })
+ moduleSN = 12;
+ if (!widget.isClient()) {
+ widget.getContext()
+ .openSyncedWindow(14);
+ }
+ })
.setSize(16, 16)
.setBackground(AdaptableUITexture.of(Tags.MODID, "textures/gui/13a.png", 16, 16, 1))
.addTooltip(i18n("tile.boxplusplus.boxUI.module.13"))
@@ -2026,12 +2008,12 @@ protected ModularWindow createModuleWindow(final EntityPlayer player) {
.setEnabled(ringCountSet == 3))
.widget(// Down
new ButtonWidget().setOnClick((clickData, widget) -> {
- moduleSN = 13;
- if (!widget.isClient()) {
- widget.getContext()
- .openSyncedWindow(14);
- }
- })
+ moduleSN = 13;
+ if (!widget.isClient()) {
+ widget.getContext()
+ .openSyncedWindow(14);
+ }
+ })
.setSize(16, 16)
.setBackground(AdaptableUITexture.of(Tags.MODID, "textures/gui/14a.png", 16, 16, 1))
.addTooltip(i18n("tile.boxplusplus.boxUI.module.14"))
@@ -2047,61 +2029,63 @@ protected ModularWindow createSingleModuleWindow(final EntityPlayer player) {
ModularWindow.Builder builder = ModularWindow.builder(150, 200);
builder.setBackground(GT_UITextures.BACKGROUND_SINGLEBLOCK_DEFAULT);
builder.setGuiTint(getGUIColorization());
- builder.widget(
- ButtonWidget.closeWindowButton(true)
+ builder.widget(ButtonWidget.closeWindowButton(true)
.setPos(136, 3))
- .widget(
- new DrawableWidget().setDrawable(AdaptableUITexture.of(Tags.MODID, "textures/gui/dream.png", 16, 16, 1))
- .setPos(5, 5)
- .setSize(16, 16))
+ .widget(new DrawableWidget().setDrawable(AdaptableUITexture.of(Tags.MODID,
+ "textures/gui/dream.png",
+ 16,
+ 16,
+ 1))
+ .setPos(5, 5)
+ .setSize(16, 16))
.widget(new TextWidget(i18n("tile.boxplusplus.boxUI.module." + (moduleSN + 1))).setPos(25, 9))
- .widget(
- new DrawableWidget()
- .setDrawable(
- AdaptableUITexture.of(Tags.MODID, "textures/gui/" + (moduleSN + 1) + ".png", 100, 80, 1))
- .setPos(20, 25)
- .setSize(110, 73))
- .widget(
- new TextWidget(i18n("tile.boxplusplus.boxUI.module.context." + (moduleSN + 1) + "a"))
- .setTextAlignment(TopCenter)
- .setMaxWidth(130)
- .setPos(10, 100))
+ .widget(new DrawableWidget().setDrawable(AdaptableUITexture.of(Tags.MODID,
+ "textures/gui/" + (moduleSN + 1) + ".png",
+ 100,
+ 80,
+ 1))
+ .setPos(20, 25)
+ .setSize(110, 73))
+ .widget(new TextWidget(i18n("tile.boxplusplus.boxUI.module.context."
+ + (moduleSN + 1)
+ + "a")).setTextAlignment(TopCenter)
+ .setMaxWidth(130)
+ .setPos(10, 100))
.widget(new TextWidget(i18n("tile.boxplusplus.boxwiki.26")).setPos(20, 130))
- .widget(
- new TextWidget(i18n("tile.boxplusplus.boxUI.module.context." + (moduleSN + 1) + "b")).setMaxWidth(110)
- .setPos(20, 140))
- .widget(
- new TextWidget(
- i18n("tile.boxplusplus.boxUI.module.24")
- + i18n("tile.boxplusplus.boxUI.module.16" + (moduleSwitch[moduleSN] ? "" : "a"))
- + (moduleTier[moduleSN] == 0 ? " (T1)" : " (T2)")).setPos(20, 175));
+ .widget(new TextWidget(i18n("tile.boxplusplus.boxUI.module.context." + (moduleSN + 1) + "b")).setMaxWidth(
+ 110)
+ .setPos(20, 140))
+ .widget(new TextWidget(i18n("tile.boxplusplus.boxUI.module.24") + i18n("tile.boxplusplus.boxUI.module.16"
+ + (moduleSwitch[moduleSN] ? "" : "a")) + (moduleTier[moduleSN] == 0 ? " (T1)" : " (T2)")).setPos(
+ 20,
+ 175));
builder.widget(new ButtonWidget().setOnClick((clickData, widget) -> {
- moduleSwitch[moduleSN] = true;
- onMachineBlockUpdate();
- if (!widget.isClient()) {
- widget.getWindow()
- .closeWindow();
- }
- })
- .setSize(20, 20)
- .setBackground(() -> {
- List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_CHECKMARK);
- return UI.toArray(new IDrawable[0]);
- })
- .addTooltip(i18n("tile.boxplusplus.boxUI.module.16"))
- .setPos(100, 170)
- .setEnabled(!moduleSwitch[moduleSN]))
+ moduleSwitch[moduleSN] = true;
+ onMachineBlockUpdate();
+ if (!widget.isClient()) {
+ widget.getWindow()
+ .closeWindow();
+ }
+ })
+ .setSize(20, 20)
+ .setBackground(() -> {
+ List UI = new ArrayList<>();
+ UI.add(GT_UITextures.BUTTON_STANDARD);
+ UI.add(GT_UITextures.OVERLAY_BUTTON_CHECKMARK);
+ return UI.toArray(new IDrawable[0]);
+ })
+ .addTooltip(i18n("tile.boxplusplus.boxUI.module.16"))
+ .setPos(100, 170)
+ .setEnabled(!moduleSwitch[moduleSN]))
.widget(new ButtonWidget().setOnClick((clickData, widget) -> {
- moduleSwitch[moduleSN] = false;
- moduleActive[moduleSN] = false;
- onMachineBlockUpdate();
- if (!widget.isClient()) {
- widget.getWindow()
- .closeWindow();
- }
- })
+ moduleSwitch[moduleSN] = false;
+ moduleActive[moduleSN] = false;
+ onMachineBlockUpdate();
+ if (!widget.isClient()) {
+ widget.getWindow()
+ .closeWindow();
+ }
+ })
.setSize(20, 20)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -2129,23 +2113,21 @@ protected ModularWindow createInitialingWindow(final EntityPlayer player) {
for (int i = 0; i < 5; i++) {
randomSN.add(new Random().nextInt(5) + 1);
}
- builder.widget(
- new DrawableWidget().setDrawable(GT_UITextures.OVERLAY_BUTTON_ARROW_GREEN_UP)
+ builder.widget(new DrawableWidget().setDrawable(GT_UITextures.OVERLAY_BUTTON_ARROW_GREEN_UP)
.setPos(5, 5)
.setSize(16, 16))
- .widget(
- new TextWidget(i18n("tile.boxplusplus.boxUI.05") + i18n("tile.boxplusplus.boxUI.06") + maxRouting)
- .setPos(25, 9))
+ .widget(new TextWidget(i18n("tile.boxplusplus.boxUI.05")
+ + i18n("tile.boxplusplus.boxUI.06")
+ + maxRouting).setPos(25, 9))
.widget(new TextWidget(i18n("tile.boxplusplus.boxUI.40") + maxParallel).setPos(170, 9))
- .widget(
- ButtonWidget.closeWindowButton(true)
- .setPos(240, 5));
+ .widget(ButtonWidget.closeWindowButton(true)
+ .setPos(240, 5));
builder.widget(new ButtonWidget().setOnClick((clickData, widget) -> {
- if (!widget.isClient()) {
- widget.getContext()
- .openSyncedWindow(16);
- }
- })
+ if (!widget.isClient()) {
+ widget.getContext()
+ .openSyncedWindow(16);
+ }
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -2158,33 +2140,33 @@ protected ModularWindow createInitialingWindow(final EntityPlayer player) {
.setEnabled(routingMap.size() == 0));
// Next Page & Previous Page
builder.widget(new ButtonWidget().setOnClick((clickData, widget) -> {
- routingPageCode += 1;
- if (!widget.isClient()) {
- widget.getWindow()
- .closeWindow();
- widget.getContext()
- .openSyncedWindow(10);
- }
- })
- .setSize(16, 16)
- .setBackground(() -> {
- List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_ARROW_GREEN_DOWN);
- return UI.toArray(new IDrawable[0]);
- })
- .addTooltip(i18n("tile.boxplusplus.boxUI.38"))
- .setPos(200, 48)
- .setEnabled(routingPageCode < Math.ceil((routingMap.size() + (recipe.islocked ? 0 : 1)) / 10.0)))
- .widget(new ButtonWidget().setOnClick((clickData, widget) -> {
- routingPageCode -= 1;
- if (!widget.isClient()) {
- widget.getWindow()
- .closeWindow();
- widget.getContext()
- .openSyncedWindow(10);
- }
- })
+ routingPageCode += 1;
+ if (!widget.isClient()) {
+ widget.getWindow()
+ .closeWindow();
+ widget.getContext()
+ .openSyncedWindow(10);
+ }
+ })
+ .setSize(16, 16)
+ .setBackground(() -> {
+ List UI = new ArrayList<>();
+ UI.add(GT_UITextures.BUTTON_STANDARD);
+ UI.add(GT_UITextures.OVERLAY_BUTTON_ARROW_GREEN_DOWN);
+ return UI.toArray(new IDrawable[0]);
+ })
+ .addTooltip(i18n("tile.boxplusplus.boxUI.38"))
+ .setPos(200, 48)
+ .setEnabled(routingPageCode < Math.ceil((routingMap.size() + (recipe.islocked ? 0 : 1)) / 10.0)))
+ .widget(new ButtonWidget().setOnClick((clickData, widget) -> {
+ routingPageCode -= 1;
+ if (!widget.isClient()) {
+ widget.getWindow()
+ .closeWindow();
+ widget.getContext()
+ .openSyncedWindow(10);
+ }
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -2197,20 +2179,19 @@ protected ModularWindow createInitialingWindow(final EntityPlayer player) {
.setEnabled(routingPageCode != 1));
// export
builder.widget(new ButtonWidget().setOnClick((clickData, widget) -> {
- if (widget.isClient()) {
- NBTTagCompound Routing = new NBTTagCompound();
- Routing.setInteger("TotalRouting", routingMap.size());
- for (int i = 0; i < routingMap.size(); i++) {
- Routing.setTag(
- "Routing" + (i + 1),
- routingMap.get(i)
- .routingToUNbt());
+ if (widget.isClient()) {
+ NBTTagCompound Routing = new NBTTagCompound();
+ Routing.setInteger("TotalRouting", routingMap.size());
+ for (int i = 0; i < routingMap.size(); i++) {
+ Routing.setTag("Routing" + (i + 1),
+ routingMap.get(i)
+ .routingToUNbt());
+ }
+ GuiScreen.setClipboardString(serialize(Routing));
+ player.addChatMessage(new ChatComponentText(i18n("tile.boxplusplus.chatmessage.2")));
+ player.closeScreen();
}
- GuiScreen.setClipboardString(serialize(Routing));
- player.addChatMessage(new ChatComponentText(i18n("tile.boxplusplus.chatmessage.2")));
- player.closeScreen();
- }
- })
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -2221,18 +2202,19 @@ protected ModularWindow createInitialingWindow(final EntityPlayer player) {
.addTooltip(i18n("tile.boxplusplus.boxUI.31"))
.setPos(200, 25)
.setEnabled(recipe.islocked));
- for (int i = 10 * routingPageCode - 9; i
- <= Math.min(10 * routingPageCode, routingMap.size() + (recipe.islocked ? 0 : 1)); i++) {
+ for (int i = 10 * routingPageCode - 9; i <= Math.min(
+ 10 * routingPageCode,
+ routingMap.size() + (recipe.islocked ? 0 : 1)); i++) {
int finalI = i;
int posY = 18 * (i % 10 == 0 ? 10 : i % 10);
builder.widget(new TextWidget(i18n("tile.boxplusplus.boxUI.07") + i).setPos(43, 9 + posY))
.widget(new ButtonWidget().setOnClick((clickData, widget) -> {
- BoxRoutings.checkRouting(this);
- if (!widget.isClient()) {
- player.closeScreen();
- GT_UIInfos.openGTTileEntityUI(getBaseMetaTileEntity(), player);
- }
- })
+ BoxRoutings.checkRouting(this);
+ if (!widget.isClient()) {
+ player.closeScreen();
+ GT_UIInfos.openGTTileEntityUI(getBaseMetaTileEntity(), player);
+ }
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -2244,12 +2226,12 @@ protected ModularWindow createInitialingWindow(final EntityPlayer player) {
.setPos(81, 7 + posY)
.setEnabled(routingMap.size() == (i - 1)))
.widget(new ButtonWidget().setOnClick((clickData, widget) -> {
- moduleSN = finalI;
- if (!widget.isClient()) {
- widget.getContext()
- .openSyncedWindow(11);
- }
- })
+ moduleSN = finalI;
+ if (!widget.isClient()) {
+ widget.getContext()
+ .openSyncedWindow(11);
+ }
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -2261,16 +2243,16 @@ protected ModularWindow createInitialingWindow(final EntityPlayer player) {
.setPos(81, 7 + posY)
.setEnabled(routingMap.size() >= i))
.widget(new ButtonWidget().setOnClick((clickData, widget) -> {
- if (!clickData.shift) return;
- moduleSN = finalI;
- routingMap.remove(moduleSN - 1);
- if (!widget.isClient()) {
- widget.getWindow()
- .closeWindow();
- widget.getContext()
- .openSyncedWindow(10);
- }
- })
+ if (!clickData.shift) return;
+ moduleSN = finalI;
+ routingMap.remove(moduleSN - 1);
+ if (!widget.isClient()) {
+ widget.getWindow()
+ .closeWindow();
+ widget.getContext()
+ .openSyncedWindow(10);
+ }
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -2284,52 +2266,49 @@ protected ModularWindow createInitialingWindow(final EntityPlayer player) {
if (routingMap.size() != i - 1) {
ItemStackHandler drawitem = new ItemStackHandler(1);
drawitem.setStackInSlot(0, routingMap.get(i - 1).RoutingMachine);
- builder.widget(
- SlotWidget.phantom(drawitem, 0)
- .disableInteraction()
- .setSize(16, 16)
- .setPos(21, 7 + posY));
+ builder.widget(SlotWidget.phantom(drawitem, 0)
+ .disableInteraction()
+ .setSize(16, 16)
+ .setPos(21, 7 + posY));
}
}
- builder.widget(
- new DrawableWidget().setDrawable(GT_UITextures.OVERLAY_BUTTON_CROSS)
+ builder.widget(new DrawableWidget().setDrawable(GT_UITextures.OVERLAY_BUTTON_CROSS)
.setPos(140, 71)
.setSize(24, 24)
.addTooltip(i18n("tile.boxplusplus.boxUI.ErrorCode." + routingStatus))
.setEnabled(routingStatus != 0 && !recipe.islocked))
- .widget(
- new DrawableWidget().setDrawable(GT_UITextures.OVERLAY_BUTTON_CHECKMARK)
- .setPos(140, 71)
- .setSize(36, 36)
- .addTooltip(i18n("tile.boxplusplus.boxUI.19"))
- .setEnabled(routingStatus == 0 && !recipe.islocked));
+ .widget(new DrawableWidget().setDrawable(GT_UITextures.OVERLAY_BUTTON_CHECKMARK)
+ .setPos(140, 71)
+ .setSize(36, 36)
+ .addTooltip(i18n("tile.boxplusplus.boxUI.19"))
+ .setEnabled(routingStatus == 0 && !recipe.islocked));
builder.widget(new ButtonWidget().setOnClick((clickData, widget) -> {
- if (!recipe.islocked) buildRecipe();
- if (!widget.isClient()) {
- widget.getContext()
- .openSyncedWindow(12);
- }
- })
- .setSize(32, 32)
- .setBackground(() -> {
- List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_POWER_SWITCH_ON);
- return UI.toArray(new IDrawable[0]);
- })
- .addTooltip(i18n("tile.boxplusplus.boxUI.20"))
- .setPos(140, 26)
- .setEnabled(!routingMap.isEmpty() && !recipe.islocked))
+ if (!recipe.islocked) buildRecipe();
+ if (!widget.isClient()) {
+ widget.getContext()
+ .openSyncedWindow(12);
+ }
+ })
+ .setSize(32, 32)
+ .setBackground(() -> {
+ List UI = new ArrayList<>();
+ UI.add(GT_UITextures.BUTTON_STANDARD);
+ UI.add(GT_UITextures.OVERLAY_BUTTON_POWER_SWITCH_ON);
+ return UI.toArray(new IDrawable[0]);
+ })
+ .addTooltip(i18n("tile.boxplusplus.boxUI.20"))
+ .setPos(140, 26)
+ .setEnabled(!routingMap.isEmpty() && !recipe.islocked))
// Double Recipe
.widget(new ButtonWidget().setOnClick((clickData, widget) -> {
- if (!widget.isClient()) {
- routingStatus = doubleRecipe() ? 0 : 10;
- widget.getWindow()
- .closeWindow();
- widget.getContext()
- .openSyncedWindow(10);
- }
- })
+ if (!widget.isClient()) {
+ routingStatus = doubleRecipe() ? 0 : 10;
+ widget.getWindow()
+ .closeWindow();
+ widget.getContext()
+ .openSyncedWindow(10);
+ }
+ })
.setSize(14, 14)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -2342,14 +2321,14 @@ protected ModularWindow createInitialingWindow(final EntityPlayer player) {
.setEnabled(!routingMap.isEmpty() && !recipe.islocked))
// Halve Recipe
.widget(new ButtonWidget().setOnClick((clickData, widget) -> {
- if (!widget.isClient()) {
- routingStatus = halveRecipe() ? 0 : 9;
- widget.getWindow()
- .closeWindow();
- widget.getContext()
- .openSyncedWindow(10);
- }
- })
+ if (!widget.isClient()) {
+ routingStatus = halveRecipe() ? 0 : 9;
+ widget.getWindow()
+ .closeWindow();
+ widget.getContext()
+ .openSyncedWindow(10);
+ }
+ })
.setSize(14, 14)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -2362,11 +2341,11 @@ protected ModularWindow createInitialingWindow(final EntityPlayer player) {
.setEnabled(!routingMap.isEmpty() && !recipe.islocked))
// export AE pattern
.widget(new ButtonWidget().setOnClick((clickData, widget) -> {
- if (!widget.isClient()) {
- widget.getContext()
- .openSyncedWindow(17);
- }
- })
+ if (!widget.isClient()) {
+ widget.getContext()
+ .openSyncedWindow(17);
+ }
+ })
.setSize(14, 14)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -2379,11 +2358,11 @@ protected ModularWindow createInitialingWindow(final EntityPlayer player) {
.setEnabled(recipe.islocked))
// clear recipe
.widget(new ButtonWidget().setOnClick((clickData, widget) -> {
- if (!widget.isClient()) {
- widget.getContext()
- .openSyncedWindow(20);
- }
- })
+ if (!widget.isClient()) {
+ widget.getContext()
+ .openSyncedWindow(20);
+ }
+ })
.setSize(14, 14)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -2395,11 +2374,11 @@ protected ModularWindow createInitialingWindow(final EntityPlayer player) {
.setPos(175, 44)
.setEnabled(recipe.islocked))
.widget(new ButtonWidget().setOnClick((clickData, widget) -> {
- if (!widget.isClient()) {
- widget.getContext()
- .openSyncedWindow(12);
- }
- })
+ if (!widget.isClient()) {
+ widget.getContext()
+ .openSyncedWindow(12);
+ }
+ })
.setSize(32, 32)
.setBackground(() -> {
List ret = new ArrayList<>();
@@ -2419,127 +2398,93 @@ protected ModularWindow createInitialingWindow(final EntityPlayer player) {
* @param player who is using the box
*/
protected ModularWindow createRoutingWindow(final EntityPlayer player) {
- ModularWindow.Builder builder = ModularWindow.builder(
- 220,
- 80 + routingMap.get(moduleSN - 1)
+ ModularWindow.Builder builder = ModularWindow.builder(220,
+ 80
+ + routingMap.get(moduleSN - 1)
.calHeight() * 18);
builder.setBackground(GT_UITextures.BACKGROUND_SINGLEBLOCK_DEFAULT);
builder.setGuiTint(getGUIColorization());
Synchronize(builder);
- builder.widget(
- new DrawableWidget().setDrawable(GT_UITextures.OVERLAY_BUTTON_AUTOOUTPUT_FLUID)
+ builder.widget(new DrawableWidget().setDrawable(GT_UITextures.OVERLAY_BUTTON_AUTOOUTPUT_FLUID)
.setPos(5, 5)
.setSize(16, 16))
.widget(new TextWidget(i18n("tile.boxplusplus.boxUI.10") + moduleSN).setPos(25, 9))
- .widget(
- ButtonWidget.closeWindowButton(true)
- .setPos(200, 5));
+ .widget(ButtonWidget.closeWindowButton(true)
+ .setPos(200, 5));
int Ycord = 9;
for (int i = 0; i < routingMap.get(moduleSN - 1).InputItem.size(); i++) {
ItemStackHandler drawitem = new ItemStackHandler(1);
drawitem.setStackInSlot(0, routingMap.get(moduleSN - 1).InputItem.get(i));
- builder.widget(
- SlotWidget.phantom(drawitem, 0)
- .disableInteraction()
- .setPos(25, Ycord += 16));
- builder.widget(
- new TextWidget(
- i18n("tile.boxplusplus.boxUI.11") + (i + 1)
- + ": "
- + routingMap.get(moduleSN - 1).InputItem.get(i)
- .getDisplayName()).setPos(50, Ycord + 4));
+ builder.widget(SlotWidget.phantom(drawitem, 0)
+ .disableInteraction()
+ .setPos(25, Ycord += 16));
+ builder.widget(new TextWidget(i18n("tile.boxplusplus.boxUI.11") + (i + 1) + ": " + routingMap.get(moduleSN
+ - 1).InputItem.get(i)
+ .getDisplayName()).setPos(50, Ycord + 4));
}
for (int i = 0; i < routingMap.get(moduleSN - 1).InputFluid.size(); i++) {
- builder.widget(
- FluidSlotWidget
- .phantom(
- new FluidTank(
- routingMap.get(moduleSN - 1).InputFluid.get(i),
- routingMap.get(moduleSN - 1).InputFluid.get(i).amount),
- true)
- .setInteraction(false, false)
- .setPos(25, Ycord += 16));
- builder.widget(
- new TextWidget(
- i18n("tile.boxplusplus.boxUI.12") + (i + 1)
- + ": "
- + routingMap.get(moduleSN - 1).InputFluid.get(i)
- .getLocalizedName()).setPos(50, Ycord + 4));
+ builder.widget(FluidSlotWidget.phantom(new FluidTank(routingMap.get(moduleSN - 1).InputFluid.get(i),
+ routingMap.get(moduleSN - 1).InputFluid.get(i).amount), true)
+ .setInteraction(false, false)
+ .setPos(25, Ycord += 16));
+ builder.widget(new TextWidget(i18n("tile.boxplusplus.boxUI.12") + (i + 1) + ": " + routingMap.get(moduleSN
+ - 1).InputFluid.get(i)
+ .getLocalizedName()).setPos(50, Ycord + 4));
}
for (int i = 0; i < routingMap.get(moduleSN - 1).OutputItem.size(); i++) {
ItemStackHandler drawitem = new ItemStackHandler(1);
drawitem.setStackInSlot(0, routingMap.get(moduleSN - 1).OutputItem.get(i));
- builder.widget(
- SlotWidget.phantom(drawitem, 0)
- .disableInteraction()
- .setPos(25, Ycord += 16));
- builder.widget(
- new TextWidget(
- i18n("tile.boxplusplus.boxUI.13") + (i + 1)
- + ": "
- + routingMap.get(moduleSN - 1).OutputItem.get(i)
- .getDisplayName()
- + "("
- + routingMap.get(moduleSN - 1).OutputChance.get(i) / 10000.0
- + ")").setPos(50, Ycord + 4));
+ builder.widget(SlotWidget.phantom(drawitem, 0)
+ .disableInteraction()
+ .setPos(25, Ycord += 16));
+ builder.widget(new TextWidget(i18n("tile.boxplusplus.boxUI.13") + (i + 1) + ": " + routingMap.get(moduleSN
+ - 1).OutputItem.get(i)
+ .getDisplayName() + "(" + routingMap.get(moduleSN - 1).OutputChance.get(i) / 10000.0 + ")").setPos(
+ 50,
+ Ycord + 4));
}
for (int i = 0; i < routingMap.get(moduleSN - 1).OutputFluid.size(); i++) {
- builder.widget(
- FluidSlotWidget
- .phantom(
- new FluidTank(
- routingMap.get(moduleSN - 1).OutputFluid.get(i),
- routingMap.get(moduleSN - 1).OutputFluid.get(i).amount),
- true)
- .setInteraction(false, false)
- .setPos(25, Ycord += 16));
- builder.widget(
- new TextWidget(
- i18n("tile.boxplusplus.boxUI.14") + (i + 1)
- + ": "
- + routingMap.get(moduleSN - 1).OutputFluid.get(i)
- .getLocalizedName()).setPos(50, Ycord + 4));
+ builder.widget(FluidSlotWidget.phantom(new FluidTank(routingMap.get(moduleSN - 1).OutputFluid.get(i),
+ routingMap.get(moduleSN - 1).OutputFluid.get(i).amount), true)
+ .setInteraction(false, false)
+ .setPos(25, Ycord += 16));
+ builder.widget(new TextWidget(i18n("tile.boxplusplus.boxUI.14") + (i + 1) + ": " + routingMap.get(moduleSN
+ - 1).OutputFluid.get(i)
+ .getLocalizedName()).setPos(50, Ycord + 4));
}
ItemStackHandler drawitem = new ItemStackHandler(1);
drawitem.setStackInSlot(0, routingMap.get(moduleSN - 1).RoutingMachine);
- builder.widget(
- SlotWidget.phantom(drawitem, 0)
- .disableInteraction()
- .setPos(25, Ycord += 20));
- builder.widget(
- new TextWidget(
- i18n("tile.boxplusplus.boxUI.15") + routingMap.get(moduleSN - 1).RoutingMachine.getDisplayName())
- .setPos(50, Ycord + 4));
- builder.widget(
- new TextWidget(i18n("tile.boxplusplus.boxUI.16") + routingMap.get(moduleSN - 1).voltage + "eu/t")
- .setPos(50, Ycord += 16));
- builder.widget(
- new TextWidget(
- i18n("tile.boxplusplus.boxUI.17") + routingMap.get(moduleSN - 1).time / 20.00
- + "s ("
- + routingMap.get(moduleSN - 1).time
- + "tick)").setPos(50, Ycord += 16));
- builder.widget(
- new TextWidget(new Text(i18n("tile.boxplusplus.boxUI.23"))).setTextAlignment(Alignment.Center)
+ builder.widget(SlotWidget.phantom(drawitem, 0)
+ .disableInteraction()
+ .setPos(25, Ycord += 20));
+ builder.widget(new TextWidget(i18n("tile.boxplusplus.boxUI.15") + routingMap.get(moduleSN
+ - 1).RoutingMachine.getDisplayName()).setPos(50, Ycord + 4));
+ builder.widget(new TextWidget(i18n("tile.boxplusplus.boxUI.16")
+ + routingMap.get(moduleSN - 1).voltage
+ + "eu/t").setPos(50, Ycord += 16));
+ builder.widget(new TextWidget(i18n("tile.boxplusplus.boxUI.17")
+ + routingMap.get(moduleSN - 1).time / 20.00
+ + "s ("
+ + routingMap.get(moduleSN - 1).time
+ + "tick)").setPos(50, Ycord += 16));
+ builder.widget(new TextWidget(new Text(i18n("tile.boxplusplus.boxUI.23"))).setTextAlignment(Alignment.Center)
.setSize(30, 16)
.setPos(22, Ycord - 15))
- .widget(
- new TextFieldWidget().setGetterInt(() -> routingMap.get(moduleSN - 1).Parallel)
- .setSetterInt(val -> routingMap.get(moduleSN - 1).Parallel = val)
- .setNumbers(1, maxParallel)
- .setTextColor(Color.WHITE.normal)
- .setTextAlignment(Alignment.Center)
- .addTooltip(i18n("tile.boxplusplus.boxUI.24"))
- .setBackground(GT_UITextures.BACKGROUND_TEXT_FIELD)
- .setSize(40, 14)
- .setPos(5, Ycord)
- .setEnabled(!recipe.islocked))
- .widget(
- new TextWidget(new Text(String.valueOf(routingMap.get(moduleSN - 1).Parallel))).setScale(1.2f)
- .setTextAlignment(Alignment.Center)
- .setSize(20, 16)
- .setPos(25, Ycord - 2)
- .setEnabled(recipe.islocked));
+ .widget(new TextFieldWidget().setGetterInt(() -> routingMap.get(moduleSN - 1).Parallel)
+ .setSetterInt(val -> routingMap.get(moduleSN - 1).Parallel = val)
+ .setNumbers(1, maxParallel)
+ .setTextColor(Color.WHITE.normal)
+ .setTextAlignment(Alignment.Center)
+ .addTooltip(i18n("tile.boxplusplus.boxUI.24"))
+ .setBackground(GT_UITextures.BACKGROUND_TEXT_FIELD)
+ .setSize(40, 14)
+ .setPos(5, Ycord)
+ .setEnabled(!recipe.islocked))
+ .widget(new TextWidget(new Text(String.valueOf(routingMap.get(moduleSN - 1).Parallel))).setScale(1.2f)
+ .setTextAlignment(Alignment.Center)
+ .setSize(20, 16)
+ .setPos(25, Ycord - 2)
+ .setEnabled(recipe.islocked));
return builder.build();
}
@@ -2590,43 +2535,41 @@ public void onRemoveFocus() {
}
};
return builder.widget(new TextWidget(i18n("tile.boxplusplus.boxUI.46")).setPos(5, 5))
- .widget(
- textField.setMaxLength(10000)
- .setTextAlignment(Alignment.CenterLeft)
- .setTextColor(Color.WHITE.dark(1))
- .setFocusOnGuiOpen(true)
- .setBackground(GT_UITextures.BACKGROUND_TEXT_FIELD_LIGHT_GRAY.withOffset(-1, -1, 2, 2))
- .setPos(5, 16)
- .setSize(250, 16))
+ .widget(textField.setMaxLength(10000)
+ .setTextAlignment(Alignment.CenterLeft)
+ .setTextColor(Color.WHITE.dark(1))
+ .setFocusOnGuiOpen(true)
+ .setBackground(GT_UITextures.BACKGROUND_TEXT_FIELD_LIGHT_GRAY.withOffset(-1, -1, 2, 2))
+ .setPos(5, 16)
+ .setSize(250, 16))
.widget(new ButtonWidget().setOnClick((clickData, widget) -> {
- if (!widget.isClient()) {
- String ls = textField.getText();
- NBTTagCompound routing = deserialize(ls);
- try {
- if (routing != null) {
- int count = routing.getInteger("TotalRouting");
- if (count > maxRouting) {
- routingStatus = 8;
- player.addChatMessage(new ChatComponentText(i18n("tile.boxplusplus.chatmessage.4")));
- return;
- }
- routingMap.clear();
- for (int i = 1; i <= count; i++) {
- routingMap.add(new BoxRoutings(routing.getCompoundTag("Routing" + i), true));
+ if (!widget.isClient()) {
+ String ls = textField.getText();
+ NBTTagCompound routing = deserialize(ls);
+ try {
+ if (routing != null) {
+ int count = routing.getInteger("TotalRouting");
+ if (count > maxRouting) {
+ routingStatus = 8;
+ player.addChatMessage(new ChatComponentText(i18n("tile.boxplusplus.chatmessage.4")));
+ return;
+ }
+ routingMap.clear();
+ for (int i = 1; i <= count; i++) {
+ routingMap.add(new BoxRoutings(routing.getCompoundTag("Routing" + i), true));
+ }
+ player.addChatMessage(new ChatComponentText(i18n("tile.boxplusplus.chatmessage.5").replaceFirst(
+ "%count",
+ String.valueOf(count))));
+ routingStatus = 0;
+ } else {
+ player.addChatMessage(new ChatComponentText(i18n("tile.boxplusplus.chatmessage.6")));
}
- player.addChatMessage(
- new ChatComponentText(
- i18n("tile.boxplusplus.chatmessage.5")
- .replaceFirst("%count", String.valueOf(count))));
- routingStatus = 0;
- } else {
- player.addChatMessage(new ChatComponentText(i18n("tile.boxplusplus.chatmessage.6")));
+ } finally {
+ player.closeScreen();
}
- } finally {
- player.closeScreen();
}
- }
- })
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -2647,30 +2590,28 @@ protected ModularWindow createExportPatternWindow(final EntityPlayer player) {
TextFieldWidget inputItem = new TextFieldWidget().setValidator(var -> Util.validator(recipe, var, false));
TextFieldWidget inputFluid = new TextFieldWidget().setValidator(var -> Util.validator(recipe, var, true));
return builder.widget(new TextWidget(i18n("tile.boxplusplus.boxUI.48")).setPos(5, 45))
- .widget(
- inputItem.setTextAlignment(Alignment.CenterLeft)
- .setTextColor(Color.WHITE.dark(1))
- .setFocusOnGuiOpen(false)
- .setBackground(GT_UITextures.BACKGROUND_TEXT_FIELD_LIGHT_GRAY.withOffset(-1, -1, 2, 2))
- .setPos(12, 10)
- .addTooltip(i18n("tile.boxplusplus.boxUI.13"))
- .setSize(60, 12))
- .widget(
- inputFluid.setTextAlignment(Alignment.CenterLeft)
- .setTextColor(Color.WHITE.dark(1))
- .setFocusOnGuiOpen(false)
- .setBackground(GT_UITextures.BACKGROUND_TEXT_FIELD_LIGHT_GRAY.withOffset(-1, -1, 2, 2))
- .setPos(96, 10)
- .addTooltip(i18n("tile.boxplusplus.boxUI.14"))
- .setSize(60, 12))
+ .widget(inputItem.setTextAlignment(Alignment.CenterLeft)
+ .setTextColor(Color.WHITE.dark(1))
+ .setFocusOnGuiOpen(false)
+ .setBackground(GT_UITextures.BACKGROUND_TEXT_FIELD_LIGHT_GRAY.withOffset(-1, -1, 2, 2))
+ .setPos(12, 10)
+ .addTooltip(i18n("tile.boxplusplus.boxUI.13"))
+ .setSize(60, 12))
+ .widget(inputFluid.setTextAlignment(Alignment.CenterLeft)
+ .setTextColor(Color.WHITE.dark(1))
+ .setFocusOnGuiOpen(false)
+ .setBackground(GT_UITextures.BACKGROUND_TEXT_FIELD_LIGHT_GRAY.withOffset(-1, -1, 2, 2))
+ .setPos(96, 10)
+ .addTooltip(i18n("tile.boxplusplus.boxUI.14"))
+ .setSize(60, 12))
.widget(new ButtonWidget().setOnClick((clickData, widget) -> {
- if (!widget.isClient()) {
- String itemInput = inputItem.getText();
- String fluidInput = inputFluid.getText();
- makeAE2Pattern(player, itemInput, fluidInput);
- player.closeScreen();
- }
- })
+ if (!widget.isClient()) {
+ String itemInput = inputItem.getText();
+ String fluidInput = inputFluid.getText();
+ makeAE2Pattern(player, itemInput, fluidInput);
+ player.closeScreen();
+ }
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -2691,55 +2632,56 @@ protected ModularWindow createClearWindow(final EntityPlayer player) {
builder.setBackground(GT_UITextures.BACKGROUND_SINGLEBLOCK_DEFAULT);
builder.setGuiTint(getGUIColorization());
Synchronize(builder);
- builder
- .widget(
- new DrawableWidget().setDrawable(AdaptableUITexture.of(Tags.MODID, "textures/gui/clear.png", 16, 16, 1))
- .setPos(5, 5)
- .setSize(16, 16))
- .widget(
- new TextWidget(
- (randomSN.size() != 1 ? i18n("tile.boxplusplus.boxUI.42") : i18n("tile.boxplusplus.boxUI.43"))
- + i18n("tile.boxplusplus.boxUI.44")
- + EnumChatFormatting.RED
- + randomSN.get(randomSN.size() - 1)).setPos(25, 5));
+ builder.widget(new DrawableWidget().setDrawable(AdaptableUITexture.of(
+ Tags.MODID,
+ "textures/gui/clear.png",
+ 16,
+ 16,
+ 1))
+ .setPos(5, 5)
+ .setSize(16, 16))
+ .widget(new TextWidget((randomSN.size() != 1
+ ? i18n("tile.boxplusplus.boxUI.42")
+ : i18n("tile.boxplusplus.boxUI.43"))
+ + i18n("tile.boxplusplus.boxUI.44")
+ + EnumChatFormatting.RED
+ + randomSN.get(randomSN.size() - 1)).setPos(25, 5));
for (int i = 1; i <= 5; i++) {
int finalI = i;
builder.widget(new ButtonWidget().setOnClick((clickData, widget) -> {
- if (finalI == randomSN.get(randomSN.size() - 1)) {
- if (randomSN.size() == 1) {
- if (!widget.isClient()) {
- routingMap.clear();
- recipe = new BoxRecipe();
- routingPageCode = 1;
- routingStatus = 0;
- player.closeScreen();
- player.addChatMessage(new ChatComponentText(i18n("tile.boxplusplus.boxUI.45")));
+ if (finalI == randomSN.get(randomSN.size() - 1)) {
+ if (randomSN.size() == 1) {
+ if (!widget.isClient()) {
+ routingMap.clear();
+ recipe = new BoxRecipe();
+ routingPageCode = 1;
+ routingStatus = 0;
+ player.closeScreen();
+ player.addChatMessage(new ChatComponentText(i18n("tile.boxplusplus.boxUI.45")));
+ }
+ } else {
+ randomSN.remove(randomSN.size() - 1);
+ if (!widget.isClient()) {
+ widget.getWindow()
+ .closeWindow();
+ widget.getContext()
+ .openSyncedWindow(20);
+ }
}
} else {
- randomSN.remove(randomSN.size() - 1);
- if (!widget.isClient()) {
- widget.getWindow()
- .closeWindow();
- widget.getContext()
- .openSyncedWindow(20);
- }
+ player.closeScreen();
+ player.addChatMessage(new ChatComponentText(i18n("tile.boxplusplus.boxUI.47")));
}
- } else {
- player.closeScreen();
- player.addChatMessage(new ChatComponentText(i18n("tile.boxplusplus.boxUI.47")));
- }
- })
+ })
.setSize(24, 24)
.setBackground(() -> {
List UI = new ArrayList<>();
UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(
- AdaptableUITexture.of(
- Tags.MODID,
- "textures/gui/number%.png".replaceFirst("%", String.valueOf(finalI)),
- 275,
- 81,
- 1));
+ UI.add(AdaptableUITexture.of(Tags.MODID,
+ "textures/gui/number%.png".replaceFirst("%", String.valueOf(finalI)),
+ 275,
+ 81,
+ 1));
return UI.toArray(new IDrawable[0]);
})
.setPos(28 * (i - 1) + 5, 30 + (randomSN.size() == 1 ? 15 : 0)));
@@ -2756,103 +2698,93 @@ protected ModularWindow createFinalRecipeWindow(final EntityPlayer player) {
ModularWindow.Builder builder = ModularWindow.builder(220, 150 + recipe.calHeight() * 20);
builder.setBackground(GT_UITextures.BACKGROUND_SINGLEBLOCK_DEFAULT);
builder.setGuiTint(getGUIColorization());
- builder.widget(
- new DrawableWidget().setDrawable(GT_UITextures.OVERLAY_BUTTON_AUTOOUTPUT_FLUID)
+ builder.widget(new DrawableWidget().setDrawable(GT_UITextures.OVERLAY_BUTTON_AUTOOUTPUT_FLUID)
.setPos(5, 5)
.setSize(16, 16))
.widget(new TextWidget(i18n("tile.boxplusplus.boxUI.22")).setPos(25, 9))
- .widget(
- ButtonWidget.closeWindowButton(true)
- .setPos(200, 5));
+ .widget(ButtonWidget.closeWindowButton(true)
+ .setPos(200, 5));
int Ycord = 9;
for (int i = 0; i < recipe.FinalItemInput.size(); i++) {
ItemStackHandler drawitem = new ItemStackHandler(1);
drawitem.setStackInSlot(0, recipe.FinalItemInput.get(i));
- builder.widget(
- SlotWidget.phantom(drawitem, 0)
- .disableInteraction()
- .disableInteraction()
- .setPos(25, Ycord += 16));
- builder.widget(
- new TextWidget(
- i18n("tile.boxplusplus.boxUI.11") + (i + 1)
- + ": "
- + recipe.FinalItemInput.get(i)
- .getDisplayName()).setPos(50, Ycord + 4));
+ builder.widget(SlotWidget.phantom(drawitem, 0)
+ .disableInteraction()
+ .disableInteraction()
+ .setPos(25, Ycord += 16));
+ builder.widget(new TextWidget(i18n("tile.boxplusplus.boxUI.11")
+ + (i + 1)
+ + ": "
+ + recipe.FinalItemInput.get(i)
+ .getDisplayName()).setPos(50, Ycord + 4));
}
for (int i = 0; i < recipe.FinalFluidInput.size(); i++) {
- builder.widget(
- FluidSlotWidget
- .phantom(new FluidTank(recipe.FinalFluidInput.get(i), recipe.FinalFluidInput.get(i).amount), true)
- .setInteraction(false, false)
- .setPos(25, Ycord += 16));
- builder.widget(
- new TextWidget(
- i18n("tile.boxplusplus.boxUI.12") + (i + 1)
- + ": "
- + recipe.FinalFluidInput.get(i)
- .getLocalizedName()).setPos(50, Ycord + 4));
+ builder.widget(FluidSlotWidget.phantom(new FluidTank(
+ recipe.FinalFluidInput.get(i),
+ recipe.FinalFluidInput.get(i).amount), true)
+ .setInteraction(false, false)
+ .setPos(25, Ycord += 16));
+ builder.widget(new TextWidget(i18n("tile.boxplusplus.boxUI.12")
+ + (i + 1)
+ + ": "
+ + recipe.FinalFluidInput.get(i)
+ .getLocalizedName()).setPos(50, Ycord + 4));
}
for (int i = 0; i < recipe.FinalItemOutput.size(); i++) {
ItemStackHandler drawitem = new ItemStackHandler(1);
drawitem.setStackInSlot(0, recipe.FinalItemOutput.get(i));
- builder.widget(
- SlotWidget.phantom(drawitem, 0)
- .disableInteraction()
- .setPos(25, Ycord += 16));
- builder.widget(
- new TextWidget(
- i18n("tile.boxplusplus.boxUI.13") + (i + 1)
- + ": "
- + recipe.FinalItemOutput.get(i)
- .getDisplayName()).setPos(50, Ycord + 4));
+ builder.widget(SlotWidget.phantom(drawitem, 0)
+ .disableInteraction()
+ .setPos(25, Ycord += 16));
+ builder.widget(new TextWidget(i18n("tile.boxplusplus.boxUI.13")
+ + (i + 1)
+ + ": "
+ + recipe.FinalItemOutput.get(i)
+ .getDisplayName()).setPos(50, Ycord + 4));
}
for (int i = 0; i < recipe.FinalFluidOutput.size(); i++) {
- builder.widget(
- FluidSlotWidget
- .phantom(new FluidTank(recipe.FinalFluidOutput.get(i), recipe.FinalFluidOutput.get(i).amount), true)
- .setInteraction(false, false)
- .setPos(25, Ycord += 16));
- builder.widget(
- new TextWidget(
- i18n("tile.boxplusplus.boxUI.14") + (i + 1)
- + ": "
- + recipe.FinalFluidOutput.get(i)
- .getLocalizedName()).setPos(50, Ycord + 4));
+ builder.widget(FluidSlotWidget.phantom(new FluidTank(
+ recipe.FinalFluidOutput.get(i),
+ recipe.FinalFluidOutput.get(i).amount), true)
+ .setInteraction(false, false)
+ .setPos(25, Ycord += 16));
+ builder.widget(new TextWidget(i18n("tile.boxplusplus.boxUI.14")
+ + (i + 1)
+ + ": "
+ + recipe.FinalFluidOutput.get(i)
+ .getLocalizedName()).setPos(50, Ycord + 4));
}
- builder.widget(
- new TextWidget(i18n("tile.boxplusplus.boxUI.16") + recipe.FinalVoteage + " eu/t").setPos(50, Ycord += 20))
- .widget(
- new TextWidget(
- i18n("tile.boxplusplus.boxUI.17") + recipe.FinalTime / 20.00 + "s (" + recipe.FinalTime + "tick)")
- .setPos(50, Ycord += 16));
- builder.widget(
- new TextWidget(i18n("tile.boxplusplus.boxUI.29") + recipe.parallel).setMaxWidth(180)
- .setPos(50, Ycord += 16));
- builder.widget(
- new TextWidget(i18n("tile.boxplusplus.boxUI.32").replace("%max", String.valueOf(maxParallel)))
- .setMaxWidth(180)
- .setPos(25, Ycord += 16)
- .setEnabled(recipe.parallel > maxParallel));
+ builder.widget(new TextWidget(i18n("tile.boxplusplus.boxUI.16") + recipe.FinalVoteage + " eu/t").setPos(
+ 50,
+ Ycord += 20))
+ .widget(new TextWidget(i18n("tile.boxplusplus.boxUI.17")
+ + recipe.FinalTime / 20.00
+ + "s ("
+ + recipe.FinalTime
+ + "tick)").setPos(50, Ycord += 16));
+ builder.widget(new TextWidget(i18n("tile.boxplusplus.boxUI.29") + recipe.parallel).setMaxWidth(180)
+ .setPos(50, Ycord += 16));
+ builder.widget(new TextWidget(i18n("tile.boxplusplus.boxUI.32").replace(
+ "%max",
+ String.valueOf(maxParallel))).setMaxWidth(180)
+ .setPos(25, Ycord += 16)
+ .setEnabled(recipe.parallel > maxParallel));
StringBuilder modules = new StringBuilder();
modules.append(i18n("tile.boxplusplus.boxUI.27"));
for (int i : recipe.requireModules.keySet()) {
- modules
- .append(
- recipe.requireModules.get(i) == 1 ? i18n("tile.boxplusplus.boxUI.module." + (i + 1)) + " (T2)"
- : i18n("tile.boxplusplus.boxUI.module." + (i + 1)))
+ modules.append(recipe.requireModules.get(i) == 1 ? i18n("tile.boxplusplus.boxUI.module." + (i + 1))
+ + " (T2)" : i18n("tile.boxplusplus.boxUI.module." + (i + 1)))
.append(" | ");
}
- builder.widget(
- new TextWidget(modules.toString()).setMaxWidth(180)
+ builder.widget(new TextWidget(modules.toString()).setMaxWidth(180)
.setPos(25, Ycord += 32))
.widget(new ButtonWidget().setOnClick((clickData, widget) -> {
- recipe.islocked = true;
- if (!widget.isClient()) {
- player.closeScreen();
- GT_UIInfos.openGTTileEntityUI(getBaseMetaTileEntity(), player);
- }
- })
+ recipe.islocked = true;
+ if (!widget.isClient()) {
+ player.closeScreen();
+ GT_UIInfos.openGTTileEntityUI(getBaseMetaTileEntity(), player);
+ }
+ })
.setSize(20, 20)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -2864,14 +2796,14 @@ protected ModularWindow createFinalRecipeWindow(final EntityPlayer player) {
.setPos(80, Ycord + 20)
.setEnabled(!recipe.islocked && recipe.parallel <= maxParallel))
.widget(new ButtonWidget().setOnClick((clickData, widget) -> {
- recipe = new BoxRecipe();
- if (!widget.isClient()) {
- widget.getWindow()
- .closeWindow();
- widget.getContext()
- .openSyncedWindow(10);
- }
- })
+ recipe = new BoxRecipe();
+ if (!widget.isClient()) {
+ widget.getWindow()
+ .closeWindow();
+ widget.getContext()
+ .openSyncedWindow(10);
+ }
+ })
.setSize(20, 20)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -2893,24 +2825,22 @@ protected ModularWindow createWikiWindow(final EntityPlayer player) {
builder.setBackground(GT_UITextures.BACKGROUND_SINGLEBLOCK_DEFAULT);
builder.setGuiTint(getGUIColorization());
Synchronize(builder);
- builder.widget(
- new DrawableWidget().setDrawable(GT_UITextures.OVERLAY_BUTTON_NEI)
+ builder.widget(new DrawableWidget().setDrawable(GT_UITextures.OVERLAY_BUTTON_NEI)
.setPos(5, 5)
.setSize(16, 16))
.widget(new TextWidget(i18n("tile.boxplusplus.boxwiki.1")).setPos(25, 9))
- .widget(
- ButtonWidget.closeWindowButton(true)
- .setPos(285, 5))
+ .widget(ButtonWidget.closeWindowButton(true)
+ .setPos(285, 5))
.widget(new TextWidget(i18n("tile.boxplusplus.boxwiki.2")).setPos(25, 30))
.widget(new ButtonWidget().setOnClick((clickData, widget) -> {
- wikiPageCode = 3;
- if (!widget.isClient()) {
- widget.getWindow()
- .closeWindow();
- widget.getContext()
- .openSyncedWindow(15);
- }
- })
+ wikiPageCode = 3;
+ if (!widget.isClient()) {
+ widget.getWindow()
+ .closeWindow();
+ widget.getContext()
+ .openSyncedWindow(15);
+ }
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -2921,14 +2851,14 @@ protected ModularWindow createWikiWindow(final EntityPlayer player) {
.addTooltip(i18n("tile.boxplusplus.boxwiki.3"))
.setPos(30, 45))
.widget(new ButtonWidget().setOnClick((clickData, widget) -> {
- wikiPageCode = 4;
- if (!widget.isClient()) {
- widget.getWindow()
- .closeWindow();
- widget.getContext()
- .openSyncedWindow(15);
- }
- })
+ wikiPageCode = 4;
+ if (!widget.isClient()) {
+ widget.getWindow()
+ .closeWindow();
+ widget.getContext()
+ .openSyncedWindow(15);
+ }
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -2939,14 +2869,14 @@ protected ModularWindow createWikiWindow(final EntityPlayer player) {
.addTooltip(i18n("tile.boxplusplus.boxwiki.4"))
.setPos(80, 45))
.widget(new ButtonWidget().setOnClick((clickData, widget) -> {
- wikiPageCode = 5;
- if (!widget.isClient()) {
- widget.getWindow()
- .closeWindow();
- widget.getContext()
- .openSyncedWindow(15);
- }
- })
+ wikiPageCode = 5;
+ if (!widget.isClient()) {
+ widget.getWindow()
+ .closeWindow();
+ widget.getContext()
+ .openSyncedWindow(15);
+ }
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -2957,14 +2887,14 @@ protected ModularWindow createWikiWindow(final EntityPlayer player) {
.addTooltip(i18n("tile.boxplusplus.boxwiki.5"))
.setPos(130, 45))
.widget(new ButtonWidget().setOnClick((clickData, widget) -> {
- wikiPageCode = 6;
- if (!widget.isClient()) {
- widget.getWindow()
- .closeWindow();
- widget.getContext()
- .openSyncedWindow(15);
- }
- })
+ wikiPageCode = 6;
+ if (!widget.isClient()) {
+ widget.getWindow()
+ .closeWindow();
+ widget.getContext()
+ .openSyncedWindow(15);
+ }
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -2975,14 +2905,14 @@ protected ModularWindow createWikiWindow(final EntityPlayer player) {
.addTooltip(i18n("tile.boxplusplus.boxwiki.6"))
.setPos(180, 45))
.widget(new ButtonWidget().setOnClick((clickData, widget) -> {
- wikiPageCode = 7;
- if (!widget.isClient()) {
- widget.getWindow()
- .closeWindow();
- widget.getContext()
- .openSyncedWindow(15);
- }
- })
+ wikiPageCode = 7;
+ if (!widget.isClient()) {
+ widget.getWindow()
+ .closeWindow();
+ widget.getContext()
+ .openSyncedWindow(15);
+ }
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -3001,50 +2931,44 @@ protected ModularWindow createWikiWindow(final EntityPlayer player) {
@Override
protected void drawTexts(DynamicPositionedColumn screenElements, SlotWidget inventorySlot) {
super.drawTexts(screenElements, inventorySlot);
- screenElements.widget(
- new TextWidget(i18n("tile.boxplusplus.boxError." + machineError[0])).setDefaultColor(COLOR_TEXT_WHITE.get())
+ screenElements.widget(new TextWidget(i18n("tile.boxplusplus.boxError." + machineError[0])).setDefaultColor(
+ COLOR_TEXT_WHITE.get())
.setEnabled(machineError[0] != 0))
- .widget(
- new TextWidget(i18n("tile.boxplusplus.boxUI.module." + machineError[1]))
- .setDefaultColor(COLOR_TEXT_WHITE.get())
- .setEnabled(machineError[1] != 0));
+ .widget(new TextWidget(i18n("tile.boxplusplus.boxUI.module." + machineError[1])).setDefaultColor(
+ COLOR_TEXT_WHITE.get())
+ .setEnabled(machineError[1] != 0));
}
// Help wiki show pages
private void getwikiByIndex(ModularWindow.Builder builder) {
switch (wikiPageCode) {
- case 3 -> builder.widget(
- new TextWidget(i18n("tile.boxplusplus.boxwiki.8")).setMaxWidth(260)
- .setPos(25, 85));
+ case 3 -> builder.widget(new TextWidget(i18n("tile.boxplusplus.boxwiki.8")).setMaxWidth(260)
+ .setPos(25, 85));
case 4 -> {
- builder.widget(
- new TextWidget(i18n("tile.boxplusplus.boxwiki.9")).setMaxWidth(260)
- .setPos(25, 85));
- builder.widget(
- new TextWidget(i18n("tile.boxplusplus.boxwiki.10") + i18n("tile.boxplusplus.boxwiki.11"))
- .setTextAlignment(TopLeft)
- .setMaxWidth(260)
- .setPos(25, 95));
+ builder.widget(new TextWidget(i18n("tile.boxplusplus.boxwiki.9")).setMaxWidth(260)
+ .setPos(25, 85));
+ builder.widget(new TextWidget(i18n("tile.boxplusplus.boxwiki.10")
+ + i18n("tile.boxplusplus.boxwiki.11")).setTextAlignment(TopLeft)
+ .setMaxWidth(260)
+ .setPos(25, 95));
}
case 5 -> {
- builder.widget(
- new TextWidget(i18n("tile.boxplusplus.boxwiki.12")).setTextAlignment(TopLeft)
- .setMaxWidth(260)
- .setPos(25, 85));
- builder.widget(
- new TextWidget(i18n("tile.boxplusplus.boxwiki.13") + i18n("tile.boxplusplus.boxwiki.14"))
- .setTextAlignment(TopLeft)
- .setMaxWidth(260)
- .setPos(25, 115));
+ builder.widget(new TextWidget(i18n("tile.boxplusplus.boxwiki.12")).setTextAlignment(TopLeft)
+ .setMaxWidth(260)
+ .setPos(25, 85));
+ builder.widget(new TextWidget(i18n("tile.boxplusplus.boxwiki.13")
+ + i18n("tile.boxplusplus.boxwiki.14")).setTextAlignment(TopLeft)
+ .setMaxWidth(260)
+ .setPos(25, 115));
builder.widget(new ButtonWidget().setOnClick((clickData, widget) -> {
- wikiPageCode = 50;
- if (!widget.isClient()) {
- widget.getWindow()
- .closeWindow();
- widget.getContext()
- .openSyncedWindow(15);
- }
- })
+ wikiPageCode = 50;
+ if (!widget.isClient()) {
+ widget.getWindow()
+ .closeWindow();
+ widget.getContext()
+ .openSyncedWindow(15);
+ }
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -3055,34 +2979,28 @@ private void getwikiByIndex(ModularWindow.Builder builder) {
.addTooltip(i18n("tile.boxplusplus.boxwiki.0"))
.setPos(135, 175));
}
- case 6 -> builder.widget(
- new TextWidget(i18n("tile.boxplusplus.boxwiki.16")).setTextAlignment(TopLeft)
+ case 6 -> builder.widget(new TextWidget(i18n("tile.boxplusplus.boxwiki.16")).setTextAlignment(TopLeft)
.setMaxWidth(260)
.setPos(25, 85))
- .widget(
- new TextWidget(i18n("tile.boxplusplus.boxwiki.17")).setMaxWidth(260)
- .setPos(25, 105))
- .widget(
- new TextWidget(i18n("tile.boxplusplus.boxwiki.18")).setMaxWidth(260)
- .setPos(25, 115))
- .widget(
- new TextWidget(i18n("tile.boxplusplus.boxwiki.19")).setMaxWidth(260)
- .setPos(25, 125))
- .widget(
- new TextWidget(i18n("tile.boxplusplus.boxwiki.20")).setMaxWidth(260)
- .setPos(25, 135))
- .widget(
- new TextWidget(i18n("tile.boxplusplus.boxwiki.21")).setMaxWidth(260)
- .setPos(25, 145))
+ .widget(new TextWidget(i18n("tile.boxplusplus.boxwiki.17")).setMaxWidth(260)
+ .setPos(25, 105))
+ .widget(new TextWidget(i18n("tile.boxplusplus.boxwiki.18")).setMaxWidth(260)
+ .setPos(25, 115))
+ .widget(new TextWidget(i18n("tile.boxplusplus.boxwiki.19")).setMaxWidth(260)
+ .setPos(25, 125))
+ .widget(new TextWidget(i18n("tile.boxplusplus.boxwiki.20")).setMaxWidth(260)
+ .setPos(25, 135))
+ .widget(new TextWidget(i18n("tile.boxplusplus.boxwiki.21")).setMaxWidth(260)
+ .setPos(25, 145))
.widget(new ButtonWidget().setOnClick((clickData, widget) -> {
- wikiPageCode = 51;
- if (!widget.isClient()) {
- widget.getWindow()
- .closeWindow();
- widget.getContext()
- .openSyncedWindow(15);
- }
- })
+ wikiPageCode = 51;
+ if (!widget.isClient()) {
+ widget.getWindow()
+ .closeWindow();
+ widget.getContext()
+ .openSyncedWindow(15);
+ }
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -3093,20 +3011,19 @@ private void getwikiByIndex(ModularWindow.Builder builder) {
.addTooltip(i18n("tile.boxplusplus.boxwiki.0"))
.setPos(135, 175));
case 7 -> {
- builder.widget(
- new TextWidget(i18n("tile.boxplusplus.boxwiki.24")).setMaxWidth(260)
- .setPos(25, 85));
+ builder.widget(new TextWidget(i18n("tile.boxplusplus.boxwiki.24")).setMaxWidth(260)
+ .setPos(25, 85));
for (int i = 1; i < 15; i++) {
int finalI = i;
builder.widget(new ButtonWidget().setOnClick((clickData, widget) -> {
- moduleSN = finalI;
- if (!widget.isClient()) {
- widget.getWindow()
- .closeWindow();
- widget.getContext()
- .openSyncedWindow(15);
- }
- })
+ moduleSN = finalI;
+ if (!widget.isClient()) {
+ widget.getWindow()
+ .closeWindow();
+ widget.getContext()
+ .openSyncedWindow(15);
+ }
+ })
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
@@ -3117,56 +3034,45 @@ private void getwikiByIndex(ModularWindow.Builder builder) {
.addTooltip(i18n("tile.boxplusplus.boxUI.module." + i))
.setPos(10 + 18 * i, 100));
}
- builder
- .widget(
- new TextWidget(
- i18n("tile.boxplusplus.boxwiki.25") + i18n("tile.boxplusplus.boxUI.module." + moduleSN))
- .setMaxWidth(260)
- .setPos(25, 120))
- .widget(
- new TextWidget(
- i18n("tile.boxplusplus.boxwiki.26")
- + i18n("tile.boxplusplus.boxUI.module.context." + moduleSN + "b")).setMaxWidth(260)
- .setPos(25, 130))
- .widget(
- new TextWidget(
- i18n("tile.boxplusplus.boxwiki.27")
- + i18n("tile.boxplusplus.boxUI.module.context." + moduleSN + "c")).setMaxWidth(260)
- .setPos(25, 150))
- .widget(
- new TextWidget(
- i18n("tile.boxplusplus.boxwiki.28")
- + i18n("tile.boxplusplus.boxUI.module.context." + moduleSN + "d")).setMaxWidth(260)
- .setPos(25, 160))
- .widget(
- new TextWidget(
- i18n("tile.boxplusplus.boxwiki.29")
- + i18n("tile.boxplusplus.boxUI.module.context." + moduleSN + "e")).setMaxWidth(260)
- .setPos(25, 170));
+ builder.widget(new TextWidget(i18n("tile.boxplusplus.boxwiki.25") + i18n(
+ "tile.boxplusplus.boxUI.module." + moduleSN)).setMaxWidth(260)
+ .setPos(25, 120))
+ .widget(new TextWidget(i18n("tile.boxplusplus.boxwiki.26") + i18n(
+ "tile.boxplusplus.boxUI.module.context." + moduleSN + "b")).setMaxWidth(260)
+ .setPos(25, 130))
+ .widget(new TextWidget(i18n("tile.boxplusplus.boxwiki.27") + i18n(
+ "tile.boxplusplus.boxUI.module.context." + moduleSN + "c")).setMaxWidth(260)
+ .setPos(25, 150))
+ .widget(new TextWidget(i18n("tile.boxplusplus.boxwiki.28") + i18n(
+ "tile.boxplusplus.boxUI.module.context." + moduleSN + "d")).setMaxWidth(260)
+ .setPos(25, 160))
+ .widget(new TextWidget(i18n("tile.boxplusplus.boxwiki.29") + i18n(
+ "tile.boxplusplus.boxUI.module.context." + moduleSN + "e")).setMaxWidth(260)
+ .setPos(25, 170));
}
- case 50 -> builder.widget(
- new TextWidget(i18n("tile.boxplusplus.boxwiki.15")).setTextAlignment(TopLeft)
- .setMaxWidth(260)
- .setPos(25, 85));
- case 51 -> builder.widget(
- new TextWidget(i18n("tile.boxplusplus.boxwiki.22")).setMaxWidth(260)
+ case 50 -> builder.widget(new TextWidget(i18n("tile.boxplusplus.boxwiki.15")).setTextAlignment(TopLeft)
+ .setMaxWidth(260)
+ .setPos(25, 85));
+ case 51 -> builder.widget(new TextWidget(i18n("tile.boxplusplus.boxwiki.22")).setMaxWidth(260)
.setPos(25, 85))
- .widget(
- new TextWidget(i18n("tile.boxplusplus.boxwiki.23")).setMaxWidth(260)
- .setPos(180, 85))
- .widget(
- new DrawableWidget()
- .setDrawable(AdaptableUITexture.of(Tags.MODID, "textures/gui/time.png", 275, 81, 1))
- .setPos(20, 105)
- .setSize(130, 42))
- .widget(
- new DrawableWidget()
- .setDrawable(AdaptableUITexture.of(Tags.MODID, "textures/gui/voteage.png", 124, 81, 1))
- .setPos(190, 105)
- .setSize(62, 40))
- .widget(
- new TextWidget(i18n("tile.boxplusplus.boxwiki.52")).setMaxWidth(260)
- .setPos(25, 165));
+ .widget(new TextWidget(i18n("tile.boxplusplus.boxwiki.23")).setMaxWidth(260)
+ .setPos(180, 85))
+ .widget(new DrawableWidget().setDrawable(AdaptableUITexture.of(Tags.MODID,
+ "textures/gui/time.png",
+ 275,
+ 81,
+ 1))
+ .setPos(20, 105)
+ .setSize(130, 42))
+ .widget(new DrawableWidget().setDrawable(AdaptableUITexture.of(Tags.MODID,
+ "textures/gui/voteage.png",
+ 124,
+ 81,
+ 1))
+ .setPos(190, 105)
+ .setSize(62, 40))
+ .widget(new TextWidget(i18n("tile.boxplusplus.boxwiki.52")).setMaxWidth(260)
+ .setPos(25, 165));
}
}
@@ -3175,9 +3081,9 @@ private void getwikiByIndex(ModularWindow.Builder builder) {
*/
public void Synchronize(ModularWindow.Builder builder) {
builder.widget(new FakeSyncWidget.ListSyncer<>(() -> randomSN, var1 -> {
- randomSN.clear();
- randomSN.addAll(var1);
- }, PacketBuffer::writeInt, PacketBuffer::readInt))
+ randomSN.clear();
+ randomSN.addAll(var1);
+ }, PacketBuffer::writeInt, PacketBuffer::readInt))
.widget(new FakeSyncWidget.ListSyncer<>(() -> routingMap, var1 -> {
routingMap.clear();
routingMap.addAll(var1);
@@ -3217,11 +3123,12 @@ public void Synchronize(ModularWindow.Builder builder) {
.widget(new FakeSyncWidget.IntegerSyncer(() -> maxRouting, var1 -> maxRouting = var1));
for (int i = 0; i < 14; i++) {
int finalI = i;
- builder
- .widget(
- new FakeSyncWidget.BooleanSyncer(() -> moduleSwitch[finalI], var1 -> moduleSwitch[finalI] = var1))
- .widget(
- new FakeSyncWidget.BooleanSyncer(() -> moduleActive[finalI], var1 -> moduleActive[finalI] = var1))
+ builder.widget(new FakeSyncWidget.BooleanSyncer(
+ () -> moduleSwitch[finalI],
+ var1 -> moduleSwitch[finalI] = var1))
+ .widget(new FakeSyncWidget.BooleanSyncer(
+ () -> moduleActive[finalI],
+ var1 -> moduleActive[finalI] = var1))
.widget(new FakeSyncWidget.IntegerSyncer(() -> moduleTier[finalI], var1 -> moduleTier[finalI] = var1));
}
}
diff --git a/src/main/java/com/silvermoon/boxplusplus/common/tileentities/GTMachineDroneMaintainingCentre.java b/src/main/java/com/silvermoon/boxplusplus/common/tileentities/GTMachineDroneMaintainingCentre.java
index 880f6d0..beb3f51 100644
--- a/src/main/java/com/silvermoon/boxplusplus/common/tileentities/GTMachineDroneMaintainingCentre.java
+++ b/src/main/java/com/silvermoon/boxplusplus/common/tileentities/GTMachineDroneMaintainingCentre.java
@@ -42,8 +42,9 @@
import gregtech.api.render.TextureFactory;
import gregtech.api.util.GT_Multiblock_Tooltip_Builder;
-public class GTMachineDroneMaintainingCentre extends
- GT_MetaTileEntity_ExtendedPowerMultiBlockBase implements ISurvivalConstructable {
+public class GTMachineDroneMaintainingCentre
+ extends GT_MetaTileEntity_ExtendedPowerMultiBlockBase
+ implements ISurvivalConstructable {
private static final IIconContainer Active = new Textures.BlockIcons.CustomIcon("iconsets/droneCentre");
private static final IIconContainer Inactive = new Textures.BlockIcons.CustomIcon("iconsets/droneCentre");
@@ -53,17 +54,16 @@ public class GTMachineDroneMaintainingCentre extends
public int droneLevel = 0;
private final Random random = new Random();
// spotless off
- private static final IStructureDefinition STRUCTURE_DEFINITION = StructureDefinition
- .builder()
+ private static final IStructureDefinition STRUCTURE_DEFINITION = StructureDefinition.builder()
.addShape(
"main",
- transpose(
- new String[][] { { " ", " ", " ", " ", "CCCCC", "CCCCC", "CCCCC", "CCCCC", "CCCCC" },
- { "CE~EC", "C C", "C C", "C C", "CAAAC", "CCCCC", "CAAAC", "C C", "CCCCC" },
- { "CEEEC", "CBBBC", "CBDBC", "CBBBC", "CCCCC", "CCCCC", "CCCCC", "CCCCC", "CCCCC" },
- { "C C", " ", " ", " ", " ", " ", " ", " ", "C C" },
- { "C C", " ", " ", " ", " ", " ", " ", " ", "C C" },
- { "C C", " ", " ", " ", " ", " ", " ", " ", "C C" } }))
+ transpose(new String[][] {
+ { " ", " ", " ", " ", "CCCCC", "CCCCC", "CCCCC", "CCCCC", "CCCCC" },
+ { "CE~EC", "C C", "C C", "C C", "CAAAC", "CCCCC", "CAAAC", "C C", "CCCCC" },
+ { "CEEEC", "CBBBC", "CBDBC", "CBBBC", "CCCCC", "CCCCC", "CCCCC", "CCCCC", "CCCCC" },
+ { "C C", " ", " ", " ", " ", " ", " ", " ", "C C" },
+ { "C C", " ", " ", " ", " ", " ", " ", " ", "C C" },
+ { "C C", " ", " ", " ", " ", " ", " ", " ", "C C" } }))
.addElement(
'E',
buildHatchAdder(GTMachineDroneMaintainingCentre.class).atLeast(InputBus)
@@ -96,12 +96,10 @@ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, ForgeDirec
if (side == aFacing) {
if (aActive) return new ITexture[] { casingTexturePages[8][67], TextureFactory.builder()
.addIcon(Active)
- .extFacing()
- .build() };
+ .extFacing().build() };
return new ITexture[] { casingTexturePages[8][67], TextureFactory.builder()
.addIcon(Inactive)
- .extFacing()
- .build() };
+ .extFacing().build() };
}
return new ITexture[] { casingTexturePages[8][67] };
}
@@ -171,7 +169,8 @@ public boolean explodesOnComponentBreak(ItemStack aStack) {
public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
disableMaintenance = true;
rotation = (rotation + 50) % 360d;
- if (aTick % 200 == 0 && aBaseMetaTileEntity.isServerSide()
+ if (aTick % 200 == 0
+ && aBaseMetaTileEntity.isServerSide()
&& (droneLevel == 1 || droneLevel == 2)
&& random.nextInt(360 * (3 - droneLevel)) == 0) {
droneLevel = 0;
diff --git a/src/main/java/com/silvermoon/boxplusplus/common/tileentities/GTTileEntityDroneMaintananceModule.java b/src/main/java/com/silvermoon/boxplusplus/common/tileentities/GTTileEntityDroneMaintananceModule.java
index 52ec638..706b1c0 100644
--- a/src/main/java/com/silvermoon/boxplusplus/common/tileentities/GTTileEntityDroneMaintananceModule.java
+++ b/src/main/java/com/silvermoon/boxplusplus/common/tileentities/GTTileEntityDroneMaintananceModule.java
@@ -124,8 +124,7 @@ public void loadNBTData(NBTTagCompound aNBT) {
public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
if (aBaseMetaTileEntity.isServerSide()) {
if (Util.droneMap.containsKey(aBaseMetaTileEntity.getWorld().provider.dimensionId)) {
- List target = Util.droneMap
- .get(aBaseMetaTileEntity.getWorld().provider.dimensionId)
+ List target = Util.droneMap.get(aBaseMetaTileEntity.getWorld().provider.dimensionId)
.stream()
.collect(Collectors.toList());
for (GTMachineDroneMaintainingCentre DMC : target) {
@@ -162,9 +161,8 @@ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex
}
public boolean hasConnection() {
- return mainframe != null && mainframe.getBaseMetaTileEntity() != null
- && !mainframe.getBaseMetaTileEntity()
- .isDead();
+ return mainframe != null && mainframe.getBaseMetaTileEntity() != null && !mainframe.getBaseMetaTileEntity()
+ .isDead();
}
private void setRandomFault(GT_MetaTileEntity_MultiBlockBase mte) {
@@ -185,9 +183,8 @@ private void setRandomFault(GT_MetaTileEntity_MultiBlockBase mte) {
public GT_MetaTileEntity_MultiBlockBase tryFindGTMultiBlock(GTTileEntityDroneMaintananceModule maintain) {
Queue tQueue = new LinkedList<>();
Set visited = new HashSet<>(80);
- tQueue.add(
- maintain.getBaseMetaTileEntity()
- .getCoords());
+ tQueue.add(maintain.getBaseMetaTileEntity()
+ .getCoords());
World world = maintain.getBaseMetaTileEntity()
.getWorld();
while (!tQueue.isEmpty()) {
@@ -208,10 +205,8 @@ public GT_MetaTileEntity_MultiBlockBase tryFindGTMultiBlock(GTTileEntityDroneMai
// 1) If we've visited less than 5 blocks, then yes
// 2) If the tile says we should recursively updated (pipes don't, machine blocks do)
// 3) If the block at the coordinates is marked as a machine block
- if (visited.size() < 5
- || (tTileEntity instanceof IMachineBlockUpdateable
- && ((IMachineBlockUpdateable) tTileEntity).isMachineBlockUpdateRecursive())
- || isMachineBlock) {
+ if (visited.size() < 5 || (tTileEntity instanceof IMachineBlockUpdateable
+ && ((IMachineBlockUpdateable) tTileEntity).isMachineBlockUpdateRecursive()) || isMachineBlock) {
ChunkCoordinates tCoords;
if (visited.add(tCoords = new ChunkCoordinates(aCoords.posX + 1, aCoords.posY, aCoords.posZ)))
diff --git a/src/main/java/com/silvermoon/boxplusplus/util/BoxRecipe.java b/src/main/java/com/silvermoon/boxplusplus/util/BoxRecipe.java
index 20776da..4869266 100644
--- a/src/main/java/com/silvermoon/boxplusplus/util/BoxRecipe.java
+++ b/src/main/java/com/silvermoon/boxplusplus/util/BoxRecipe.java
@@ -70,8 +70,9 @@ public static void ItemOnBox(List input, List output) {
for (ItemStack iItem : input) {
for (ItemStack oItem : output) {
if (GT_Utility.areStacksEqual(oItem, iItem, true) || (oItem.getUnlocalizedName()
- .startsWith("item.Circuit")
- && GT_OreDictUnificator.isInputStackEqual(iItem, GT_OreDictUnificator.get(oItem)))) {
+ .startsWith("item.Circuit") && GT_OreDictUnificator.isInputStackEqual(
+ iItem,
+ GT_OreDictUnificator.get(oItem)))) {
if (iItem.stackSize == oItem.stackSize) {
iItem.stackSize = 0;
oItem.stackSize = 0;
@@ -120,14 +121,14 @@ public NBTTagCompound RecipeToNBT() {
recipe.setTag("InputItem" + (i + 1), writeBoxItemToNBT(FinalItemInput.get(i), new NBTTagCompound()));
for (int i = 0; i < FinalItemOutput.size(); i++)
recipe.setTag("OutputItem" + (i + 1), writeBoxItemToNBT(FinalItemOutput.get(i), new NBTTagCompound()));
- for (int i = 0; i < FinalFluidInput.size(); i++) recipe.setTag(
- "InputFluid" + (i + 1),
- FinalFluidInput.get(i)
- .writeToNBT(new NBTTagCompound()));
- for (int i = 0; i < FinalFluidOutput.size(); i++) recipe.setTag(
- "OutputFluid" + (i + 1),
- FinalFluidOutput.get(i)
- .writeToNBT(new NBTTagCompound()));
+ for (int i = 0; i < FinalFluidInput.size(); i++)
+ recipe.setTag("InputFluid" + (i + 1),
+ FinalFluidInput.get(i)
+ .writeToNBT(new NBTTagCompound()));
+ for (int i = 0; i < FinalFluidOutput.size(); i++)
+ recipe.setTag("OutputFluid" + (i + 1),
+ FinalFluidOutput.get(i)
+ .writeToNBT(new NBTTagCompound()));
NBTTagCompound requireModule = new NBTTagCompound();
requireModules.forEach((k, v) -> requireModule.setInteger(String.valueOf(k), v));
recipe.setLong("Voteage", FinalVoteage);
diff --git a/src/main/java/com/silvermoon/boxplusplus/util/BoxRoutings.java b/src/main/java/com/silvermoon/boxplusplus/util/BoxRoutings.java
index d8a2d81..d19d9ad 100644
--- a/src/main/java/com/silvermoon/boxplusplus/util/BoxRoutings.java
+++ b/src/main/java/com/silvermoon/boxplusplus/util/BoxRoutings.java
@@ -80,10 +80,11 @@ public BoxRoutings(GT_Recipe recipe, ItemStack machine) {
time *= 4;
OutputFluid.forEach(f -> f.amount = (int) (f.amount * 0.75));
}
- case "multimachine.blastfurnace", "multimachine.adv.blastfurnace", "megablastfurnace" -> this.special = recipe.mSpecialValue;
+ case "multimachine.blastfurnace", "multimachine.adv.blastfurnace", "megablastfurnace" ->
+ this.special = recipe.mSpecialValue;
case "componentassemblyline" -> time /= 16;
- case "quantumforcetransformer.controller.tier.single" -> OutputFluid
- .forEach(f -> f.amount = f.amount / (OutputFluid.size() + OutputItem.size()));
+ case "quantumforcetransformer.controller.tier.single" ->
+ OutputFluid.forEach(f -> f.amount = f.amount / (OutputFluid.size() + OutputItem.size()));
}
}
@@ -116,9 +117,8 @@ public BoxRoutings(FluidStack fOutputs, ItemStack machine, Long v, int t) {
public BoxRoutings(InventoryCrafting inputs, ItemStack outputs, ItemStack machine) {
for (int i = 0; i < 9; i++) {
if (inputs.getStackInSlot(i) == null) continue;
- InputItem.add(
- inputs.getStackInSlot(i)
- .copy());
+ InputItem.add(inputs.getStackInSlot(i)
+ .copy());
}
ItemStack b = outputs.copy();
OutputItem.add(b);
@@ -195,14 +195,14 @@ public NBTTagCompound routingToNbt() {
routing.setTag("OutputItem" + (i + 1), writeBoxItemToNBT(OutputItem.get(i), new NBTTagCompound()));
routing.setInteger("OutputChance" + (i + 1), OutputChance.get(i));
}
- for (int i = 0; i < InputFluid.size(); i++) routing.setTag(
- "InputFluid" + (i + 1),
- InputFluid.get(i)
- .writeToNBT(new NBTTagCompound()));
- for (int i = 0; i < OutputFluid.size(); i++) routing.setTag(
- "OutputFluid" + (i + 1),
- OutputFluid.get(i)
- .writeToNBT(new NBTTagCompound()));
+ for (int i = 0; i < InputFluid.size(); i++)
+ routing.setTag("InputFluid" + (i + 1),
+ InputFluid.get(i)
+ .writeToNBT(new NBTTagCompound()));
+ for (int i = 0; i < OutputFluid.size(); i++)
+ routing.setTag("OutputFluid" + (i + 1),
+ OutputFluid.get(i)
+ .writeToNBT(new NBTTagCompound()));
routing.setLong("Voltage", voltage);
routing.setInteger("Parallel", Parallel);
routing.setInteger("Time", time);
@@ -219,14 +219,14 @@ public NBTTagCompound routingToUNbt() {
routing.setTag("OutputItem" + (i + 1), writeBoxItemToUNBT(OutputItem.get(i), new NBTTagCompound()));
routing.setInteger("OutputChance" + (i + 1), OutputChance.get(i));
}
- for (int i = 0; i < InputFluid.size(); i++) routing.setTag(
- "InputFluid" + (i + 1),
- InputFluid.get(i)
- .writeToNBT(new NBTTagCompound()));
- for (int i = 0; i < OutputFluid.size(); i++) routing.setTag(
- "OutputFluid" + (i + 1),
- OutputFluid.get(i)
- .writeToNBT(new NBTTagCompound()));
+ for (int i = 0; i < InputFluid.size(); i++)
+ routing.setTag("InputFluid" + (i + 1),
+ InputFluid.get(i)
+ .writeToNBT(new NBTTagCompound()));
+ for (int i = 0; i < OutputFluid.size(); i++)
+ routing.setTag("OutputFluid" + (i + 1),
+ OutputFluid.get(i)
+ .writeToNBT(new NBTTagCompound()));
routing.setLong("Voltage", voltage);
routing.setInteger("Parallel", Parallel);
routing.setInteger("Time", time);
@@ -255,8 +255,7 @@ public static void checkRouting(GTMachineBox box) {
.getUnlocalizedName()
.equals("gt.blockmachines.basicmachine.electromagneticseparator.tier.06")) {
RecipeMap = RecipeMaps.electroMagneticSeparatorRecipes;
- RoutingRecipe = RecipeMap.findRecipe(
- box.getBaseMetaTileEntity(),
+ RoutingRecipe = RecipeMap.findRecipe(box.getBaseMetaTileEntity(),
true,
true,
Long.MAX_VALUE / 10,
@@ -283,8 +282,12 @@ public static void checkRouting(GTMachineBox box) {
ItemStack machine = inputBus.getStackInSlot(i)
.copy();
machine.stackSize = 1;
- box.routingMap
- .add(new BoxRoutings(in, out, machine, TierEU.RECIPE_ZPM, TickTime.MINUTE));
+ box.routingMap.add(new BoxRoutings(
+ in,
+ out,
+ machine,
+ TierEU.RECIPE_ZPM,
+ TickTime.MINUTE));
box.routingStatus = 0;
return;
}
@@ -301,8 +304,7 @@ public static void checkRouting(GTMachineBox box) {
.getRecipeList();
for (Object recipe : recipeList) {
if (recipe instanceof ExtremeShapedRecipe exRecipe) {
- if (GT_OreDictUnificator.isInputStackEqual(
- item,
+ if (GT_OreDictUnificator.isInputStackEqual(item,
GT_OreDictUnificator.get(exRecipe.getRecipeOutput()))) {
ItemStack[] in = exRecipe.recipeItems;
ItemContainer var = new ItemContainer();
@@ -313,15 +315,13 @@ public static void checkRouting(GTMachineBox box) {
ItemStack machine = inputBus.getStackInSlot(i)
.copy();
machine.stackSize = 1;
- box.routingMap.add(
- new BoxRoutings(
- var.getItemStack()
- .toArray(new ItemStack[0]),
- exRecipe.getRecipeOutput(),
- new FluidStack[] {},
- machine,
- TierEU.RECIPE_UV,
- TickTime.MINUTE));
+ box.routingMap.add(new BoxRoutings(var.getItemStack()
+ .toArray(new ItemStack[0]),
+ exRecipe.getRecipeOutput(),
+ new FluidStack[] {},
+ machine,
+ TierEU.RECIPE_UV,
+ TickTime.MINUTE));
box.routingStatus = 0;
return;
}
@@ -341,15 +341,13 @@ public static void checkRouting(GTMachineBox box) {
ItemStack machine = inputBus.getStackInSlot(i)
.copy();
machine.stackSize = 1;
- box.routingMap.add(
- new BoxRoutings(
- var.getItemStack()
- .toArray(new ItemStack[0]),
- exRecipe.getRecipeOutput(),
- new FluidStack[] {},
- machine,
- TierEU.RECIPE_UV,
- TickTime.MINUTE));
+ box.routingMap.add(new BoxRoutings(var.getItemStack()
+ .toArray(new ItemStack[0]),
+ exRecipe.getRecipeOutput(),
+ new FluidStack[] {},
+ machine,
+ TierEU.RECIPE_UV,
+ TickTime.MINUTE));
box.routingStatus = 0;
return;
}
@@ -360,8 +358,7 @@ public static void checkRouting(GTMachineBox box) {
return;
}
}
- if (getMetaTileEntity(
- inputBus.getStackInSlot(i)) instanceof GT_MetaTileEntity_MultiBlockBase RoutingMachine) {
+ if (getMetaTileEntity(inputBus.getStackInSlot(i)) instanceof GT_MetaTileEntity_MultiBlockBase RoutingMachine) {
boxplusplus.LOG.debug(RoutingMachine.mName);
List ItemInputs = deepCopyItemList(box.getStoredInputs());
List FluidInputs = deepCopyFluidList(box.getStoredFluids());
@@ -377,16 +374,19 @@ public static void checkRouting(GTMachineBox box) {
}
case "multimachine.multifurnace" -> {
for (ItemStack input : ItemInputs) {
- ItemStack output = GT_OreDictUnificator.get(
- FurnaceRecipes.smelting()
- .getSmeltingResult(input));
+ ItemStack output = GT_OreDictUnificator.get(FurnaceRecipes.smelting()
+ .getSmeltingResult(input));
if (output != null) {
ItemStack var1 = input.copy();
var1.stackSize = 1;
ItemStack var2 = output.copy();
var2.stackSize = 1;
- box.routingMap
- .add(new BoxRoutings(var1, var2, RoutingMachine.getStackForm(1), 30L, 100));
+ box.routingMap.add(new BoxRoutings(
+ var1,
+ var2,
+ RoutingMachine.getStackForm(1),
+ 30L,
+ 100));
box.routingStatus = 0;
return;
}
@@ -404,8 +404,7 @@ public static void checkRouting(GTMachineBox box) {
}
}
ItemStack out = CraftingManager.getInstance()
- .findMatchingRecipe(
- fakeCraft,
+ .findMatchingRecipe(fakeCraft,
box.getBaseMetaTileEntity()
.getWorld());
if (out != null) {
@@ -424,13 +423,11 @@ public static void checkRouting(GTMachineBox box) {
}
ItemStack output;
switch (Circuit.getItemDamage()) {
- case 1 -> output = new ItemStack(
- Blocks.cobblestone,
- (int) Math.pow(16, box.ringCount));
+ case 1 ->
+ output = new ItemStack(Blocks.cobblestone, (int) Math.pow(16, box.ringCount));
case 2 -> output = new ItemStack(Blocks.stone, (int) Math.pow(16, box.ringCount));
- case 3 -> output = new ItemStack(
- Blocks.obsidian,
- (int) Math.pow(16, box.ringCount));
+ case 3 ->
+ output = new ItemStack(Blocks.obsidian, (int) Math.pow(16, box.ringCount));
default -> {
box.routingStatus = 3;
return;
@@ -438,8 +435,12 @@ public static void checkRouting(GTMachineBox box) {
}
ItemStack input = Circuit.copy();
input.stackSize = 0;
- box.routingMap
- .add(new BoxRoutings(input, output, RoutingMachine.getStackForm(1), 30L, 20));
+ box.routingMap.add(new BoxRoutings(
+ input,
+ output,
+ RoutingMachine.getStackForm(1),
+ 30L,
+ 20));
box.routingStatus = 0;
return;
}
@@ -486,8 +487,9 @@ public static void checkRouting(GTMachineBox box) {
}
// We can find assemblyline recipe using the original method, but no need to update it,
// nor check it
- GT_AssemblyLineUtils.LookupResult tLookupResult = GT_AssemblyLineUtils
- .findAssemblyLineRecipeFromDataStick(data, false);
+ GT_AssemblyLineUtils.LookupResult tLookupResult = GT_AssemblyLineUtils.findAssemblyLineRecipeFromDataStick(
+ data,
+ false);
if (tLookupResult.getType() == GT_AssemblyLineUtils.LookupResultType.INVALID_STICK) {
box.routingStatus = 5;
return;
@@ -500,21 +502,18 @@ public static void checkRouting(GTMachineBox box) {
for (ItemStack replace : ItemInputs) {
if (GT_OreDictUnificator.getAssociation(replace) != null
&& GT_OreDictUnificator.isInputStackEqual(replace, in[j])) {
- in[j] = new ItemStack(
- replace.getItem(),
+ in[j] = new ItemStack(replace.getItem(),
in[j].stackSize,
replace.getItemDamage());
}
}
}
- box.routingMap.add(
- new BoxRoutings(
- in,
- tRecipe.mOutput,
- tRecipe.mFluidInputs,
- RoutingMachine.getStackForm(1),
- (long) tRecipe.mEUt,
- tRecipe.mDuration));
+ box.routingMap.add(new BoxRoutings(in,
+ tRecipe.mOutput,
+ tRecipe.mFluidInputs,
+ RoutingMachine.getStackForm(1),
+ (long) tRecipe.mEUt,
+ tRecipe.mDuration));
box.routingStatus = 0;
return;
}
@@ -528,8 +527,7 @@ public static void checkRouting(GTMachineBox box) {
// it.
// But not anymore.
RoutingRecipe = RoutingMachine.getRecipeMap()
- .findRecipe(
- box.getBaseMetaTileEntity(),
+ .findRecipe(box.getBaseMetaTileEntity(),
true,
Long.MAX_VALUE / 10,
FluidInputs.toArray(new FluidStack[0]),
@@ -548,8 +546,7 @@ public static void checkRouting(GTMachineBox box) {
}
case "largefusioncomputer5" -> {
// Why there are two fusionRecipeMaps?! FK!
- RoutingRecipe = RecipeMaps.fusionRecipes.findRecipe(
- box.getBaseMetaTileEntity(),
+ RoutingRecipe = RecipeMaps.fusionRecipes.findRecipe(box.getBaseMetaTileEntity(),
false,
Long.MAX_VALUE / 10,
FluidInputs.toArray(new FluidStack[0]),
@@ -560,23 +557,19 @@ public static void checkRouting(GTMachineBox box) {
// Circuitassemblyline will check imprint first. Let us do the same thing here.
RecipeMap = BartWorksRecipeMaps.bacterialVatRecipes;
if (inputBus.getStackInSlot(i)
- .getTagCompound() == null
- || !inputBus.getStackInSlot(i)
- .getTagCompound()
- .hasKey("Type")) {
+ .getTagCompound() == null || !inputBus.getStackInSlot(i)
+ .getTagCompound()
+ .hasKey("Type")) {
box.routingStatus = 6;
return;
}
for (GT_Recipe recipe : RecipeMap.getAllRecipes()) {
- if (GT_Utility.areStacksEqual(
- recipe.mOutputs[0],
- ItemStack.loadItemStackFromNBT(
- inputBus.getStackInSlot(i)
- .getTagCompound()
- .getCompoundTag("Type")),
+ if (GT_Utility.areStacksEqual(recipe.mOutputs[0],
+ ItemStack.loadItemStackFromNBT(inputBus.getStackInSlot(i)
+ .getTagCompound()
+ .getCompoundTag("Type")),
true)) {
- if (recipe.isRecipeInputEqual(
- false,
+ if (recipe.isRecipeInputEqual(false,
true,
FluidInputs.toArray(new FluidStack[0]),
ItemInputs.toArray(new ItemStack[0]))) {
@@ -607,8 +600,8 @@ public static void checkRouting(GTMachineBox box) {
Materials replicatorItem = null;
for (ItemStack item : ItemInputs) {
if (Behaviour_DataOrb.getDataName(item) == null) continue;
- replicatorItem = Element.get(Behaviour_DataOrb.getDataName(item)).mLinkedMaterials
- .get(0);
+ replicatorItem = Element.get(Behaviour_DataOrb.getDataName(item)).mLinkedMaterials.get(
+ 0);
break;
}
if (replicatorItem == Materials._NULL) {
@@ -616,11 +609,11 @@ public static void checkRouting(GTMachineBox box) {
return;
}
for (GT_Recipe recipe : RecipeMap.getAllRecipes()) {
- if (!(recipe.mSpecialItems instanceof ItemStack[]var1)) {
+ if (!(recipe.mSpecialItems instanceof ItemStack[] var1)) {
continue;
}
- if (replicatorItem.equals(
- Element.get(Behaviour_DataOrb.getDataName(var1[0])).mLinkedMaterials.get(0))) {
+ if (replicatorItem.equals(Element.get(Behaviour_DataOrb.getDataName(var1[0])).mLinkedMaterials.get(
+ 0))) {
box.routingMap.add(new BoxRoutings(recipe, RoutingMachine.getStackForm(1)));
box.routingStatus = 0;
return;
@@ -630,12 +623,10 @@ public static void checkRouting(GTMachineBox box) {
return;
}
case "industrialmassfab.controller.tier.single" -> {
- box.routingMap.add(
- new BoxRoutings(
- FluidRegistry.getFluidStack("ic2uumatter", 1000),
- RoutingMachine.getStackForm(1),
- TierEU.RECIPE_UEV,
- 20));
+ box.routingMap.add(new BoxRoutings(FluidRegistry.getFluidStack("ic2uumatter", 1000),
+ RoutingMachine.getStackForm(1),
+ TierEU.RECIPE_UEV,
+ 20));
box.routingStatus = 0;
return;
}
@@ -644,12 +635,12 @@ public static void checkRouting(GTMachineBox box) {
case "digester" -> RecipeMap = LanthanidesRecipeMaps.digesterRecipes;
case "dissolution_tank" -> RecipeMap = LanthanidesRecipeMaps.dissolutionTankRecipes;
case "cyclotron.tier.single" -> RecipeMap = GTPPRecipeMaps.cyclotronRecipes;
- case "multimachine.transcendentplasmamixer" -> RecipeMap = RecipeMaps.transcendentPlasmaMixerRecipes;
+ case "multimachine.transcendentplasmamixer" ->
+ RecipeMap = RecipeMaps.transcendentPlasmaMixerRecipes;
case "projectmoduleassemblert3" -> RecipeMap = IGRecipeMaps.spaceAssemblerRecipes;
default -> {
- RecipeMap = (RoutingMachine instanceof IBoxable boxable)
- ? boxable.getRealRecipeMap(RoutingMachine)
- : RoutingMachine.getRecipeMap();
+ RecipeMap = (RoutingMachine instanceof IBoxable boxable) ? boxable.getRealRecipeMap(
+ RoutingMachine) : RoutingMachine.getRecipeMap();
if (RecipeMap == null) {
box.routingStatus = 3;
return;
@@ -657,8 +648,7 @@ public static void checkRouting(GTMachineBox box) {
}
}
ItemInputs.remove(inputBus.getStackInSlot(i));
- if (RoutingRecipe == null) RoutingRecipe = RecipeMap.findRecipe(
- box.getBaseMetaTileEntity(),
+ if (RoutingRecipe == null) RoutingRecipe = RecipeMap.findRecipe(box.getBaseMetaTileEntity(),
true,
true,
Long.MAX_VALUE / 10,
@@ -670,11 +660,9 @@ public static void checkRouting(GTMachineBox box) {
if (tempRecipe.mInputs[j] == null) continue;
if (GT_OreDictUnificator.getAssociation(tempRecipe.mInputs[j]) != null) {
for (ItemStack si : box.getStoredInputs()) {
- if (GT_OreDictUnificator.isInputStackEqual(
- tempRecipe.mInputs[j],
+ if (GT_OreDictUnificator.isInputStackEqual(tempRecipe.mInputs[j],
GT_OreDictUnificator.get(false, si))) {
- tempRecipe.mInputs[j] = new ItemStack(
- si.getItem(),
+ tempRecipe.mInputs[j] = new ItemStack(si.getItem(),
tempRecipe.mInputs[j].stackSize,
si.getItemDamage());
}
@@ -701,12 +689,9 @@ public static void makeRouting(GT_NEI_DefaultHandler recipe, int recipeIndex, En
.collect(Collectors.toList());
for (ItemStack machine : machineList) {
if (getMetaTileEntity(machine) instanceof GT_MetaTileEntity_MultiBlockBase) {
- NetworkLoader.instance.sendToServer(
- new MessageRouting(
- new BoxRoutings(
- ((GT_NEI_DefaultHandler.CachedDefaultRecipe) recipe.arecipes.get(recipeIndex)).mRecipe,
- machine).routingToNbt(),
- player));
+ NetworkLoader.instance.sendToServer(new MessageRouting(new BoxRoutings(((GT_NEI_DefaultHandler.CachedDefaultRecipe) recipe.arecipes.get(
+ recipeIndex)).mRecipe,
+ machine).routingToNbt(), player));
break;
}
}
diff --git a/src/main/java/com/silvermoon/boxplusplus/util/FluidContainer.java b/src/main/java/com/silvermoon/boxplusplus/util/FluidContainer.java
index d0635eb..ac3050d 100644
--- a/src/main/java/com/silvermoon/boxplusplus/util/FluidContainer.java
+++ b/src/main/java/com/silvermoon/boxplusplus/util/FluidContainer.java
@@ -13,12 +13,12 @@ public class FluidContainer {
public void addFluidStack(FluidStack input, int multiple) {
String name = input.getUnlocalizedName();
if (!stack.containsKey(name)) {
- stack.put(
- name,
+ stack.put(name,
new FluidStack(input.getFluid(), (int) Math.min((long) input.amount * multiple, Integer.MAX_VALUE)));
} else {
- stack.get(name).amount = (int) Math
- .min(stack.get(name).amount + (long) input.amount * multiple, Integer.MAX_VALUE);
+ stack.get(name).amount = (int) Math.min(
+ stack.get(name).amount + (long) input.amount * multiple,
+ Integer.MAX_VALUE);
}
}
diff --git a/src/main/java/com/silvermoon/boxplusplus/util/ItemContainer.java b/src/main/java/com/silvermoon/boxplusplus/util/ItemContainer.java
index 6b087d2..0c737aa 100644
--- a/src/main/java/com/silvermoon/boxplusplus/util/ItemContainer.java
+++ b/src/main/java/com/silvermoon/boxplusplus/util/ItemContainer.java
@@ -18,8 +18,10 @@ public void addItemStack(ItemStack input, int multiple, int chance) {
if (input.getItem() == null) return;
Optional isNull = Optional.ofNullable(stack.get(input.getItem(), input.getItemDamage()));
if (isNull.isPresent()) {
- stack
- .put(input.getItem(), input.getItemDamage(), chance * (long) input.stackSize * multiple + isNull.get());
+ stack.put(
+ input.getItem(),
+ input.getItemDamage(),
+ chance * (long) input.stackSize * multiple + isNull.get());
} else {
stack.put(input.getItem(), input.getItemDamage(), chance * (long) input.stackSize * multiple);
}
@@ -44,11 +46,9 @@ public List getItemStack() {
for (Item item : stack.rowKeySet()) {
for (int meta : stack.columnKeySet()) {
if (stack.get(item, meta) != null) {
- output.add(
- new ItemStack(
- item,
- (int) Math.min(stack.get(item, meta) / 10000, Integer.MAX_VALUE - 1),
- meta));
+ output.add(new ItemStack(item,
+ (int) Math.min(stack.get(item, meta) / 10000, Integer.MAX_VALUE - 1),
+ meta));
}
}
}
diff --git a/src/main/java/com/silvermoon/boxplusplus/util/ResultModuleRequirement.java b/src/main/java/com/silvermoon/boxplusplus/util/ResultModuleRequirement.java
index 045681b..b0c0c6d 100644
--- a/src/main/java/com/silvermoon/boxplusplus/util/ResultModuleRequirement.java
+++ b/src/main/java/com/silvermoon/boxplusplus/util/ResultModuleRequirement.java
@@ -30,8 +30,9 @@ public boolean wasSuccessful() {
@Override
public String getDisplayString() {
- return EnumChatFormatting.AQUA + i18n("tile.boxplusplus.boxUI.37")
- + i18n("tile.boxplusplus_" + (isUpdated ? "boxmoduleplus." : "boxmodule." + required + ".name"));
+ return EnumChatFormatting.AQUA + i18n("tile.boxplusplus.boxUI.37") + i18n("tile.boxplusplus_" + (isUpdated
+ ? "boxmoduleplus."
+ : "boxmodule." + required + ".name"));
}
@Override
diff --git a/src/main/java/com/silvermoon/boxplusplus/util/Util.java b/src/main/java/com/silvermoon/boxplusplus/util/Util.java
index c736225..392f3ae 100644
--- a/src/main/java/com/silvermoon/boxplusplus/util/Util.java
+++ b/src/main/java/com/silvermoon/boxplusplus/util/Util.java
@@ -134,8 +134,11 @@ public static ItemStack readBoxItemFromUNBT(NBTTagCompound nbt) {
if (itemDamage < 0) {
itemDamage = 0;
}
- ItemStack boxItem = GT_ModHandler
- .getModItem(nbt.getString("modID"), nbt.getString("name"), stackSize, itemDamage);
+ ItemStack boxItem = GT_ModHandler.getModItem(
+ nbt.getString("modID"),
+ nbt.getString("name"),
+ stackSize,
+ itemDamage);
if (nbt.hasKey("tag", 10)) {
boxItem.stackTagCompound = nbt.getCompoundTag("tag");
}
@@ -179,11 +182,11 @@ public boolean spawnHint(T t, World world, int x, int y, int z, ItemStack trigge
@Override
public boolean placeBlock(T t, World world, int x, int y, int z, ItemStack trigger) {
- world.setBlock(
- x,
+ world.setBlock(x,
y,
z,
- trigger.stackSize == 1 ? RingAdder.apply(t)
+ trigger.stackSize == 1
+ ? RingAdder.apply(t)
: (trigger.stackSize == 2 ? BlockRegister.BoxRing2 : BlockRegister.BoxRing3),
hintMeta,
2);
@@ -195,7 +198,8 @@ public boolean placeBlock(T t, World world, int x, int y, int z, ItemStack trigg
public static String serialize(NBTTagCompound nbt) {
try {
return org.apache.commons.codec.binary.Base64.encodeBase64String(CompressedStreamTools.compress(nbt));
- } catch (IOException ignored) {}
+ } catch (IOException ignored) {
+ }
return null;
}
@@ -204,7 +208,8 @@ public static String serialize(NBTTagCompound nbt) {
byte[] b = org.apache.commons.codec.binary.Base64.decodeBase64(str);
try {
return CompressedStreamTools.func_152457_a(b, new NBTSizeTracker(2097152L));
- } catch (IOException ignored) {}
+ } catch (IOException ignored) {
+ }
}
return null;
}
@@ -281,10 +286,8 @@ public static EntityPlayer getPlayerFromUUID(String uuid) {
for (Object player : MinecraftServer.getServer()
.getConfigurationManager().playerEntityList) {
if (player instanceof EntityPlayer player1) {
- if (uuid.equals(
- player1.getUniqueID()
- .toString()))
- return player1;
+ if (uuid.equals(player1.getUniqueID()
+ .toString())) return player1;
}
}
return null;
From 0f0715f114f22221116f3480b1eb72f63e6b218f Mon Sep 17 00:00:00 2001
From: luomolhx <2932965369@qq.com>
Date: Sun, 17 Nov 2024 15:31:30 +0800
Subject: [PATCH 09/12] fit 2.7.0
---
dependencies.gradle | 8 +-
gradle.properties | 6 +
.../silvermoon/boxplusplus/api/IBoxable.java | 12 +-
.../boxplusplus/api/boxRegister.java | 12 +-
.../boxplusplus/client/BoxNEIHandler.java | 6 +-
.../boxplusplus/common/BoxModule.java | 8 +-
.../common/block/BlockBoxModuleCore.java | 12 +-
.../common/block/BlockMachineBase.java | 16 +-
.../common/loader/RecipeLoader.java | 515 +++++++++---------
.../common/tileentities/GTMachineBox.java | 244 ++++-----
.../boxplusplus/network/MessageRouting.java | 4 +-
.../boxplusplus/util/BoxRecipe.java | 8 +-
.../boxplusplus/util/BoxRoutings.java | 120 ++--
.../util/ResultModuleRequirement.java | 16 +
.../com/silvermoon/boxplusplus/util/Util.java | 37 +-
15 files changed, 520 insertions(+), 504 deletions(-)
diff --git a/dependencies.gradle b/dependencies.gradle
index f4fe51d..a92becc 100644
--- a/dependencies.gradle
+++ b/dependencies.gradle
@@ -29,8 +29,8 @@
* For more details, see https://docs.gradle.org/8.0.1/userguide/java_library_plugin.html#sec:java_library_configurations_graph
*/
dependencies {
- implementation('com.github.GTNewHorizons:GT5-Unofficial:5.09.48.68:dev')
- implementation('com.github.GTNewHorizons:GTNH-Intergalactic:1.3.5:dev')
- implementation('com.github.GTNewHorizons:NewHorizonsCoreMod:2.3.11:dev')
- implementation('com.github.GTNewHorizons:Avaritia:1.49:dev')
+ implementation('com.github.GTNewHorizons:GT5-Unofficial:5.09.50.69:dev')
+ implementation('com.github.GTNewHorizons:GTNH-Intergalactic:1.4.25:dev')
+ implementation('com.github.GTNewHorizons:NewHorizonsCoreMod:2.6.77:dev')
+ implementation('com.github.GTNewHorizons:Avaritia:1.54:dev')
}
diff --git a/gradle.properties b/gradle.properties
index 56ca9a3..0f362bc 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -139,3 +139,9 @@ disableCheckstyle=true
# WARNING: If you do use this option, it will overwrite whatever you have in your existing projects. This might not be what you want!
# Usually there is no need to uncomment this here as other developers do not necessarily use the same build type as you.
# ideaOverrideBuildType = idea
+
+
+systemProp.http.proxyHost=127.0.0.1
+systemProp.http.proxyPort=7897
+systemProp.https.proxyHost=127.0.0.1
+systemProp.https.proxyPort=7897
diff --git a/src/main/java/com/silvermoon/boxplusplus/api/IBoxable.java b/src/main/java/com/silvermoon/boxplusplus/api/IBoxable.java
index 3b28307..3702691 100644
--- a/src/main/java/com/silvermoon/boxplusplus/api/IBoxable.java
+++ b/src/main/java/com/silvermoon/boxplusplus/api/IBoxable.java
@@ -1,14 +1,14 @@
package com.silvermoon.boxplusplus.api;
-import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
+import gregtech.api.metatileentity.implementations.MTEMultiBlockBase;
import gregtech.api.recipe.RecipeMap;
/**
- * Implements this on GT_MetaTileEntity_MultiBlockBase to allow your machine encapsulating in Box System.
+ * Implements this on MTEMultiBlockBase to allow your machine encapsulating in Box System.
* If you don't have a standard getRecipeMap(), override getRealRecipeMap().
* Do remember to call boxRegister.registerMachineToBox() on postInit!
*
- * 为GT_MetaTileEntity_MultiBlockBase实现此接口,将允许Box封装你的机器。如果你的机器有多种模式,重写getRealRecipeMap()来返回你期望封装的那个。
+ * 为MTEMultiBlockBase实现此接口,将允许Box封装你的机器。如果你的机器有多种模式,重写getRealRecipeMap()来返回你期望封装的那个。
* 记得在postInit调用一次boxRegister.registerMachineToBox()!
*/
public interface IBoxable {
@@ -17,7 +17,7 @@ public interface IBoxable {
* Set which module your machine will be.
*
* 设定模块ID。模块ID可以从模块核心的meta值获取,范围:0-11
- *
+ *
* @return Module ID, refers to the meta of the module core block. Range: 0-11
*/
@@ -27,7 +27,7 @@ public interface IBoxable {
* Should use update module
*
* 是否使用升级模块
- *
+ *
* @return true - updated
*/
boolean isUpdateModule();
@@ -38,7 +38,7 @@ public interface IBoxable {
* @param machine normally "this"
* @return GT_Recipe_Map - the real recipeMap
*/
- default RecipeMap> getRealRecipeMap(GT_MetaTileEntity_MultiBlockBase machine) {
+ default RecipeMap> getRealRecipeMap(MTEMultiBlockBase machine) {
return machine.getRecipeMap();
}
diff --git a/src/main/java/com/silvermoon/boxplusplus/api/boxRegister.java b/src/main/java/com/silvermoon/boxplusplus/api/boxRegister.java
index 8a16af8..ad54c75 100644
--- a/src/main/java/com/silvermoon/boxplusplus/api/boxRegister.java
+++ b/src/main/java/com/silvermoon/boxplusplus/api/boxRegister.java
@@ -6,25 +6,25 @@
import com.google.common.collect.*;
import com.silvermoon.boxplusplus.boxplusplus;
-import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
+import gregtech.api.metatileentity.implementations.MTEMultiBlockBase;
public class boxRegister {
- public static final List customerMachineList = new ArrayList<>();
+ public static final List customerMachineList = new ArrayList<>();
public static final Multimap customModuleList = HashMultimap.create();
public static final Multimap customUpdatedModuleList = HashMultimap.create();
/**
* Use this to register your boxable machine. **Should be called on CommonProxy.postInit().**
*
- * 在CommonProxy.postInit()阶段调用本方法。确保传入的GT_MetaTileEntity_MultiBlockBase已经实现了IBoxable。
- *
+ * 在CommonProxy.postInit()阶段调用本方法。确保传入的MTEMultiBlockBase已经实现了IBoxable。
+ *
* @param machineList You can put multi-GTMultiMachines in this parameter.
*
* 可以接受多个参数
*/
- public static void registerMachineToBox(GT_MetaTileEntity_MultiBlockBase... machineList) {
- for (GT_MetaTileEntity_MultiBlockBase machine : machineList) {
+ public static void registerMachineToBox(MTEMultiBlockBase... machineList) {
+ for (MTEMultiBlockBase machine : machineList) {
if (machine instanceof IBoxable boxable) {
customerMachineList.add(machine);
if (boxable.isUpdateModule()) {
diff --git a/src/main/java/com/silvermoon/boxplusplus/client/BoxNEIHandler.java b/src/main/java/com/silvermoon/boxplusplus/client/BoxNEIHandler.java
index 5b198b6..98d00b0 100644
--- a/src/main/java/com/silvermoon/boxplusplus/client/BoxNEIHandler.java
+++ b/src/main/java/com/silvermoon/boxplusplus/client/BoxNEIHandler.java
@@ -20,7 +20,7 @@
import codechicken.nei.recipe.*;
import cpw.mods.fml.common.ObfuscationReflectionHelper;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import gregtech.nei.GT_NEI_DefaultHandler;
+import gregtech.nei.GTNEIDefaultHandler;
public class BoxNEIHandler {
@@ -76,7 +76,7 @@ public void onDrawScreen(GuiScreenEvent.DrawScreenEvent.Post event) {
GuiPatternTermEx.class,
gui.getHandler()
.getOverlayIdentifier())
- && gui.getHandler() instanceof GT_NEI_DefaultHandler;
+ && gui.getHandler() instanceof GTNEIDefaultHandler;
}
}
Collections.addAll(buttonList, buttons);
@@ -100,7 +100,7 @@ public void onActionPerformedEventPre(GuiScreenEvent.ActionPerformedEvent.Pre ev
if (recipesPerPage >= 0 && handler != null) {
int recipe = gui.page * recipesPerPage + event.button.id - OVERLAY_BUTTON_ID_START;
BoxRoutings
- .makeRouting((GT_NEI_DefaultHandler) gui.currenthandlers.get(gui.recipetype), recipe, player);
+ .makeRouting((GTNEIDefaultHandler) gui.currenthandlers.get(gui.recipetype), recipe, player);
event.setCanceled(true);
}
}
diff --git a/src/main/java/com/silvermoon/boxplusplus/common/BoxModule.java b/src/main/java/com/silvermoon/boxplusplus/common/BoxModule.java
index c8c3cc1..14d7cb0 100644
--- a/src/main/java/com/silvermoon/boxplusplus/common/BoxModule.java
+++ b/src/main/java/com/silvermoon/boxplusplus/common/BoxModule.java
@@ -5,8 +5,8 @@
import com.silvermoon.boxplusplus.api.IBoxable;
import com.silvermoon.boxplusplus.util.BoxRoutings;
-import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
-import gregtech.api.util.GT_Utility;
+import gregtech.api.metatileentity.implementations.MTEMultiBlockBase;
+import gregtech.api.util.GTUtility;
public class BoxModule {
@@ -151,8 +151,8 @@ public static int[] transMachinesToModule(BoxRoutings routing) {
case "quantumforcetransformer.controller.tier.single", "frf", "industrialmassfab.controller.tier.single" -> new int[] {
10, 1 };
default -> {
- for (GT_MetaTileEntity_MultiBlockBase machine : customerMachineList) {
- if (GT_Utility.areStacksEqual(machine.getStackForm(1), routing.RoutingMachine, true)) {
+ for (MTEMultiBlockBase machine : customerMachineList) {
+ if (GTUtility.areStacksEqual(machine.getStackForm(1), routing.RoutingMachine, true)) {
yield new int[] { ((IBoxable) machine).getModuleIDSafely(),
((IBoxable) machine).isUpdateModule() ? 1 : 0 };
}
diff --git a/src/main/java/com/silvermoon/boxplusplus/common/block/BlockBoxModuleCore.java b/src/main/java/com/silvermoon/boxplusplus/common/block/BlockBoxModuleCore.java
index 6de8a62..1019632 100644
--- a/src/main/java/com/silvermoon/boxplusplus/common/block/BlockBoxModuleCore.java
+++ b/src/main/java/com/silvermoon/boxplusplus/common/block/BlockBoxModuleCore.java
@@ -19,7 +19,7 @@
import com.silvermoon.boxplusplus.common.items.IB_BoxModule;
import cpw.mods.fml.common.registry.GameRegistry;
-import gregtech.api.GregTech_API;
+import gregtech.api.GregTechAPI;
public class BlockBoxModuleCore extends Block {
@@ -30,7 +30,7 @@ public BlockBoxModuleCore(String name, Material material, Boolean isUpdate) {
super(material);
this.isUpdate = isUpdate;
setBlockName(name);
- GregTech_API.registerMachineBlock(this, -1);
+ GregTechAPI.registerMachineBlock(this, -1);
}
public void registerBlock() {
@@ -78,15 +78,15 @@ public boolean canCreatureSpawn(EnumCreatureType type, IBlockAccess world, int x
@Override
public void onBlockAdded(World aWorld, int aX, int aY, int aZ) {
- if (GregTech_API.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
- GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ);
+ if (GregTechAPI.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
+ GregTechAPI.causeMachineUpdate(aWorld, aX, aY, aZ);
}
}
@Override
public void breakBlock(World aWorld, int aX, int aY, int aZ, Block aBlock, int aMetaData) {
- if (GregTech_API.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
- GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ);
+ if (GregTechAPI.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
+ GregTechAPI.causeMachineUpdate(aWorld, aX, aY, aZ);
}
}
}
diff --git a/src/main/java/com/silvermoon/boxplusplus/common/block/BlockMachineBase.java b/src/main/java/com/silvermoon/boxplusplus/common/block/BlockMachineBase.java
index dc17e0b..68c2d96 100644
--- a/src/main/java/com/silvermoon/boxplusplus/common/block/BlockMachineBase.java
+++ b/src/main/java/com/silvermoon/boxplusplus/common/block/BlockMachineBase.java
@@ -13,17 +13,17 @@
import com.silvermoon.boxplusplus.Tags;
import cpw.mods.fml.common.registry.GameRegistry;
-import gregtech.api.GregTech_API;
+import gregtech.api.GregTechAPI;
import gregtech.api.enums.Textures;
import gregtech.api.render.TextureFactory;
-import gregtech.api.util.GT_Utility;
+import gregtech.api.util.GTUtility;
public class BlockMachineBase extends Block {
private IIcon BoxIcon;
private final int value;
static {
- GT_Utility.addTexturePage((byte) 114);
+ GTUtility.addTexturePage((byte) 114);
}
public BlockMachineBase(String name, Material material, int value) {
@@ -37,7 +37,7 @@ public void registerBlock() {
super.setHardness(5);
super.setCreativeTab(BoxTab);
GameRegistry.registerBlock(this, getUnlocalizedName());
- GregTech_API.registerMachineBlock(this, -1);
+ GregTechAPI.registerMachineBlock(this, -1);
}
@Override
@@ -69,15 +69,15 @@ public boolean canCreatureSpawn(EnumCreatureType type, IBlockAccess world, int x
@Override
public void onBlockAdded(World aWorld, int aX, int aY, int aZ) {
- if (GregTech_API.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
- GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ);
+ if (GregTechAPI.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
+ GregTechAPI.causeMachineUpdate(aWorld, aX, aY, aZ);
}
}
@Override
public void breakBlock(World aWorld, int aX, int aY, int aZ, Block aBlock, int aMetaData) {
- if (GregTech_API.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
- GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ);
+ if (GregTechAPI.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
+ GregTechAPI.causeMachineUpdate(aWorld, aX, aY, aZ);
}
}
}
diff --git a/src/main/java/com/silvermoon/boxplusplus/common/loader/RecipeLoader.java b/src/main/java/com/silvermoon/boxplusplus/common/loader/RecipeLoader.java
index ded5a4b..8c3f43a 100644
--- a/src/main/java/com/silvermoon/boxplusplus/common/loader/RecipeLoader.java
+++ b/src/main/java/com/silvermoon/boxplusplus/common/loader/RecipeLoader.java
@@ -3,20 +3,19 @@
import static gregtech.api.enums.Mods.*;
import static gregtech.api.recipe.RecipeMaps.assemblerRecipes;
import static gregtech.api.recipe.RecipeMaps.multiblockChemicalReactorRecipes;
-import static gregtech.api.util.GT_RecipeConstants.*;
+import static gregtech.api.util.GTRecipeConstants.*;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.CraftingManager;
import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.fluids.FluidStack;
-import com.github.technus.tectech.recipe.TT_recipeAdder;
-
import gregtech.api.enums.*;
-import gregtech.api.util.GT_ModHandler;
-import gregtech.api.util.GT_OreDictUnificator;
+import gregtech.api.util.GTModHandler;
+import gregtech.api.util.GTOreDictUnificator;
import gtPlusPlus.api.recipe.GTPPRecipeMaps;
import gtPlusPlus.xmod.gregtech.api.enums.GregtechItemList;
+import tectech.recipe.TTRecipeAdder;
public class RecipeLoader implements Runnable {
@@ -29,25 +28,25 @@ public void run() {
}
public void addBoxRecipe() {
- GT_Values.RA.stdBuilder()
- .metadata(RESEARCH_ITEM, GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 13532))
+ GTValues.RA.stdBuilder()
+ .metadata(RESEARCH_ITEM, GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 13532))
.metadata(RESEARCH_TIME, 64000)
.itemOutputs(TileEntitiesLoader.Box.getStackForm(1))
.itemInputs(
new ItemStack(BlockRegister.BoxRing, 1, 0),
- GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 4, 59),
- GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 8, 58),
- GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 16, 57),
- GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 32, 38),
- GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 64, 37),
+ GTModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 4, 59),
+ GTModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 8, 58),
+ GTModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 16, 57),
+ GTModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 32, 38),
+ GTModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 64, 37),
new ItemStack(BlockRegister.SpaceExtend, 64, 0),
new ItemStack(BlockRegister.SpaceExtend, 64, 0),
new ItemStack(BlockRegister.SpaceExtend, 64, 0),
new ItemStack(BlockRegister.SpaceExtend, 64, 0),
ItemList.Field_Generator_IV.get(4),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 15470),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 15470),
ItemList.Tool_DataOrb.get(16),
- GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiPart", 1, 360),
+ GTModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiPart", 1, 360),
ItemList.Casing_Pipe_Titanium.get(64))
.fluidInputs(
FluidRegistry.getFluidStack("molten.titanium", 16416),
@@ -59,18 +58,18 @@ public void addBoxRecipe() {
}
public void addMachineBlockRecipe() {
- GT_Values.RA.stdBuilder()
+ GTValues.RA.stdBuilder()
.itemOutputs(new ItemStack(BlockRegister.SpaceExtend, 32, 0))
.itemInputs(
ItemList.Casing_StableTitanium.get(64),
- GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 2, 32),
+ GTModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 2, 32),
ItemList.Electric_Motor_LuV.get(16),
ItemList.Electric_Piston_LuV.get(16),
- GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.IrradiantReinforcedTitaniumPlate", 4))
+ GTModHandler.getModItem(NewHorizonsCoreMod.ID, "item.IrradiantReinforcedTitaniumPlate", 4))
.eut(TierEU.RECIPE_LuV)
.duration(400)
.addTo(assemblerRecipes);
- GT_Values.RA.stdBuilder()
+ GTValues.RA.stdBuilder()
.metadata(RESEARCH_ITEM, new ItemStack(BlockRegister.SpaceExtend))
.metadata(RESEARCH_TIME, 24000)
.itemOutputs(new ItemStack(BlockRegister.SpaceCompress, 16, 0))
@@ -79,15 +78,15 @@ public void addMachineBlockRecipe() {
ItemList.Casing_StableTitanium.get(64),
ItemList.Super_Tank_LV.get(1),
ItemList.Super_Chest_LV.get(1),
- GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 4, 33),
- GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "tile.TitaniumPlatedReinforcedStone", 64))
+ GTModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 4, 33),
+ GTModHandler.getModItem(NewHorizonsCoreMod.ID, "tile.TitaniumPlatedReinforcedStone", 64))
.fluidInputs(
FluidRegistry.getFluidStack("ic2coolant", 10000),
FluidRegistry.getFluidStack("molten.indalloy140", 1440))
.eut(TierEU.RECIPE_LuV)
.duration(1600)
.addTo(AssemblyLine);
- GT_Values.RA.stdBuilder()
+ GTValues.RA.stdBuilder()
.metadata(RESEARCH_ITEM, new ItemStack(BlockRegister.SpaceCompress))
.metadata(RESEARCH_TIME, 48000)
.itemOutputs(new ItemStack(BlockRegister.SpaceConstraint, 2, 0))
@@ -96,8 +95,8 @@ public void addMachineBlockRecipe() {
ItemList.Casing_StableTitanium.get(64),
ItemList.Casing_StableTitanium.get(64),
ItemList.Casing_StableTitanium.get(64),
- GT_OreDictUnificator.get("plateDoubleAdvancedNitinol", 8),
- GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 16, 34),
+ GTOreDictUnificator.get("plateDoubleAdvancedNitinol", 8),
+ GTModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 16, 34),
ItemList.Quantum_Tank_LV.get(1),
ItemList.Quantum_Chest_LV.get(1))
.fluidInputs(
@@ -106,18 +105,18 @@ public void addMachineBlockRecipe() {
.eut(TierEU.RECIPE_UV)
.duration(6400)
.addTo(AssemblyLine);
- TT_recipeAdder.addResearchableAssemblylineRecipe(
+ TTRecipeAdder.addResearchableAssemblylineRecipe(
new ItemStack(BlockRegister.SpaceConstraint),
480000,
128,
2000000,
8,
- new ItemStack[] { GT_ModHandler.getModItem(GTNHIntergalactic.ID, "gt.blockcasingsSE", 64),
- GT_OreDictUnificator.get("blockAstralTitanium", 48),
- GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 32, 34),
- GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1, 60),
+ new ItemStack[] { GTModHandler.getModItem(GTNHIntergalactic.ID, "gt.blockcasingsSE", 64),
+ GTOreDictUnificator.get("blockAstralTitanium", 48),
+ GTModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 32, 34),
+ GTModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1, 60),
ItemList.Quantum_Tank_IV.get(1), ItemList.Quantum_Chest_IV.get(1),
- GT_OreDictUnificator.get(OrePrefixes.pipeHuge, "Titanium", 1) },
+ GTOreDictUnificator.get(OrePrefixes.pipeHuge, "Titanium", 1) },
new FluidStack[] { FluidRegistry.getFluidStack("molten.radoxpoly", 576),
FluidRegistry.getFluidStack("molten.chromaticglass", 1440),
FluidRegistry.getFluidStack("molten.metastable oganesson", 1000),
@@ -128,31 +127,31 @@ public void addMachineBlockRecipe() {
}
public void addRingRecipe() {
- GT_Values.RA.stdBuilder()
+ GTValues.RA.stdBuilder()
.itemOutputs(new ItemStack(BlockRegister.BoxRing, 1, 0))
.itemInputs(
- GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Titanium, 64),
- GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Titanium, 64),
- GT_OreDictUnificator.get(OrePrefixes.pipeMedium, Materials.Titanium, 64),
- GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.Titanium, 64),
+ GTOreDictUnificator.get(OrePrefixes.ring, Materials.Titanium, 64),
+ GTOreDictUnificator.get(OrePrefixes.ring, Materials.Titanium, 64),
+ GTOreDictUnificator.get(OrePrefixes.pipeMedium, Materials.Titanium, 64),
+ GTOreDictUnificator.get(OrePrefixes.rotor, Materials.Titanium, 64),
ItemList.Field_Generator_IV.get(4),
new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 4 })
.fluidInputs(FluidRegistry.getFluidStack("molten.tanmolyium beta-c", 51840))
.eut(TierEU.RECIPE_LuV)
.duration(1200)
.addTo(assemblerRecipes);
- GT_Values.RA.stdBuilder()
+ GTValues.RA.stdBuilder()
.metadata(RESEARCH_ITEM, new ItemStack(BlockRegister.BoxRing))
.metadata(RESEARCH_TIME, 48000)
.itemOutputs(new ItemStack(BlockRegister.BoxRing2, 1, 0))
.itemInputs(
- GT_OreDictUnificator.get("ringLaurenium", 64),
- GT_OreDictUnificator.get("ringLaurenium", 64),
- GT_OreDictUnificator.get("ringLaurenium", 64),
- GT_OreDictUnificator.get("ringLaurenium", 64),
- GT_OreDictUnificator.get("blockAdvancedNitinol", 16),
- GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Tritanium, 64),
- GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Tritanium, 64),
+ GTOreDictUnificator.get("ringLaurenium", 64),
+ GTOreDictUnificator.get("ringLaurenium", 64),
+ GTOreDictUnificator.get("ringLaurenium", 64),
+ GTOreDictUnificator.get("ringLaurenium", 64),
+ GTOreDictUnificator.get("blockAdvancedNitinol", 16),
+ GTOreDictUnificator.get(OrePrefixes.plateDense, Materials.Tritanium, 64),
+ GTOreDictUnificator.get(OrePrefixes.plateDense, Materials.Tritanium, 64),
ItemList.Field_Generator_UV.get(4),
ItemList.ZPM_Coil.get(48))
.fluidInputs(
@@ -161,26 +160,26 @@ public void addRingRecipe() {
.eut(TierEU.RECIPE_UV)
.duration(2000)
.addTo(AssemblyLine);
- TT_recipeAdder.addResearchableAssemblylineRecipe(
+ TTRecipeAdder.addResearchableAssemblylineRecipe(
new ItemStack(BlockRegister.BoxRing2),
48000000,
10240,
8000000,
32,
- new Object[] { GT_OreDictUnificator.get("ringAstralTitanium", 64),
- GT_OreDictUnificator.get("ringAstralTitanium", 64), GT_OreDictUnificator.get("ringAstralTitanium", 64),
- GT_OreDictUnificator.get("ringAstralTitanium", 64),
- GT_OreDictUnificator.get("plateDenseAstralTitanium", 64),
+ new Object[] { GTOreDictUnificator.get("ringAstralTitanium", 64),
+ GTOreDictUnificator.get("ringAstralTitanium", 64), GTOreDictUnificator.get("ringAstralTitanium", 64),
+ GTOreDictUnificator.get("ringAstralTitanium", 64),
+ GTOreDictUnificator.get("plateDenseAstralTitanium", 64),
new Object[] { OrePrefixes.circuit.get(Materials.Optical), 32 },
- GT_OreDictUnificator.get("batteryUMV", 4), ItemList.Field_Generator_UEV.get(4),
- GT_ModHandler.getModItem(UniversalSingularities.ID, "universal.general.singularity", 64, 12),
- GT_ModHandler.getModItem(UniversalSingularities.ID, "universal.general.singularity", 64, 12),
- GT_ModHandler.getModItem(UniversalSingularities.ID, "universal.general.singularity", 64, 12),
- GT_ModHandler.getModItem(UniversalSingularities.ID, "universal.general.singularity", 64, 12),
- GT_OreDictUnificator.get(OrePrefixes.pipeSmall, "Titanium", 1),
- GT_OreDictUnificator.get(OrePrefixes.pipeMedium, "Titanium", 1),
- GT_OreDictUnificator.get(OrePrefixes.pipeLarge, "Titanium", 1),
- GT_OreDictUnificator.get(OrePrefixes.pipeHuge, "Titanium", 1) },
+ GTOreDictUnificator.get("batteryUMV", 4), ItemList.Field_Generator_UEV.get(4),
+ GTModHandler.getModItem(UniversalSingularities.ID, "universal.general.singularity", 64, 12),
+ GTModHandler.getModItem(UniversalSingularities.ID, "universal.general.singularity", 64, 12),
+ GTModHandler.getModItem(UniversalSingularities.ID, "universal.general.singularity", 64, 12),
+ GTModHandler.getModItem(UniversalSingularities.ID, "universal.general.singularity", 64, 12),
+ GTOreDictUnificator.get(OrePrefixes.pipeSmall, "Titanium", 1),
+ GTOreDictUnificator.get(OrePrefixes.pipeMedium, "Titanium", 1),
+ GTOreDictUnificator.get(OrePrefixes.pipeLarge, "Titanium", 1),
+ GTOreDictUnificator.get(OrePrefixes.pipeHuge, "Titanium", 1) },
new FluidStack[] { FluidRegistry.getFluidStack("molten.radoxpoly", 640000),
FluidRegistry.getFluidStack("molten.chromaticglass", 14400),
FluidRegistry.getFluidStack("molten.metastable oganesson", 32000),
@@ -192,32 +191,32 @@ public void addRingRecipe() {
// Normally - R1-Assembler; R2-AssemblyLine; R3-ResearchAssemblyLine
public void addModuleRecipe() {
- GT_Values.RA.stdBuilder()
+ GTValues.RA.stdBuilder()
.itemOutputs(new ItemStack(BlockRegister.BoxModule, 1, 0))
.itemInputs(
new ItemStack(BlockRegister.BoxRing, 1),
ItemList.Machine_Multi_LargeChemicalReactor.get(64),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 811),
- GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.Titanium, 16))
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 811),
+ GTOreDictUnificator.get(OrePrefixes.rotor, Materials.Titanium, 16))
.fluidInputs(
FluidRegistry.getFluidStack("glue", 8000),
FluidRegistry.getFluidStack("tetrafluoroethylene", 128000))
.eut(TierEU.RECIPE_LuV)
.duration(1200)
.addTo(multiblockChemicalReactorRecipes);
- GT_Values.RA.stdBuilder()
+ GTValues.RA.stdBuilder()
.itemOutputs(new ItemStack(BlockRegister.BoxModule, 1, 1))
.itemInputs(
new ItemStack(BlockRegister.BoxRing, 1),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 876),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 14101),
- GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 64, 43),
- GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 64, 44))
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 876),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 14101),
+ GTModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 64, 43),
+ GTModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 64, 44))
.fluidInputs(FluidRegistry.getFluidStack("glue", 16000))
.eut(TierEU.RECIPE_LuV)
.duration(1200)
.addTo(assemblerRecipes);
- GT_Values.RA.stdBuilder()
+ GTValues.RA.stdBuilder()
.itemOutputs(new ItemStack(BlockRegister.BoxModule, 1, 2))
.itemInputs(
new ItemStack(BlockRegister.BoxRing, 1),
@@ -230,14 +229,14 @@ public void addModuleRecipe() {
.eut(TierEU.RECIPE_LuV)
.duration(2400)
.addTo(GTPPRecipeMaps.chemicalPlantRecipes);
- GT_Values.RA.stdBuilder()
+ GTValues.RA.stdBuilder()
.itemOutputs(new ItemStack(BlockRegister.BoxModule, 1, 3))
.itemInputs(
new ItemStack(BlockRegister.BoxRing, 1),
ItemList.Machine_Multi_Furnace.get(64),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 849),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 862),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 31023),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 849),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 862),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 31023),
ItemList.Casing_Coil_Cupronickel.get(64),
ItemList.LuV_Coil.get(64),
ItemList.Casing_Firebox_Titanium.get(64),
@@ -246,37 +245,37 @@ public void addModuleRecipe() {
.eut(TierEU.RECIPE_LuV)
.duration(2400)
.addTo(assemblerRecipes);
- GT_Values.RA.stdBuilder()
- .metadata(RESEARCH_ITEM, GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 860))
+ GTValues.RA.stdBuilder()
+ .metadata(RESEARCH_ITEM, GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 860))
.metadata(RESEARCH_TIME, 12000)
.itemOutputs(new ItemStack(BlockRegister.BoxModule, 1, 4))
.itemInputs(
new ItemStack(BlockRegister.BoxRing2, 2),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 860),
- GT_ModHandler.getModItem(GregTech.ID, "gt.metaitem.01", 64, 32764),
- GT_ModHandler.getModItem(OpenComputers.ID, "item", 9, 103),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 9, 15470),
- GT_ModHandler.getModItem(OpenComputers.ID, "item", 1, 69),
- GT_ModHandler.getModItem(TecTech.ID, "gt.blockcasingsTT", 9, 3),
- GT_OreDictUnificator.get("wireGt01SuperconductorUV", 9))
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 860),
+ GTModHandler.getModItem(GregTech.ID, "gt.metaitem.01", 64, 32764),
+ GTModHandler.getModItem(OpenComputers.ID, "item", 9, 103),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 9, 15470),
+ GTModHandler.getModItem(OpenComputers.ID, "item", 1, 69),
+ GTModHandler.getModItem(TecTech.ID, "gt.blockcasingsTT", 9, 3),
+ GTOreDictUnificator.get("wireGt01SuperconductorUV", 9))
.fluidInputs(FluidRegistry.getFluidStack("refinedglue", 8000))
.eut(TierEU.RECIPE_UV)
.duration(1200)
.addTo(AssemblyLine);
- GT_Values.RA.stdBuilder()
- .metadata(RESEARCH_ITEM, GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 31077))
+ GTValues.RA.stdBuilder()
+ .metadata(RESEARCH_ITEM, GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 31077))
.metadata(RESEARCH_TIME, 12000)
.itemOutputs(new ItemStack(BlockRegister.BoxModule, 1, 5))
.itemInputs(
new ItemStack(BlockRegister.BoxRing2, 2),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 31077),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 31065),
- GT_ModHandler.getModItem(Avaritia.ID, "Neutronium_Compressor", 4),
- GT_ModHandler.getModItem(GTPlusPlus.ID, "MU-metaitem.01", 16, 32044),
- GT_ModHandler.getModItem(ExtraUtilities.ID, "nodeUpgrade", 64, 2),
- GT_ModHandler.getModItem(GTPlusPlus.ID, "dummyResearch", 1),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockcasings9", 4, 1),
- GT_ModHandler.getModItem(Chisel.ID, "netherStarChisel", 1))
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 31077),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 31065),
+ GTModHandler.getModItem(Avaritia.ID, "Neutronium_Compressor", 4),
+ GTModHandler.getModItem(GTPlusPlus.ID, "MU-metaitem.01", 16, 32044),
+ GTModHandler.getModItem(ExtraUtilities.ID, "nodeUpgrade", 64, 2),
+ GTModHandler.getModItem(GTPlusPlus.ID, "dummyResearch", 1),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockcasings9", 4, 1),
+ GTModHandler.getModItem(Chisel.ID, "netherStarChisel", 1))
.fluidInputs(
FluidRegistry.getFluidStack("refinedglue", 8000),
FluidRegistry.getFluidStack("ic2pahoehoelava", 128000),
@@ -284,44 +283,44 @@ public void addModuleRecipe() {
.eut(TierEU.RECIPE_UV)
.duration(1200)
.addTo(AssemblyLine);
- GT_Values.RA.stdBuilder()
- .metadata(RESEARCH_ITEM, GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 992))
+ GTValues.RA.stdBuilder()
+ .metadata(RESEARCH_ITEM, GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 992))
.metadata(RESEARCH_TIME, 12000)
.itemOutputs(new ItemStack(BlockRegister.BoxModule, 1, 6))
.itemInputs(
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 792),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 992),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 859),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 797),
- GT_ModHandler.getModItem(AE2Stuff.ID, "Inscriber", 1),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 792),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 992),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 859),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 797),
+ GTModHandler.getModItem(AE2Stuff.ID, "Inscriber", 1),
ItemList.Component_Sawblade_Diamond.get(1),
ItemList.Shape_Extruder_Ingot.get(1),
- GT_ModHandler.getModItem(GTPlusPlus.ID, "MU-metaitem.01", 1, 32152),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 798),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 31075),
- GT_OreDictUnificator.get("wireGt01SuperconductorUV", 6),
- GT_ModHandler.getModItem(ThaumicBases.ID, "voidAnvil", 16),
+ GTModHandler.getModItem(GTPlusPlus.ID, "MU-metaitem.01", 1, 32152),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 798),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 31075),
+ GTOreDictUnificator.get("wireGt01SuperconductorUV", 6),
+ GTModHandler.getModItem(ThaumicBases.ID, "voidAnvil", 16),
new ItemStack(BlockRegister.BoxRing2, 2))
.fluidInputs(FluidRegistry.getFluidStack("refinedglue", 8000))
.eut(TierEU.RECIPE_UV)
.duration(1200)
.addTo(AssemblyLine);
- GT_Values.RA.stdBuilder()
- .metadata(RESEARCH_ITEM, GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 850))
+ GTValues.RA.stdBuilder()
+ .metadata(RESEARCH_ITEM, GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 850))
.metadata(RESEARCH_TIME, 12000)
.itemOutputs(new ItemStack(BlockRegister.BoxModule, 1, 7))
.itemInputs(
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 850),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 796),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 790),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 840),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 850),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 796),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 790),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 840),
GregtechItemList.SimpleDustWasher_UV.get(1),
- GT_OreDictUnificator.get("stickLongNeutronium", 2),
+ GTOreDictUnificator.get("stickLongNeutronium", 2),
ItemList.Electric_Motor_UV.get(16),
- GT_ModHandler.getModItem(GTPlusPlus.ID, "gtplusplus.blockcasings.2", 64, 6),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 10862),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 10500),
- GT_OreDictUnificator.get("dustCooledMonaziteRareEarthConcentrate", 64),
+ GTModHandler.getModItem(GTPlusPlus.ID, "gtplusplus.blockcasings.2", 64, 6),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 10862),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 10500),
+ GTOreDictUnificator.get("dustCooledMonaziteRareEarthConcentrate", 64),
new ItemStack(BlockRegister.BoxRing2, 2))
.fluidInputs(
FluidRegistry.getFluidStack("refinedglue", 8000),
@@ -329,37 +328,37 @@ public void addModuleRecipe() {
.eut(TierEU.RECIPE_UV)
.duration(1200)
.addTo(AssemblyLine);
- TT_recipeAdder.addResearchableAssemblylineRecipe(
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 12730),
+ TTRecipeAdder.addResearchableAssemblylineRecipe(
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 12730),
25600,
64,
8000000,
16,
- new ItemStack[] { GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 791),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 12730),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 12731),
+ new ItemStack[] { GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 791),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 12730),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 12731),
ItemList.Casing_Coil_Cupronickel.get(64),
- GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "tile.QuintupleCompressedCoalCoke", 2),
- GT_OreDictUnificator.get("dustDarkAsh", 64), ItemList.Reactor_Coolant_Sp_6.get(1),
+ GTModHandler.getModItem(NewHorizonsCoreMod.ID, "tile.QuintupleCompressedCoalCoke", 2),
+ GTOreDictUnificator.get("dustDarkAsh", 64), ItemList.Reactor_Coolant_Sp_6.get(1),
new ItemStack(BlockRegister.BoxRing3, 4), },
new FluidStack[] { FluidRegistry.getFluidStack("molten.ethylcyanoacrylatesuperglue", 128000),
FluidRegistry.getFluidStack("cryotheum", 256000), FluidRegistry.getFluidStack("pyrotheum", 256000) },
new ItemStack(BlockRegister.BoxModule, 1, 8),
2000,
(int) TierEU.RECIPE_UEV);
- TT_recipeAdder.addResearchableAssemblylineRecipe(
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 17001),
+ TTRecipeAdder.addResearchableAssemblylineRecipe(
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 17001),
102400,
256,
8000000,
64,
- new ItemStack[] { GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 15465),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 15145), ItemList.Casing_Grate.get(64),
+ new ItemStack[] { GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 15465),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 15145), ItemList.Casing_Grate.get(64),
ItemList.Casing_Grate.get(64), ItemList.Casing_Assembler.get(64), ItemList.Casing_Assembler.get(64),
ItemList.Casing_Assembler.get(64), ItemList.Casing_Assembler.get(64),
ItemList.Machine_Multi_Assemblyline.get(64),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 13532),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 13532),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 13532),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 13532),
new ItemStack(BlockRegister.BoxRing3, 4), ItemList.Hatch_Input_Multi_2x2_UEV.get(4),
ItemList.Casing_SolidSteel.get(64), ItemList.Casing_SolidSteel.get(64),
ItemList.Hatch_Output_Bus_ME.get(1) },
@@ -368,58 +367,58 @@ public void addModuleRecipe() {
new ItemStack(BlockRegister.BoxModule, 1, 9),
2000,
(int) TierEU.RECIPE_UEV);
- TT_recipeAdder.addResearchableAssemblylineRecipe(
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 31150),
+ TTRecipeAdder.addResearchableAssemblylineRecipe(
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 31150),
51200,
128,
8000000,
32,
new ItemStack[] { new ItemStack(BlockRegister.BoxRing3, 4),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 31150),
- GT_OreDictUnificator.get("blockGlassUMV", 64),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 15497),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 31150),
+ GTOreDictUnificator.get("blockGlassUMV", 64),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 15497),
ItemList.Casing_Coil_AwakenedDraconium.get(16), ItemList.Casing_Coil_Infinity.get(8),
ItemList.Casing_Coil_Hypogen.get(4), ItemList.Casing_Coil_Eternal.get(2),
- GT_OreDictUnificator.get("wireGt01SuperconductorUIV", 30) },
+ GTOreDictUnificator.get("wireGt01SuperconductorUIV", 30) },
new FluidStack[] { FluidRegistry.getFluidStack("molten.mutatedlivingsolder", 256000),
FluidRegistry.getFluidStack("lubricant", 256000) },
new ItemStack(BlockRegister.BoxModule, 1, 10),
2000,
(int) TierEU.RECIPE_UEV);
- TT_recipeAdder.addResearchableAssemblylineRecipe(
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 15472),
+ TTRecipeAdder.addResearchableAssemblylineRecipe(
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 15472),
100000,
100,
10000000,
10,
- new ItemStack[] { GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 15465),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 15465),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 15465), ItemList.Sensor_UEV.get(32),
- GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.LaserEmitter", 1),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 15165), ItemList.Emitter_UEV.get(64),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 15265),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 15465),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 15465),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 15465), ItemList.Sensor_UEV.get(32),
+ new ItemStack[] { GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 15465),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 15465),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 15465), ItemList.Sensor_UEV.get(32),
+ GTModHandler.getModItem(NewHorizonsCoreMod.ID, "item.LaserEmitter", 1),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 15165), ItemList.Emitter_UEV.get(64),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 15265),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 15465),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 15465),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 15465), ItemList.Sensor_UEV.get(32),
new ItemStack(BlockRegister.BoxRing3, 16), },
new FluidStack[] { FluidRegistry.getFluidStack("supercoolant", 256000) },
new ItemStack(BlockRegister.BoxModule, 1, 12),
2000,
(int) TierEU.RECIPE_UEV);
- TT_recipeAdder.addResearchableAssemblylineRecipe(
- GT_ModHandler.getModItem(AppliedEnergistics2.ID, "tile.BlockAdvancedCraftingUnit", 1, 3),
+ TTRecipeAdder.addResearchableAssemblylineRecipe(
+ GTModHandler.getModItem(AppliedEnergistics2.ID, "tile.BlockAdvancedCraftingUnit", 1, 3),
(int) TierEU.RECIPE_UEV,
512,
(int) TierEU.RECIPE_UIV,
64,
- new ItemStack[] { GT_ModHandler.getModItem(AppliedEnergistics2.ID, "tile.BlockAdvancedCraftingUnit", 64, 3),
- GT_ModHandler.getModItem(AppliedEnergistics2.ID, "tile.BlockAdvancedCraftingUnit", 64, 3),
- GT_ModHandler.getModItem(AppliedEnergistics2.ID, "tile.BlockAdvancedCraftingUnit", 64, 3),
- GT_ModHandler.getModItem(AppliedEnergistics2.ID, "tile.BlockAdvancedCraftingUnit", 64, 3),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockreinforced", 1, 12),
- GT_OreDictUnificator.get("compressedDirt4x", 1),
- GT_ModHandler.getModItem(GTPlusPlus.ID, "blockCompressedObsidian", 1, 4),
- GT_ModHandler.getModItem(GTPlusPlus.ID, "blockCompressedObsidian", 1, 10),
+ new ItemStack[] { GTModHandler.getModItem(AppliedEnergistics2.ID, "tile.BlockAdvancedCraftingUnit", 64, 3),
+ GTModHandler.getModItem(AppliedEnergistics2.ID, "tile.BlockAdvancedCraftingUnit", 64, 3),
+ GTModHandler.getModItem(AppliedEnergistics2.ID, "tile.BlockAdvancedCraftingUnit", 64, 3),
+ GTModHandler.getModItem(AppliedEnergistics2.ID, "tile.BlockAdvancedCraftingUnit", 64, 3),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockreinforced", 1, 12),
+ GTOreDictUnificator.get("compressedDirt4x", 1),
+ GTModHandler.getModItem(GTPlusPlus.ID, "blockCompressedObsidian", 1, 4),
+ GTModHandler.getModItem(GTPlusPlus.ID, "blockCompressedObsidian", 1, 10),
new ItemStack(BlockRegister.BoxRing3, 32), },
new FluidStack[] { FluidRegistry.getFluidStack("grade8purifiedwater", 256000) },
new ItemStack(BlockRegister.BoxModule, 1, 13),
@@ -429,149 +428,149 @@ public void addModuleRecipe() {
// All - ResearchAssemblyLine
public void addUpgradeModuleRecipe() {
- GT_Values.RA.stdBuilder()
+ GTValues.RA.stdBuilder()
.metadata(RESEARCH_ITEM, new ItemStack(BlockRegister.BoxModule, 1, 0))
.metadata(RESEARCH_TIME, 12000)
.itemOutputs(new ItemStack(BlockRegister.BoxModuleUpgrad, 1, 0))
.itemInputs(
new ItemStack(BlockRegister.BoxRing, 8),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 31072),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 31050),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 31051),
- GT_ModHandler.getModItem(GTPlusPlus.ID, "miscutils.blockcasings", 48, 8),
- GT_ModHandler.getModItem(GTPlusPlus.ID, "gtplusplus.blockspecialcasings.1", 56, 13))
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 31072),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 31050),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 31051),
+ GTModHandler.getModItem(GTPlusPlus.ID, "miscutils.blockcasings", 48, 8),
+ GTModHandler.getModItem(GTPlusPlus.ID, "gtplusplus.blockspecialcasings.1", 56, 13))
.fluidInputs(
FluidRegistry.getFluidStack("refinedglue", 8000),
FluidRegistry.getFluidStack("ic2uumatter", 128000))
.eut(TierEU.RECIPE_UV)
.duration(1200)
.addTo(AssemblyLine);
- GT_Values.RA.stdBuilder()
+ GTValues.RA.stdBuilder()
.metadata(RESEARCH_ITEM, new ItemStack(BlockRegister.BoxModule, 1, 1))
.metadata(RESEARCH_TIME, 12000)
.itemOutputs(new ItemStack(BlockRegister.BoxModuleUpgrad, 1, 1))
.itemInputs(
new ItemStack(BlockRegister.BoxRing, 8),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 32018),
- GT_ModHandler.getModItem(GoodGenerator.ID, "preciseUnitCasing", 64, 2),
- GT_ModHandler.getModItem(Avaritia.ID, "Dire_Crafting", 64),
- GT_ModHandler.getModItem(GoodGenerator.ID, "huiCircuit", 64, 1),
- GT_ModHandler.getModItem(GoodGenerator.ID, "huiCircuit", 32, 2),
- GT_ModHandler.getModItem(GoodGenerator.ID, "huiCircuit", 16, 3),
- GT_ModHandler.getModItem(GoodGenerator.ID, "huiCircuit", 8, 4))
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 32018),
+ GTModHandler.getModItem(GoodGenerator.ID, "preciseUnitCasing", 64, 2),
+ GTModHandler.getModItem(Avaritia.ID, "Dire_Crafting", 64),
+ GTModHandler.getModItem(GoodGenerator.ID, "huiCircuit", 64, 1),
+ GTModHandler.getModItem(GoodGenerator.ID, "huiCircuit", 32, 2),
+ GTModHandler.getModItem(GoodGenerator.ID, "huiCircuit", 16, 3),
+ GTModHandler.getModItem(GoodGenerator.ID, "huiCircuit", 8, 4))
.fluidInputs(
FluidRegistry.getFluidStack("refinedglue", 8000),
FluidRegistry.getFluidStack("naquadah based liquid fuel mkii (depleted)", 128000))
.eut(TierEU.RECIPE_UHV)
.duration(1200)
.addTo(AssemblyLine);
- GT_Values.RA.stdBuilder()
+ GTValues.RA.stdBuilder()
.metadata(RESEARCH_ITEM, new ItemStack(BlockRegister.BoxModule, 1, 2))
.metadata(RESEARCH_TIME, 12000)
.itemOutputs(new ItemStack(BlockRegister.BoxModuleUpgrad, 1, 2))
.itemInputs(
new ItemStack(BlockRegister.BoxRing, 8),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 998),
- GT_ModHandler.getModItem(GTPlusPlus.ID, "gtplusplus.blockspecialcasings.2", 64, 3),
- GT_ModHandler.getModItem(GTPlusPlus.ID, "gtplusplus.blocktieredcasings.1", 16, 9),
- GT_ModHandler.getModItem(GalacticraftCore.ID, "item.buggy", 1))
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 998),
+ GTModHandler.getModItem(GTPlusPlus.ID, "gtplusplus.blockspecialcasings.2", 64, 3),
+ GTModHandler.getModItem(GTPlusPlus.ID, "gtplusplus.blocktieredcasings.1", 16, 9),
+ GTModHandler.getModItem(GalacticraftCore.ID, "item.buggy", 1))
.fluidInputs(
FluidRegistry.getFluidStack("refinedglue", 8000),
FluidRegistry.getFluidStack("fluid.rocketfuelmixa", 128000))
.eut(TierEU.RECIPE_UV)
.duration(1200)
.addTo(AssemblyLine);
- GT_Values.RA.stdBuilder()
+ GTValues.RA.stdBuilder()
.metadata(RESEARCH_ITEM, new ItemStack(BlockRegister.BoxModule, 1, 3))
.metadata(RESEARCH_TIME, 12000)
.itemOutputs(new ItemStack(BlockRegister.BoxModuleUpgrad, 1, 3))
.itemInputs(
new ItemStack(BlockRegister.BoxRing, 8),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 828),
- GT_ModHandler.getModItem(GTPlusPlus.ID, "gtplusplus.blockcasings.2", 32, 9),
- GT_ModHandler.getModItem(GTPlusPlus.ID, "MU-metaitem.01", 4, 32105),
- GT_ModHandler.getModItem(GTPlusPlus.ID, "itemDustRadioactiveMineralMix", 1))
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 828),
+ GTModHandler.getModItem(GTPlusPlus.ID, "gtplusplus.blockcasings.2", 32, 9),
+ GTModHandler.getModItem(GTPlusPlus.ID, "MU-metaitem.01", 4, 32105),
+ GTModHandler.getModItem(GTPlusPlus.ID, "itemDustRadioactiveMineralMix", 1))
.fluidInputs(
FluidRegistry.getFluidStack("refinedglue", 8000),
FluidRegistry.getFluidStack("plasma.hydrogen", 12800))
.eut(TierEU.RECIPE_UV)
.duration(1200)
.addTo(AssemblyLine);
- TT_recipeAdder.addResearchableAssemblylineRecipe(
+ TTRecipeAdder.addResearchableAssemblylineRecipe(
new ItemStack(BlockRegister.BoxModule, 1, 4),
256000,
512,
8000000,
16,
- new ItemStack[] { GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 356),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 12735),
- GT_ModHandler.getModItem(BartWorks.ID, "gt.bwMetaGeneratedItem0", 64, 3),
- GT_OreDictUnificator.get("gemExquisitePrasiolite", 64),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockcasings8", 8, 14),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockcasings8", 16, 10),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockcasings8", 32, 12),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockcasings8", 64, 13),
+ new ItemStack[] { GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 356),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 12735),
+ GTModHandler.getModItem(BartWorks.ID, "gt.bwMetaGeneratedItem0", 64, 3),
+ GTOreDictUnificator.get("gemExquisitePrasiolite", 64),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockcasings8", 8, 14),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockcasings8", 16, 10),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockcasings8", 32, 12),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockcasings8", 64, 13),
ItemList.Circuit_Parts_ResistorXSMD.get(64), ItemList.Circuit_Parts_CapacitorXSMD.get(64),
ItemList.Circuit_Parts_DiodeXSMD.get(64), ItemList.Circuit_Parts_TransistorXSMD.get(64),
- GT_ModHandler.getModItem(GregTech.ID, "gt.metaitem.03", 64, 32728),
- GT_ModHandler.getModItem(GregTech.ID, "gt.metaitem.03", 64, 32107),
- GT_ModHandler.getModItem(GregTech.ID, "gt.metaitem.03", 64, 32105),
+ GTModHandler.getModItem(GregTech.ID, "gt.metaitem.03", 64, 32728),
+ GTModHandler.getModItem(GregTech.ID, "gt.metaitem.03", 64, 32107),
+ GTModHandler.getModItem(GregTech.ID, "gt.metaitem.03", 64, 32105),
new ItemStack(BlockRegister.BoxRing2, 16) },
new FluidStack[] { FluidRegistry.getFluidStack("molten.ethylcyanoacrylatesuperglue", 128000),
FluidRegistry.getFluidStack("supercoolant", 320000) },
new ItemStack(BlockRegister.BoxModuleUpgrad, 1, 4),
2000,
(int) TierEU.RECIPE_UIV);
- TT_recipeAdder.addResearchableAssemblylineRecipe(
+ TTRecipeAdder.addResearchableAssemblylineRecipe(
new ItemStack(BlockRegister.BoxModule, 1, 5),
128000,
256,
8000000,
4,
- new ItemStack[] { GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 965),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 975),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 8, 32022),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 8, 32023),
- GT_ModHandler.getModItem(GTPlusPlus.ID, "gtplusplus.blockcasings.3", 64, 13),
- GT_ModHandler.getModItem(GTPlusPlus.ID, "gtplusplus.blockcasings.6", 64, 1),
- GT_ModHandler.getModItem(GoodGenerator.ID, "compactFusionCoil", 24, 2),
- GT_ModHandler.getModItem(GoodGenerator.ID, "compactFusionCoil", 24, 4),
- GT_OreDictUnificator.get("batteryMAX", 1), new ItemStack(BlockRegister.BoxRing2, 16) },
+ new ItemStack[] { GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 965),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 975),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 8, 32022),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 8, 32023),
+ GTModHandler.getModItem(GTPlusPlus.ID, "gtplusplus.blockcasings.3", 64, 13),
+ GTModHandler.getModItem(GTPlusPlus.ID, "gtplusplus.blockcasings.6", 64, 1),
+ GTModHandler.getModItem(GoodGenerator.ID, "compactFusionCoil", 24, 2),
+ GTModHandler.getModItem(GoodGenerator.ID, "compactFusionCoil", 24, 4),
+ GTOreDictUnificator.get("batteryMAX", 1), new ItemStack(BlockRegister.BoxRing2, 16) },
new FluidStack[] { FluidRegistry.getFluidStack("molten.ethylcyanoacrylatesuperglue", 128000),
FluidRegistry.getFluidStack("molten.metastable oganesson", 64000),
FluidRegistry.getFluidStack("plasma.radon", 288000) },
new ItemStack(BlockRegister.BoxModuleUpgrad, 1, 5),
2000,
(int) TierEU.RECIPE_UEV);
- TT_recipeAdder.addResearchableAssemblylineRecipe(
+ TTRecipeAdder.addResearchableAssemblylineRecipe(
new ItemStack(BlockRegister.BoxModule, 1, 6),
64000,
128,
8000000,
1,
- new Object[] { GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 1132),
+ new Object[] { GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 1132),
ItemList.Electric_Motor_UEV.get(32), ItemList.Electric_Piston_UEV.get(8),
ItemList.Electric_Pump_UEV.get(16), ItemList.Conveyor_Module_UEV.get(8), ItemList.Robot_Arm_UEV.get(8),
new Object[] { OrePrefixes.circuit.get(Materials.Optical), 4 },
- GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemExtremeStorageCell.Singularity", 1),
- GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.Titanium, 32),
- GT_OreDictUnificator.get("rotorAstralTitanium", 16), new ItemStack(BlockRegister.BoxRing2, 16), },
+ GTModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemExtremeStorageCell.Singularity", 1),
+ GTOreDictUnificator.get(OrePrefixes.plateDouble, Materials.Titanium, 32),
+ GTOreDictUnificator.get("rotorAstralTitanium", 16), new ItemStack(BlockRegister.BoxRing2, 16), },
new FluidStack[] { FluidRegistry.getFluidStack("lubricant", 128000),
FluidRegistry.getFluidStack("grade7purifiedwater", 256000) },
new ItemStack(BlockRegister.BoxModuleUpgrad, 1, 6),
2000,
(int) TierEU.RECIPE_UEV);
- TT_recipeAdder.addResearchableAssemblylineRecipe(
+ TTRecipeAdder.addResearchableAssemblylineRecipe(
new ItemStack(BlockRegister.BoxModule, 1, 7),
10240,
16,
2000000,
1,
- new ItemStack[] { GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 10501),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 12712),
- GT_OreDictUnificator.get("blockGlassUEV", 64), GT_OreDictUnificator.get("slabWood", 1),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 12718),
- GT_ModHandler.getModItem(UniversalSingularities.ID, "universal.general.singularity", 4, 26),
+ new ItemStack[] { GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 10501),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 12712),
+ GTOreDictUnificator.get("blockGlassUEV", 64), GTOreDictUnificator.get("slabWood", 1),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 12718),
+ GTModHandler.getModItem(UniversalSingularities.ID, "universal.general.singularity", 4, 26),
new ItemStack(BlockRegister.BoxRing2, 16), },
new FluidStack[] { FluidRegistry.getFluidStack("molten.ethylcyanoacrylatesuperglue", 128000),
FluidRegistry.getFluidStack("grade6purifiedwater", 256000),
@@ -580,23 +579,22 @@ public void addUpgradeModuleRecipe() {
new ItemStack(BlockRegister.BoxModuleUpgrad, 1, 7),
2000,
(int) TierEU.RECIPE_UHV);
- TT_recipeAdder.addResearchableAssemblylineRecipe(
+ TTRecipeAdder.addResearchableAssemblylineRecipe(
new ItemStack(BlockRegister.BoxModule, 1, 8),
81920000,
32768,
(int) TierEU.RECIPE_UMV,
16,
- new ItemStack[] { GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 357),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 1006),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 1004),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 15310),
- GT_OreDictUnificator.get("naniteWhiteDwarfMatter", 1),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 581),
- ItemList.Casing_Coil_Eternal.get(64),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 3, 15470),
- GT_ModHandler.getModItem(TecTech.ID, "gt.blockcasingsBA0", 32, 10),
- GT_ModHandler.getModItem(TecTech.ID, "gt.blockcasingsBA0", 32, 11),
- GT_ModHandler.getModItem(TecTech.ID, "gt.stabilisation_field_generator", 1),
+ new ItemStack[] { GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 357),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 1006),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 1004),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 15310),
+ GTOreDictUnificator.get("naniteWhiteDwarfMatter", 1),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 581), ItemList.Casing_Coil_Eternal.get(64),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 3, 15470),
+ GTModHandler.getModItem(TecTech.ID, "gt.blockcasingsBA0", 32, 10),
+ GTModHandler.getModItem(TecTech.ID, "gt.blockcasingsBA0", 32, 11),
+ GTModHandler.getModItem(TecTech.ID, "gt.stabilisation_field_generator", 1),
new ItemStack(BlockRegister.BoxRing3, 32), },
new FluidStack[] { FluidRegistry.getFluidStack("molten.ethylcyanoacrylatesuperglue", 10240000),
FluidRegistry.getFluidStack("primordialmatter", 8000), FluidRegistry.getFluidStack("exciteddtsc", 8000),
@@ -604,22 +602,22 @@ public void addUpgradeModuleRecipe() {
new ItemStack(BlockRegister.BoxModuleUpgrad, 1, 8),
2000,
(int) TierEU.RECIPE_UXV);
- TT_recipeAdder.addResearchableAssemblylineRecipe(
+ TTRecipeAdder.addResearchableAssemblylineRecipe(
new ItemStack(BlockRegister.BoxModule, 1, 9),
10240000,
6144,
(int) TierEU.RECIPE_UIV,
16,
- new ItemStack[] { GT_ModHandler.getModItem(GoodGenerator.ID, "componentAssemblylineCasing", 16, 10),
- GT_ModHandler.getModItem(GoodGenerator.ID, "componentAssemblylineCasing", 16, 10),
- GT_OreDictUnificator.get("blockSpaceTime", 4), GT_OreDictUnificator.get("blockSpaceTime", 8),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 32026),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 12734),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 16, 14006),
- GT_OreDictUnificator.get("blockSpaceTime", 16),
- GT_ModHandler.getModItem(AppliedEnergistics2.ID, "tile.BlockTinyTNT", 1),
- GT_ModHandler.getModItem(AppliedEnergistics2.ID, "tile.BlockTinyTNT", 1),
- GT_OreDictUnificator.get("blockSpaceTime", 4), GT_OreDictUnificator.get("blockSpaceTime", 8),
+ new ItemStack[] { GTModHandler.getModItem(GoodGenerator.ID, "componentAssemblylineCasing", 16, 10),
+ GTModHandler.getModItem(GoodGenerator.ID, "componentAssemblylineCasing", 16, 10),
+ GTOreDictUnificator.get("blockSpaceTime", 4), GTOreDictUnificator.get("blockSpaceTime", 8),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 32026),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 12734),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 16, 14006),
+ GTOreDictUnificator.get("blockSpaceTime", 16),
+ GTModHandler.getModItem(AppliedEnergistics2.ID, "tile.BlockTinyTNT", 1),
+ GTModHandler.getModItem(AppliedEnergistics2.ID, "tile.BlockTinyTNT", 1),
+ GTOreDictUnificator.get("blockSpaceTime", 4), GTOreDictUnificator.get("blockSpaceTime", 8),
new ItemStack(BlockRegister.BoxRing3, 32), },
new FluidStack[] { FluidRegistry.getFluidStack("molten.ethylcyanoacrylatesuperglue", 10240000),
FluidRegistry.getFluidStack("glyceryl", 128000),
@@ -628,21 +626,20 @@ public void addUpgradeModuleRecipe() {
new ItemStack(BlockRegister.BoxModuleUpgrad, 1, 9),
2000,
(int) TierEU.RECIPE_UIV);
- TT_recipeAdder.addResearchableAssemblylineRecipe(
+ TTRecipeAdder.addResearchableAssemblylineRecipe(
new ItemStack(BlockRegister.BoxModule, 1, 10),
20480000,
10240,
(int) TierEU.RECIPE_UMV,
16,
- new ItemStack[] { GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 31151),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 16999),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 799),
- GT_ModHandler.getModItem(GTPlusPlus.ID, "gtplusplus.blockcasings.5", 64, 14),
- GT_ModHandler.getModItem(GTPlusPlus.ID, "gtplusplus.blockcasings.5", 64, 10),
- GT_ModHandler.getModItem(GTPlusPlus.ID, "gtplusplus.blockcasings.4", 64, 4),
- GT_ModHandler.getModItem(GoodGenerator.ID, "FRF_Coil_3", 64),
- GT_OreDictUnificator.get("lensOrundum", 1),
- GT_OreDictUnificator.get("rotorExtremelyUnstableNaquadah", 16), ItemList.Timepiece.get(1),
+ new ItemStack[] { GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 31151),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 16999),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 799),
+ GTModHandler.getModItem(GTPlusPlus.ID, "gtplusplus.blockcasings.5", 64, 14),
+ GTModHandler.getModItem(GTPlusPlus.ID, "gtplusplus.blockcasings.5", 64, 10),
+ GTModHandler.getModItem(GTPlusPlus.ID, "gtplusplus.blockcasings.4", 64, 4),
+ GTModHandler.getModItem(GoodGenerator.ID, "FRF_Coil_3", 64), GTOreDictUnificator.get("lensOrundum", 1),
+ GTOreDictUnificator.get("rotorExtremelyUnstableNaquadah", 16), ItemList.Timepiece.get(1),
ItemList.NaquadriaSupersolid.get(1), ItemList.SuperconductorComposite.get(1),
ItemList.StableAdhesive.get(1), new ItemStack(BlockRegister.BoxRing3, 32), },
new FluidStack[] { FluidRegistry.getFluidStack("molten.ethylcyanoacrylatesuperglue", 10240000),
@@ -659,18 +656,18 @@ public void addUpgradeModuleRecipe() {
"FCF",
"DED",
'A',
- GT_ModHandler.getModItem(GalaxySpace.ID, "item.DysonSwarmParts", 1),
+ GTModHandler.getModItem(GalaxySpace.ID, "item.DysonSwarmParts", 1),
'B',
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 14001),
+ GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 64, 14001),
'C',
- GT_ModHandler.getModItem(GalacticraftMars.ID, "tile.marsMachine", 1, 4),
+ GTModHandler.getModItem(GalacticraftMars.ID, "tile.marsMachine", 1, 4),
'F',
- GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.StargateShieldingFoil", 1),
+ GTModHandler.getModItem(NewHorizonsCoreMod.ID, "item.StargateShieldingFoil", 1),
'E',
new ItemStack(BlockRegister.BoxModule, 1, 10),
'D',
- GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.HeavyDutyRocketEngineTier4", 1));
- TT_recipeAdder.addResearchableAssemblylineRecipe(
+ GTModHandler.getModItem(NewHorizonsCoreMod.ID, "item.HeavyDutyRocketEngineTier4", 1));
+ TTRecipeAdder.addResearchableAssemblylineRecipe(
new ItemStack(BlockRegister.BoxModule, 1, 13),
(int) TierEU.UXV,
32767,
@@ -680,9 +677,9 @@ public void addUpgradeModuleRecipe() {
ItemList.Electric_Motor_UXV.get(64), ItemList.Electric_Pump_UXV.get(64), ItemList.Emitter_UXV.get(64),
ItemList.Electric_Piston_UXV.get(64), ItemList.Sensor_UXV.get(64), ItemList.Robot_Arm_UXV.get(64),
ItemList.GigaChad.get(1),
- GT_ModHandler.getModItem(TecTech.ID, "gt.stabilisation_field_generator", 48, 8),
- GT_OreDictUnificator.get("batteryERV", 16), GT_OreDictUnificator.get("ingotTitanium", 1),
- GT_OreDictUnificator.get("ingotSilver", 1) },
+ GTModHandler.getModItem(TecTech.ID, "gt.stabilisation_field_generator", 48, 8),
+ GTOreDictUnificator.get("batteryERV", 16), GTOreDictUnificator.get("ingotTitanium", 1),
+ GTOreDictUnificator.get("ingotSilver", 1) },
new FluidStack[] {
FluidRegistry.getFluidStack("molten.magnetohydrodynamicallyconstrainedstarmatter", 20000000),
FluidRegistry.getFluidStack("molten.shirabon", 20000000),
@@ -693,14 +690,14 @@ public void addUpgradeModuleRecipe() {
Integer.MAX_VALUE - 1);
// This is the debug test module recipe, maybe oneday we can re-add it...
/*
- * TT_recipeAdder.addResearchableAssemblylineRecipe(
- * GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 1145),
+ * TTRecipeAdder.addResearchableAssemblylineRecipe(
+ * GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 1145),
* Integer.MAX_VALUE - 1,
* 32767,
* Integer.MAX_VALUE - 1,
* 96,
* new ItemStack[]{
- * GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 4, 1145),
+ * GTModHandler.getModItem(GregTech.ID, "gt.blockmachines", 4, 1145),
* ItemList.Electric_Motor_UXV.get(64),
* ItemList.Electric_Pump_UXV.get(64),
* ItemList.Emitter_UXV.get(64),
@@ -708,14 +705,14 @@ public void addUpgradeModuleRecipe() {
* ItemList.Sensor_UXV.get(64),
* ItemList.Robot_Arm_UXV.get(64),
* ItemList.GigaChad.get(1),
- * GT_ModHandler.getModItem(SGCraft.ID, "stargateRing", 8, 0),
- * GT_ModHandler.getModItem(SGCraft.ID, "stargateRing", 4, 1),
- * GT_ModHandler.getModItem(SGCraft.ID, "stargateBase", 1),
- * GT_OreDictUnificator.get("batteryERV", 64),
+ * GTModHandler.getModItem(SGCraft.ID, "stargateRing", 8, 0),
+ * GTModHandler.getModItem(SGCraft.ID, "stargateRing", 4, 1),
+ * GTModHandler.getModItem(SGCraft.ID, "stargateBase", 1),
+ * GTOreDictUnificator.get("batteryERV", 64),
* new ItemStack(BlockRegister.BoxRing3, 64),
* new ItemStack(BlockRegister.BoxRing3, 64),
- * GT_OreDictUnificator.get("ingotTitanium", 1),
- * GT_OreDictUnificator.get("ingotSilver", 1)
+ * GTOreDictUnificator.get("ingotTitanium", 1),
+ * GTOreDictUnificator.get("ingotSilver", 1)
* },
* new FluidStack[]{
* FluidRegistry.getFluidStack("molten.magnetohydrodynamicallyconstrainedstarmatter", 2000000000),
diff --git a/src/main/java/com/silvermoon/boxplusplus/common/tileentities/GTMachineBox.java b/src/main/java/com/silvermoon/boxplusplus/common/tileentities/GTMachineBox.java
index cd9859b..c4f00e9 100644
--- a/src/main/java/com/silvermoon/boxplusplus/common/tileentities/GTMachineBox.java
+++ b/src/main/java/com/silvermoon/boxplusplus/common/tileentities/GTMachineBox.java
@@ -1,33 +1,6 @@
package com.silvermoon.boxplusplus.common.tileentities;
-import static com.gtnewhorizon.structurelib.structure.StructureUtility.*;
-import static com.gtnewhorizons.modularui.api.math.Alignment.TopCenter;
-import static com.gtnewhorizons.modularui.api.math.Alignment.TopLeft;
-import static com.silvermoon.boxplusplus.common.BoxModule.getModuleByIndex;
-import static com.silvermoon.boxplusplus.common.BoxModule.transMachinesToModule;
-import static com.silvermoon.boxplusplus.util.Util.*;
-import static gregtech.api.enums.GT_HatchElement.*;
-import static gregtech.api.enums.Textures.BlockIcons.casingTexturePages;
-import static gregtech.api.util.GT_StructureUtility.buildHatchAdder;
-
-import java.io.IOException;
-import java.util.*;
-
-import net.minecraft.client.gui.GuiScreen;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.network.PacketBuffer;
-import net.minecraft.util.ChatComponentText;
-import net.minecraft.util.EnumChatFormatting;
-import net.minecraftforge.common.util.ForgeDirection;
-import net.minecraftforge.fluids.FluidStack;
-import net.minecraftforge.fluids.FluidTank;
-
-import org.jetbrains.annotations.NotNull;
-
-import com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_EnergyMulti;
-import com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_EnergyTunnel;
+import appeng.api.AEApi;
import com.glodblock.github.loader.ItemAndBlockHolder;
import com.glodblock.github.util.FluidPatternDetails;
import com.gtnewhorizon.structurelib.alignment.constructable.ISurvivalConstructable;
@@ -51,29 +24,52 @@
import com.silvermoon.boxplusplus.Tags;
import com.silvermoon.boxplusplus.common.loader.BlockRegister;
import com.silvermoon.boxplusplus.util.*;
-
-import appeng.api.AEApi;
import gregtech.api.enums.Textures;
-import gregtech.api.gui.modularui.GT_UIInfos;
-import gregtech.api.gui.modularui.GT_UITextures;
+import gregtech.api.gui.modularui.GTUIInfos;
+import gregtech.api.gui.modularui.GTUITextures;
import gregtech.api.interfaces.IIconContainer;
import gregtech.api.interfaces.ITexture;
import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_ExtendedPowerMultiBlockBase;
-import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch;
+import gregtech.api.metatileentity.implementations.MTEExtendedPowerMultiBlockBase;
+import gregtech.api.metatileentity.implementations.MTEHatch;
import gregtech.api.recipe.check.CheckRecipeResult;
import gregtech.api.recipe.check.CheckRecipeResultRegistry;
import gregtech.api.recipe.check.SimpleCheckRecipeResult;
import gregtech.api.render.TextureFactory;
-import gregtech.api.util.GT_Multiblock_Tooltip_Builder;
-import gregtech.api.util.GT_OverclockCalculator;
+import gregtech.api.util.MultiblockTooltipBuilder;
+import gregtech.api.util.OverclockCalculator;
import gregtech.common.misc.WirelessNetworkManager;
import gregtech.common.tileentities.machines.IDualInputHatch;
import gregtech.common.tileentities.machines.IDualInputInventory;
+import net.minecraft.client.gui.GuiScreen;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.network.PacketBuffer;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraftforge.common.util.ForgeDirection;
+import net.minecraftforge.fluids.FluidStack;
+import net.minecraftforge.fluids.FluidTank;
+import org.jetbrains.annotations.NotNull;
+import tectech.thing.metaTileEntity.hatch.MTEHatchEnergyMulti;
+import tectech.thing.metaTileEntity.hatch.MTEHatchEnergyTunnel;
+
+import java.io.IOException;
+import java.util.*;
+
+import static com.gtnewhorizon.structurelib.structure.StructureUtility.*;
+import static com.gtnewhorizons.modularui.api.math.Alignment.TopCenter;
+import static com.gtnewhorizons.modularui.api.math.Alignment.TopLeft;
+import static com.silvermoon.boxplusplus.common.BoxModule.getModuleByIndex;
+import static com.silvermoon.boxplusplus.common.BoxModule.transMachinesToModule;
+import static com.silvermoon.boxplusplus.util.Util.*;
+import static gregtech.api.enums.HatchElement.*;
+import static gregtech.api.enums.Textures.BlockIcons.casingTexturePages;
+import static gregtech.api.util.GTStructureUtility.buildHatchAdder;
-public class GTMachineBox extends GT_MetaTileEntity_ExtendedPowerMultiBlockBase
- implements ISurvivalConstructable {
+public class GTMachineBox extends MTEExtendedPowerMultiBlockBase implements ISurvivalConstructable {
private static final String STRUCTURE_PIECE_MainFrames = "Mainframes";
private static final String STRUCTURE_PIECE_FirstRing = "FirstRing";
@@ -954,8 +950,8 @@ public IStructureDefinition getStructureDefinition() {
}
@Override
- protected GT_Multiblock_Tooltip_Builder createTooltip() {
- GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
+ protected MultiblockTooltipBuilder createTooltip() {
+ MultiblockTooltipBuilder tt = new MultiblockTooltipBuilder();
tt.addMachineType(i18n("tile.boxplusplus.boxtype"))
.addInfo(i18n("tile.boxplusplus.boxinfo.02"))
.addInfo(i18n("tile.boxplusplus.boxinfo.03"))
@@ -1324,12 +1320,12 @@ && checkPiece(STRUCTURE_PIECE_Final, 23, 5, 20)) {
}
}
// If you want it, then you'll have to take it.
- for (GT_MetaTileEntity_Hatch hatch : getExoticEnergyHatches()) {
- if (hatch instanceof GT_MetaTileEntity_Hatch_EnergyMulti && ringCount == 1) {
+ for (MTEHatch hatch : getExoticEnergyHatches()) {
+ if (hatch instanceof MTEHatchEnergyMulti && ringCount == 1) {
machineError[0] = 5;
return false;
}
- if (hatch instanceof GT_MetaTileEntity_Hatch_EnergyTunnel && !moduleActive[12]) {
+ if (hatch instanceof MTEHatchEnergyTunnel && !moduleActive[12]) {
machineError[0] = 6;
return false;
}
@@ -1432,7 +1428,7 @@ private void calTime() {
mMaxProgresstime = Math.max((int) Math.pow(recipe.FinalTime, 0.2), 10);
return;
}
- GT_OverclockCalculator cal = new GT_OverclockCalculator().setRecipeEUt(recipe.FinalVoteage)
+ OverclockCalculator cal = new OverclockCalculator().setRecipeEUt(recipe.FinalVoteage)
.setDuration((int) recipe.FinalTime)
.setEUt(getMaxInputEu());
switch (ringCount) {
@@ -1695,8 +1691,8 @@ public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildCont
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_WHITELIST);
+ UI.add(GTUITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.OVERLAY_BUTTON_WHITELIST);
return UI.toArray(new IDrawable[0]);
})
.addTooltip(i18n("tile.boxplusplus.boxUI.01"))
@@ -1712,8 +1708,8 @@ public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildCont
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_CYCLIC);
+ UI.add(GTUITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.OVERLAY_BUTTON_CYCLIC);
return UI.toArray(new IDrawable[0]);
})
.addTooltip(i18n("tile.boxplusplus.boxUI.02"))
@@ -1732,8 +1728,8 @@ public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildCont
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_IMPORT);
+ UI.add(GTUITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.OVERLAY_BUTTON_IMPORT);
return UI.toArray(new IDrawable[0]);
})
.addTooltip(i18n("tile.boxplusplus.boxUI.03"))
@@ -1747,8 +1743,8 @@ public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildCont
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_INVERT_REDSTONE);
+ UI.add(GTUITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.OVERLAY_BUTTON_INVERT_REDSTONE);
return UI.toArray(new IDrawable[0]);
})
.addTooltip(i18n("tile.boxplusplus.boxwiki.1"))
@@ -1782,8 +1778,8 @@ protected ModularWindow createModuleWindow(final EntityPlayer player) {
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_AUTOOUTPUT_FLUID);
+ UI.add(GTUITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.OVERLAY_BUTTON_AUTOOUTPUT_FLUID);
return UI.toArray(new IDrawable[0]);
})
.addTooltip(i18n("tile.boxplusplus.boxUI.module.20"))
@@ -1806,8 +1802,8 @@ protected ModularWindow createModuleWindow(final EntityPlayer player) {
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_AUTOOUTPUT_FLUID);
+ UI.add(GTUITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.OVERLAY_BUTTON_AUTOOUTPUT_FLUID);
return UI.toArray(new IDrawable[0]);
})
.addTooltip(i18n("tile.boxplusplus.boxUI.module.21"))
@@ -1826,8 +1822,8 @@ protected ModularWindow createModuleWindow(final EntityPlayer player) {
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_AUTOOUTPUT_FLUID);
+ UI.add(GTUITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.OVERLAY_BUTTON_AUTOOUTPUT_FLUID);
return UI.toArray(new IDrawable[0]);
})
.addTooltip(i18n("tile.boxplusplus.boxUI.module.22"))
@@ -2081,7 +2077,7 @@ protected ModularWindow createModuleWindow(final EntityPlayer player) {
*/
protected ModularWindow createSingleModuleWindow(final EntityPlayer player) {
ModularWindow.Builder builder = ModularWindow.builder(150, 200);
- builder.setBackground(GT_UITextures.BACKGROUND_SINGLEBLOCK_DEFAULT);
+ builder.setBackground(GTUITextures.BACKGROUND_SINGLEBLOCK_DEFAULT);
builder.setGuiTint(getGUIColorization());
builder.widget(
ButtonWidget.closeWindowButton(true)
@@ -2122,8 +2118,8 @@ protected ModularWindow createSingleModuleWindow(final EntityPlayer player) {
.setSize(20, 20)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_CHECKMARK);
+ UI.add(GTUITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.OVERLAY_BUTTON_CHECKMARK);
return UI.toArray(new IDrawable[0]);
})
.addTooltip(i18n("tile.boxplusplus.boxUI.module.16"))
@@ -2141,8 +2137,8 @@ protected ModularWindow createSingleModuleWindow(final EntityPlayer player) {
.setSize(20, 20)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_CROSS);
+ UI.add(GTUITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.OVERLAY_BUTTON_CROSS);
return UI.toArray(new IDrawable[0]);
})
.addTooltip(i18n("tile.boxplusplus.boxUI.module.16a"))
@@ -2158,7 +2154,7 @@ protected ModularWindow createSingleModuleWindow(final EntityPlayer player) {
*/
protected ModularWindow createInitialingWindow(final EntityPlayer player) {
ModularWindow.Builder builder = ModularWindow.builder(260, 215);
- builder.setBackground(GT_UITextures.BACKGROUND_SINGLEBLOCK_DEFAULT);
+ builder.setBackground(GTUITextures.BACKGROUND_SINGLEBLOCK_DEFAULT);
builder.setGuiTint(getGUIColorization());
Synchronize(builder);
randomSN = new ArrayList<>();
@@ -2166,7 +2162,7 @@ protected ModularWindow createInitialingWindow(final EntityPlayer player) {
randomSN.add(new Random().nextInt(5) + 1);
}
builder.widget(
- new DrawableWidget().setDrawable(GT_UITextures.OVERLAY_BUTTON_ARROW_GREEN_UP)
+ new DrawableWidget().setDrawable(GTUITextures.OVERLAY_BUTTON_ARROW_GREEN_UP)
.setPos(5, 5)
.setSize(16, 16))
.widget(
@@ -2186,8 +2182,8 @@ protected ModularWindow createInitialingWindow(final EntityPlayer player) {
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_AUTOOUTPUT_ITEM);
+ UI.add(GTUITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.OVERLAY_BUTTON_AUTOOUTPUT_ITEM);
return UI.toArray(new IDrawable[0]);
})
.addTooltip(i18n("tile.boxplusplus.boxUI.30"))
@@ -2212,8 +2208,8 @@ protected ModularWindow createInitialingWindow(final EntityPlayer player) {
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_AUTOOUTPUT_ITEM);
+ UI.add(GTUITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.OVERLAY_BUTTON_AUTOOUTPUT_ITEM);
return UI.toArray(new IDrawable[0]);
})
.addTooltip(i18n("tile.boxplusplus.boxUI.31"))
@@ -2242,8 +2238,8 @@ protected ModularWindow createInitialingWindow(final EntityPlayer player) {
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_ALLOW_INPUT);
+ UI.add(GTUITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.OVERLAY_BUTTON_ALLOW_INPUT);
return UI.toArray(new IDrawable[0]);
})
.addTooltip(i18n("tile.boxplusplus.boxUI.09"))
@@ -2262,8 +2258,8 @@ protected ModularWindow createInitialingWindow(final EntityPlayer player) {
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_BLOCK_INPUT);
+ UI.add(GTUITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.OVERLAY_BUTTON_BLOCK_INPUT);
return UI.toArray(new IDrawable[0]);
})
.addTooltip(i18n("tile.boxplusplus.boxUI.26"))
@@ -2280,14 +2276,14 @@ protected ModularWindow createInitialingWindow(final EntityPlayer player) {
BoxRoutings.checkRouting(this);
if (!widget.isClient()) {
player.closeScreen();
- GT_UIInfos.openGTTileEntityUI(getBaseMetaTileEntity(), player);
+ GTUIInfos.openGTTileEntityUI(getBaseMetaTileEntity(), player);
}
})
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_AUTOOUTPUT_ITEM);
+ UI.add(GTUITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.OVERLAY_BUTTON_AUTOOUTPUT_ITEM);
return UI.toArray(new IDrawable[0]);
})
.addTooltip(i18n("tile.boxplusplus.boxUI.08") + (routingMap.size() + 1))
@@ -2302,13 +2298,13 @@ protected ModularWindow createInitialingWindow(final EntityPlayer player) {
.setSize(110, 180));
// Error X
builder.widget(
- new DrawableWidget().setDrawable(GT_UITextures.OVERLAY_BUTTON_CROSS)
+ new DrawableWidget().setDrawable(GTUITextures.OVERLAY_BUTTON_CROSS)
.setPos(140, 71)
.setSize(24, 24)
.addTooltip(i18n("tile.boxplusplus.boxUI.ErrorCode." + routingStatus))
.setEnabled(routingStatus != 0 && !recipe.islocked))
.widget(
- new DrawableWidget().setDrawable(GT_UITextures.OVERLAY_BUTTON_CHECKMARK)
+ new DrawableWidget().setDrawable(GTUITextures.OVERLAY_BUTTON_CHECKMARK)
.setPos(140, 71)
.setSize(36, 36)
.addTooltip(i18n("tile.boxplusplus.boxUI.19"))
@@ -2324,8 +2320,8 @@ protected ModularWindow createInitialingWindow(final EntityPlayer player) {
.setSize(32, 32)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_POWER_SWITCH_ON);
+ UI.add(GTUITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.OVERLAY_BUTTON_POWER_SWITCH_ON);
return UI.toArray(new IDrawable[0]);
})
.addTooltip(i18n("tile.boxplusplus.boxUI.20"))
@@ -2344,7 +2340,7 @@ protected ModularWindow createInitialingWindow(final EntityPlayer player) {
.setSize(14, 14)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.BUTTON_STANDARD);
UI.add(AdaptableUITexture.of(Tags.MODID, "textures/gui/double.png", 16, 16, 1));
return UI.toArray(new IDrawable[0]);
})
@@ -2364,7 +2360,7 @@ protected ModularWindow createInitialingWindow(final EntityPlayer player) {
.setSize(14, 14)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.BUTTON_STANDARD);
UI.add(AdaptableUITexture.of(Tags.MODID, "textures/gui/halve.png", 16, 16, 1));
return UI.toArray(new IDrawable[0]);
})
@@ -2381,7 +2377,7 @@ protected ModularWindow createInitialingWindow(final EntityPlayer player) {
.setSize(14, 14)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.BUTTON_STANDARD);
UI.add(AdaptableUITexture.of(Tags.MODID, "textures/gui/AE.png", 16, 16, 1));
return UI.toArray(new IDrawable[0]);
})
@@ -2398,7 +2394,7 @@ protected ModularWindow createInitialingWindow(final EntityPlayer player) {
.setSize(14, 14)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.BUTTON_STANDARD);
UI.add(AdaptableUITexture.of(Tags.MODID, "textures/gui/clear.png", 16, 16, 1));
return UI.toArray(new IDrawable[0]);
})
@@ -2414,8 +2410,8 @@ protected ModularWindow createInitialingWindow(final EntityPlayer player) {
.setSize(32, 32)
.setBackground(() -> {
List ret = new ArrayList<>();
- ret.add(GT_UITextures.BUTTON_STANDARD);
- ret.add(GT_UITextures.OVERLAY_BUTTON_WHITELIST);
+ ret.add(GTUITextures.BUTTON_STANDARD);
+ ret.add(GTUITextures.OVERLAY_BUTTON_WHITELIST);
return ret.toArray(new IDrawable[0]);
})
.addTooltip(i18n("tile.boxplusplus.boxUI.21"))
@@ -2431,11 +2427,11 @@ protected ModularWindow createInitialingWindow(final EntityPlayer player) {
*/
protected ModularWindow createRoutingWindow(final EntityPlayer player) {
ModularWindow.Builder builder = ModularWindow.builder(220, 200);
- builder.setBackground(GT_UITextures.BACKGROUND_SINGLEBLOCK_DEFAULT);
+ builder.setBackground(GTUITextures.BACKGROUND_SINGLEBLOCK_DEFAULT);
builder.setGuiTint(getGUIColorization());
Synchronize(builder);
builder.widget(
- new DrawableWidget().setDrawable(GT_UITextures.OVERLAY_BUTTON_AUTOOUTPUT_FLUID)
+ new DrawableWidget().setDrawable(GTUITextures.OVERLAY_BUTTON_AUTOOUTPUT_FLUID)
.setPos(5, 5)
.setSize(16, 16))
.widget(new TextWidget(i18n("tile.boxplusplus.boxUI.10") + moduleSN).setPos(25, 9))
@@ -2566,7 +2562,7 @@ protected ModularWindow createRoutingWindow(final EntityPlayer player) {
.setTextColor(Color.WHITE.normal)
.setTextAlignment(Alignment.Center)
.addTooltip(i18n("tile.boxplusplus.boxUI.24"))
- .setBackground(GT_UITextures.BACKGROUND_TEXT_FIELD)
+ .setBackground(GTUITextures.BACKGROUND_TEXT_FIELD)
.setSize(60, 12)
.setPos(50, 171)
.setEnabled(!recipe.islocked))
@@ -2584,7 +2580,7 @@ protected ModularWindow createRoutingWindow(final EntityPlayer player) {
*/
protected ModularWindow createImportWindow(final EntityPlayer player) {
ModularWindow.Builder builder = ModularWindow.builder(300, 48);
- builder.setBackground(GT_UITextures.BACKGROUND_SINGLEBLOCK_DEFAULT);
+ builder.setBackground(GTUITextures.BACKGROUND_SINGLEBLOCK_DEFAULT);
builder.setGuiTint(getGUIColorization());
Synchronize(builder);
TextFieldWidget textField = new TextFieldWidget() {
@@ -2600,7 +2596,7 @@ public boolean onKeyPressed(char character, int keyCode) {
return super.onKeyPressed(character, keyCode);
}
- @NotNull
+ @org.jetbrains.annotations.NotNull
public String getText() {
if (handler.getText()
.isEmpty()) {
@@ -2631,7 +2627,7 @@ public void onRemoveFocus() {
.setTextAlignment(Alignment.CenterLeft)
.setTextColor(Color.WHITE.dark(1))
.setFocusOnGuiOpen(true)
- .setBackground(GT_UITextures.BACKGROUND_TEXT_FIELD_LIGHT_GRAY.withOffset(-1, -1, 2, 2))
+ .setBackground(GTUITextures.BACKGROUND_TEXT_FIELD_LIGHT_GRAY.withOffset(-1, -1, 2, 2))
.setPos(5, 16)
.setSize(250, 16))
.widget(new ButtonWidget().setOnClick((clickData, widget) -> {
@@ -2666,8 +2662,8 @@ public void onRemoveFocus() {
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_AUTOOUTPUT_ITEM);
+ UI.add(GTUITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.OVERLAY_BUTTON_AUTOOUTPUT_ITEM);
return UI.toArray(new IDrawable[0]);
})
.addTooltip(i18n("tile.boxplusplus.boxUI.30"))
@@ -2677,7 +2673,7 @@ public void onRemoveFocus() {
protected ModularWindow createExportPatternWindow(final EntityPlayer player) {
ModularWindow.Builder builder = ModularWindow.builder(168, 125);
- builder.setBackground(GT_UITextures.BACKGROUND_SINGLEBLOCK_DEFAULT);
+ builder.setBackground(GTUITextures.BACKGROUND_SINGLEBLOCK_DEFAULT);
builder.setGuiTint(getGUIColorization());
Synchronize(builder);
TextFieldWidget inputItem = new TextFieldWidget().setValidator(var -> Util.validator(recipe, var, false));
@@ -2687,7 +2683,7 @@ protected ModularWindow createExportPatternWindow(final EntityPlayer player) {
inputItem.setTextAlignment(Alignment.CenterLeft)
.setTextColor(Color.WHITE.dark(1))
.setFocusOnGuiOpen(false)
- .setBackground(GT_UITextures.BACKGROUND_TEXT_FIELD_LIGHT_GRAY.withOffset(-1, -1, 2, 2))
+ .setBackground(GTUITextures.BACKGROUND_TEXT_FIELD_LIGHT_GRAY.withOffset(-1, -1, 2, 2))
.setPos(12, 10)
.addTooltip(i18n("tile.boxplusplus.boxUI.13"))
.setSize(60, 12))
@@ -2695,7 +2691,7 @@ protected ModularWindow createExportPatternWindow(final EntityPlayer player) {
inputFluid.setTextAlignment(Alignment.CenterLeft)
.setTextColor(Color.WHITE.dark(1))
.setFocusOnGuiOpen(false)
- .setBackground(GT_UITextures.BACKGROUND_TEXT_FIELD_LIGHT_GRAY.withOffset(-1, -1, 2, 2))
+ .setBackground(GTUITextures.BACKGROUND_TEXT_FIELD_LIGHT_GRAY.withOffset(-1, -1, 2, 2))
.setPos(96, 10)
.addTooltip(i18n("tile.boxplusplus.boxUI.14"))
.setSize(60, 12))
@@ -2710,8 +2706,8 @@ protected ModularWindow createExportPatternWindow(final EntityPlayer player) {
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_AUTOOUTPUT_ITEM);
+ UI.add(GTUITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.OVERLAY_BUTTON_AUTOOUTPUT_ITEM);
return UI.toArray(new IDrawable[0]);
})
.addTooltip(i18n("tile.boxplusplus.boxUI.36"))
@@ -2724,7 +2720,7 @@ protected ModularWindow createExportPatternWindow(final EntityPlayer player) {
*/
protected ModularWindow createClearWindow(final EntityPlayer player) {
ModularWindow.Builder builder = ModularWindow.builder(146, 60 + (randomSN.size() == 1 ? 15 : 0));
- builder.setBackground(GT_UITextures.BACKGROUND_SINGLEBLOCK_DEFAULT);
+ builder.setBackground(GTUITextures.BACKGROUND_SINGLEBLOCK_DEFAULT);
builder.setGuiTint(getGUIColorization());
Synchronize(builder);
builder
@@ -2768,7 +2764,7 @@ protected ModularWindow createClearWindow(final EntityPlayer player) {
.setSize(24, 24)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.BUTTON_STANDARD);
UI.add(
AdaptableUITexture.of(
Tags.MODID,
@@ -2790,10 +2786,10 @@ protected ModularWindow createClearWindow(final EntityPlayer player) {
*/
protected ModularWindow createFinalRecipeWindow(final EntityPlayer player) {
ModularWindow.Builder builder = ModularWindow.builder(360, 220);
- builder.setBackground(GT_UITextures.BACKGROUND_SINGLEBLOCK_DEFAULT);
+ builder.setBackground(GTUITextures.BACKGROUND_SINGLEBLOCK_DEFAULT);
builder.setGuiTint(getGUIColorization());
builder.widget(
- new DrawableWidget().setDrawable(GT_UITextures.OVERLAY_BUTTON_AUTOOUTPUT_FLUID)
+ new DrawableWidget().setDrawable(GTUITextures.OVERLAY_BUTTON_AUTOOUTPUT_FLUID)
.setPos(5, 5)
.setSize(16, 16))
.widget(new TextWidget(i18n("tile.boxplusplus.boxUI.22")).setPos(25, 9))
@@ -2952,14 +2948,14 @@ protected ModularWindow createFinalRecipeWindow(final EntityPlayer player) {
recipe.islocked = true;
if (!widget.isClient()) {
player.closeScreen();
- GT_UIInfos.openGTTileEntityUI(getBaseMetaTileEntity(), player);
+ GTUIInfos.openGTTileEntityUI(getBaseMetaTileEntity(), player);
}
})
.setSize(20, 20)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_CHECKMARK);
+ UI.add(GTUITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.OVERLAY_BUTTON_CHECKMARK);
return UI.toArray(new IDrawable[0]);
})
.addTooltip(i18n("tile.boxplusplus.boxUI.25"))
@@ -2973,11 +2969,11 @@ protected ModularWindow createFinalRecipeWindow(final EntityPlayer player) {
*/
protected ModularWindow createWikiWindow(final EntityPlayer player) {
ModularWindow.Builder builder = ModularWindow.builder(300, 210);
- builder.setBackground(GT_UITextures.BACKGROUND_SINGLEBLOCK_DEFAULT);
+ builder.setBackground(GTUITextures.BACKGROUND_SINGLEBLOCK_DEFAULT);
builder.setGuiTint(getGUIColorization());
Synchronize(builder);
builder.widget(
- new DrawableWidget().setDrawable(GT_UITextures.OVERLAY_BUTTON_NEI)
+ new DrawableWidget().setDrawable(GTUITextures.OVERLAY_BUTTON_NEI)
.setPos(5, 5)
.setSize(16, 16))
.widget(new TextWidget(i18n("tile.boxplusplus.boxwiki.1")).setPos(25, 9))
@@ -2997,8 +2993,8 @@ protected ModularWindow createWikiWindow(final EntityPlayer player) {
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_INVERT_REDSTONE);
+ UI.add(GTUITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.OVERLAY_BUTTON_INVERT_REDSTONE);
return UI.toArray(new IDrawable[0]);
})
.addTooltip(i18n("tile.boxplusplus.boxwiki.3"))
@@ -3015,8 +3011,8 @@ protected ModularWindow createWikiWindow(final EntityPlayer player) {
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_BATCH_MODE_ON);
+ UI.add(GTUITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.OVERLAY_BUTTON_BATCH_MODE_ON);
return UI.toArray(new IDrawable[0]);
})
.addTooltip(i18n("tile.boxplusplus.boxwiki.4"))
@@ -3033,8 +3029,8 @@ protected ModularWindow createWikiWindow(final EntityPlayer player) {
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_POWER_SWITCH_ON);
+ UI.add(GTUITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.OVERLAY_BUTTON_POWER_SWITCH_ON);
return UI.toArray(new IDrawable[0]);
})
.addTooltip(i18n("tile.boxplusplus.boxwiki.5"))
@@ -3051,8 +3047,8 @@ protected ModularWindow createWikiWindow(final EntityPlayer player) {
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_PROGRESS);
+ UI.add(GTUITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.OVERLAY_BUTTON_PROGRESS);
return UI.toArray(new IDrawable[0]);
})
.addTooltip(i18n("tile.boxplusplus.boxwiki.6"))
@@ -3069,8 +3065,8 @@ protected ModularWindow createWikiWindow(final EntityPlayer player) {
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_WHITELIST);
+ UI.add(GTUITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.OVERLAY_BUTTON_WHITELIST);
return UI.toArray(new IDrawable[0]);
})
.addTooltip(i18n("tile.boxplusplus.boxwiki.7"))
@@ -3131,8 +3127,8 @@ private void getwikiByIndex(ModularWindow.Builder builder) {
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_ARROW_GREEN_DOWN);
+ UI.add(GTUITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.OVERLAY_BUTTON_ARROW_GREEN_DOWN);
return UI.toArray(new IDrawable[0]);
})
.addTooltip(i18n("tile.boxplusplus.boxwiki.0"))
@@ -3169,8 +3165,8 @@ private void getwikiByIndex(ModularWindow.Builder builder) {
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_ARROW_GREEN_DOWN);
+ UI.add(GTUITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.OVERLAY_BUTTON_ARROW_GREEN_DOWN);
return UI.toArray(new IDrawable[0]);
})
.addTooltip(i18n("tile.boxplusplus.boxwiki.0"))
@@ -3193,8 +3189,8 @@ private void getwikiByIndex(ModularWindow.Builder builder) {
.setSize(16, 16)
.setBackground(() -> {
List UI = new ArrayList<>();
- UI.add(GT_UITextures.BUTTON_STANDARD);
- UI.add(GT_UITextures.OVERLAY_BUTTON_EMIT_REDSTONE);
+ UI.add(GTUITextures.BUTTON_STANDARD);
+ UI.add(GTUITextures.OVERLAY_BUTTON_EMIT_REDSTONE);
return UI.toArray(new IDrawable[0]);
})
.addTooltip(i18n("tile.boxplusplus.boxUI.module." + i))
diff --git a/src/main/java/com/silvermoon/boxplusplus/network/MessageRouting.java b/src/main/java/com/silvermoon/boxplusplus/network/MessageRouting.java
index 9a55de7..8b46c99 100644
--- a/src/main/java/com/silvermoon/boxplusplus/network/MessageRouting.java
+++ b/src/main/java/com/silvermoon/boxplusplus/network/MessageRouting.java
@@ -12,7 +12,7 @@
import cpw.mods.fml.common.network.simpleimpl.IMessageHandler;
import cpw.mods.fml.common.network.simpleimpl.MessageContext;
import cpw.mods.fml.relauncher.Side;
-import gregtech.api.gui.modularui.GT_UIInfos;
+import gregtech.api.gui.modularui.GTUIInfos;
import io.netty.buffer.ByteBuf;
public class MessageRouting implements IMessage {
@@ -51,7 +51,7 @@ public IMessage onMessage(MessageRouting message, MessageContext ctx) {
GTMachineBox box = Util.boxMap.get(player);
box.routingMap.add(new BoxRoutings(message.nbt));
player.openContainer.detectAndSendChanges();
- GT_UIInfos.openGTTileEntityUI(box.getBaseMetaTileEntity(), player);
+ GTUIInfos.openGTTileEntityUI(box.getBaseMetaTileEntity(), player);
}
}
return null;
diff --git a/src/main/java/com/silvermoon/boxplusplus/util/BoxRecipe.java b/src/main/java/com/silvermoon/boxplusplus/util/BoxRecipe.java
index 6789e5a..4873ecb 100644
--- a/src/main/java/com/silvermoon/boxplusplus/util/BoxRecipe.java
+++ b/src/main/java/com/silvermoon/boxplusplus/util/BoxRecipe.java
@@ -17,8 +17,8 @@
import appeng.api.storage.data.IAEItemStack;
import appeng.util.item.AEItemStack;
-import gregtech.api.util.GT_OreDictUnificator;
-import gregtech.api.util.GT_Utility;
+import gregtech.api.util.GTOreDictUnificator;
+import gregtech.api.util.GTUtility;
public class BoxRecipe {
@@ -69,9 +69,9 @@ public BoxRecipe(NBTTagCompound nbt) {
public static void ItemOnBox(List input, List output) {
for (ItemStack iItem : input) {
for (ItemStack oItem : output) {
- if (GT_Utility.areStacksEqual(oItem, iItem, true) || (oItem.getUnlocalizedName()
+ if (GTUtility.areStacksEqual(oItem, iItem, true) || (oItem.getUnlocalizedName()
.startsWith("item.Circuit")
- && GT_OreDictUnificator.isInputStackEqual(iItem, GT_OreDictUnificator.get(oItem)))) {
+ && GTOreDictUnificator.isInputStackEqual(iItem, GTOreDictUnificator.get(oItem)))) {
if (iItem.stackSize == oItem.stackSize) {
iItem.stackSize = 0;
oItem.stackSize = 0;
diff --git a/src/main/java/com/silvermoon/boxplusplus/util/BoxRoutings.java b/src/main/java/com/silvermoon/boxplusplus/util/BoxRoutings.java
index 4e0d940..9bfd267 100644
--- a/src/main/java/com/silvermoon/boxplusplus/util/BoxRoutings.java
+++ b/src/main/java/com/silvermoon/boxplusplus/util/BoxRoutings.java
@@ -1,7 +1,7 @@
package com.silvermoon.boxplusplus.util;
import static com.silvermoon.boxplusplus.util.Util.*;
-import static gregtech.common.blocks.GT_Item_Machines.getMetaTileEntity;
+import static gregtech.common.blocks.ItemMachines.getMetaTileEntity;
import java.util.ArrayList;
import java.util.Arrays;
@@ -19,7 +19,6 @@
import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.fluids.FluidStack;
-import com.github.bartimaeusnek.bartworks.API.recipe.BartWorksRecipeMaps;
import com.silvermoon.boxplusplus.api.IBoxable;
import com.silvermoon.boxplusplus.boxplusplus;
import com.silvermoon.boxplusplus.common.tileentities.GTMachineBox;
@@ -27,19 +26,20 @@
import com.silvermoon.boxplusplus.network.NetworkLoader;
import appeng.container.ContainerNull;
+import bartworks.API.recipe.BartWorksRecipeMaps;
import codechicken.nei.PositionedStack;
import codechicken.nei.recipe.RecipeCatalysts;
import fox.spiteful.avaritia.crafting.ExtremeShapedOreRecipe;
import fox.spiteful.avaritia.crafting.ExtremeShapedRecipe;
import goodgenerator.api.recipe.GoodGeneratorRecipeMaps;
import gregtech.api.enums.*;
-import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch_InputBus;
-import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
+import gregtech.api.metatileentity.implementations.MTEHatchInputBus;
+import gregtech.api.metatileentity.implementations.MTEMultiBlockBase;
import gregtech.api.recipe.RecipeMap;
import gregtech.api.recipe.RecipeMaps;
import gregtech.api.util.*;
-import gregtech.common.items.behaviors.Behaviour_DataOrb;
-import gregtech.nei.GT_NEI_DefaultHandler;
+import gregtech.common.items.behaviors.BehaviourDataOrb;
+import gregtech.nei.GTNEIDefaultHandler;
import gtPlusPlus.core.util.minecraft.ItemUtils;
public class BoxRoutings {
@@ -55,7 +55,7 @@ public class BoxRoutings {
public int time;
public Long voltage;
- public BoxRoutings(GT_Recipe recipe, ItemStack machine) {
+ public BoxRoutings(GTRecipe recipe, ItemStack machine) {
InputItem.addAll(Arrays.asList(recipe.mInputs));
InputItem.removeAll(Collections.singleton(null));
OutputItem.addAll(Arrays.asList(recipe.mOutputs));
@@ -240,9 +240,9 @@ public static void checkRouting(GTMachineBox box) {
return;
}
RecipeMap> recipeMap;
- GT_Recipe routingRecipe = null;
+ GTRecipe routingRecipe = null;
List allInputItems = box.getStoredInputs();
- for (GT_MetaTileEntity_Hatch_InputBus inputBus : box.mInputBusses) {
+ for (MTEHatchInputBus inputBus : box.mInputBusses) {
for (int i = inputBus.getSizeInventory() - 1; i >= 0; i--) {
if (inputBus.getStackInSlot(i) != null) {
{
@@ -251,14 +251,18 @@ public static void checkRouting(GTMachineBox box) {
.getUnlocalizedName()
.equals("gt.blockmachines.basicmachine.electromagneticseparator.tier.06")) {
recipeMap = RecipeMaps.electroMagneticSeparatorRecipes;
- routingRecipe = recipeMap.findRecipe(
- box.getBaseMetaTileEntity(),
- true,
- true,
- Long.MAX_VALUE / 10,
- box.getStoredFluids()
- .toArray(new FluidStack[0]),
- allInputItems.toArray(new ItemStack[0]));
+ routingRecipe = recipeMap.findRecipeQuery()
+ .items(allInputItems.toArray(new ItemStack[0]))
+ .fluids(
+ box.getStoredFluids()
+ .toArray(new FluidStack[0]))
+ .voltage(Long.MAX_VALUE / 10)
+ .dontCheckStackSizes(true)
+ .notUnificated(true)
+ .find();
+
+ // box.getBaseMetaTileEntity(),
+
if (routingRecipe != null) {
box.routingMap.add(new BoxRoutings(routingRecipe.copy(), inputBus.getStackInSlot(i)));
box.routingStatus = 0;
@@ -297,9 +301,9 @@ public static void checkRouting(GTMachineBox box) {
.getRecipeList();
for (Object recipe : recipeList) {
if (recipe instanceof ExtremeShapedRecipe exRecipe) {
- if (GT_OreDictUnificator.isInputStackEqual(
+ if (GTOreDictUnificator.isInputStackEqual(
item,
- GT_OreDictUnificator.get(exRecipe.getRecipeOutput()))) {
+ GTOreDictUnificator.get(exRecipe.getRecipeOutput()))) {
ItemStack[] in = exRecipe.recipeItems;
ItemContainer var = new ItemContainer();
for (ItemStack itemIn : in) {
@@ -322,15 +326,15 @@ public static void checkRouting(GTMachineBox box) {
return;
}
} else if (recipe instanceof ExtremeShapedOreRecipe exRecipe) {
- if (GT_OreDictUnificator.isInputStackEqual(item, exRecipe.getRecipeOutput())) {
+ if (GTOreDictUnificator.isInputStackEqual(item, exRecipe.getRecipeOutput())) {
Object[] in = exRecipe.getInput();
ItemContainer var = new ItemContainer();
for (Object ObjtecIn : in) {
if (ObjtecIn == null) continue;
if (ObjtecIn instanceof ItemStack itemIn)
- var.addItemStack(GT_OreDictUnificator.get(itemIn), 1, 10000);
+ var.addItemStack(GTOreDictUnificator.get(itemIn), 1, 10000);
if (ObjtecIn instanceof ArrayList listIn) var.addItemStack(
- GT_OreDictUnificator.get((ItemStack) listIn.get(0)),
+ GTOreDictUnificator.get((ItemStack) listIn.get(0)),
1,
10000);
}
@@ -356,8 +360,7 @@ public static void checkRouting(GTMachineBox box) {
return;
}
}
- if (getMetaTileEntity(
- inputBus.getStackInSlot(i)) instanceof GT_MetaTileEntity_MultiBlockBase RoutingMachine) {
+ if (getMetaTileEntity(inputBus.getStackInSlot(i)) instanceof MTEMultiBlockBase RoutingMachine) {
boxplusplus.LOG.debug(RoutingMachine.mName);
List ItemInputs = deepCopyItemList(box.getStoredInputs());
List FluidInputs = deepCopyFluidList(box.getStoredFluids());
@@ -373,7 +376,7 @@ public static void checkRouting(GTMachineBox box) {
}
case "multimachine.multifurnace" -> {
for (ItemStack input : ItemInputs) {
- ItemStack output = GT_OreDictUnificator.get(
+ ItemStack output = GTOreDictUnificator.get(
FurnaceRecipes.smelting()
.getSmeltingResult(input));
if (output != null) {
@@ -482,20 +485,20 @@ public static void checkRouting(GTMachineBox box) {
}
// We can find assemblyline recipe using the original method, but no need to update it,
// nor check it
- GT_AssemblyLineUtils.LookupResult tLookupResult = GT_AssemblyLineUtils
+ AssemblyLineUtils.LookupResult tLookupResult = AssemblyLineUtils
.findAssemblyLineRecipeFromDataStick(data, false);
- if (tLookupResult.getType() == GT_AssemblyLineUtils.LookupResultType.INVALID_STICK) {
+ if (tLookupResult.getType() == AssemblyLineUtils.LookupResultType.INVALID_STICK) {
box.routingStatus = 5;
return;
}
- GT_Recipe.GT_Recipe_AssemblyLine tRecipe = tLookupResult.getRecipe();
+ GTRecipe.RecipeAssemblyLine tRecipe = tLookupResult.getRecipe();
ItemStack[] in = Arrays.copyOf(tRecipe.mInputs, tRecipe.mInputs.length);
for (int j = 0; j < tRecipe.mOreDictAlt.length; j++) {
if (tRecipe.mOreDictAlt[j] == null) continue;
- in[j] = GT_OreDictUnificator.get(false, in[j]);
+ in[j] = GTOreDictUnificator.get(false, in[j]);
for (ItemStack replace : ItemInputs) {
- if (GT_OreDictUnificator.getAssociation(replace) != null
- && GT_OreDictUnificator.isInputStackEqual(replace, in[j])) {
+ if (GTOreDictUnificator.getAssociation(replace) != null
+ && GTOreDictUnificator.isInputStackEqual(replace, in[j])) {
in[j] = new ItemStack(
replace.getItem(),
in[j].stackSize,
@@ -524,12 +527,13 @@ public static void checkRouting(GTMachineBox box) {
// it.
// But not anymore.
routingRecipe = RoutingMachine.getRecipeMap()
- .findRecipe(
- box.getBaseMetaTileEntity(),
- true,
- Long.MAX_VALUE / 10,
- FluidInputs.toArray(new FluidStack[0]),
- ItemInputs.toArray(new ItemStack[0]));
+ .findRecipeQuery()
+ .notUnificated(true)
+ .voltage(Long.MAX_VALUE / 10)
+ .fluids(FluidInputs.toArray(new FluidStack[0]))
+ .items(ItemInputs.toArray(new ItemStack[0]))
+ .find();
+
if (routingRecipe == null) {
box.routingStatus = 3;
return;
@@ -553,8 +557,8 @@ public static void checkRouting(GTMachineBox box) {
box.routingStatus = 6;
return;
}
- for (GT_Recipe recipe : recipeMap.getAllRecipes()) {
- if (GT_Utility.areStacksEqual(
+ for (GTRecipe recipe : recipeMap.getAllRecipes()) {
+ if (GTUtility.areStacksEqual(
recipe.mOutputs[0],
ItemStack.loadItemStackFromNBT(
inputBus.getStackInSlot(i)
@@ -592,9 +596,9 @@ public static void checkRouting(GTMachineBox box) {
recipeMap = RecipeMaps.replicatorRecipes;
Materials replicatorItem = null;
for (ItemStack item : ItemInputs) {
- if (Behaviour_DataOrb.getDataName(item)
+ if (BehaviourDataOrb.getDataName(item)
.isEmpty()) continue;
- replicatorItem = Element.get(Behaviour_DataOrb.getDataName(item)).mLinkedMaterials
+ replicatorItem = Element.get(BehaviourDataOrb.getDataName(item)).mLinkedMaterials
.get(0);
break;
}
@@ -602,12 +606,12 @@ public static void checkRouting(GTMachineBox box) {
box.routingStatus = 7;
return;
}
- for (GT_Recipe recipe : recipeMap.getAllRecipes()) {
+ for (GTRecipe recipe : recipeMap.getAllRecipes()) {
if (!(recipe.mSpecialItems instanceof ItemStack[]var1)) {
continue;
}
if (replicatorItem.equals(
- Element.get(Behaviour_DataOrb.getDataName(var1[0])).mLinkedMaterials.get(0))) {
+ Element.get(BehaviourDataOrb.getDataName(var1[0])).mLinkedMaterials.get(0))) {
box.routingMap.add(new BoxRoutings(recipe, RoutingMachine.getStackForm(1)));
box.routingStatus = 0;
return;
@@ -638,22 +642,23 @@ public static void checkRouting(GTMachineBox box) {
}
}
ItemInputs.remove(inputBus.getStackInSlot(i));
- if (routingRecipe == null) routingRecipe = recipeMap.findRecipe(
- box.getBaseMetaTileEntity(),
- true,
- true,
- Long.MAX_VALUE / 10,
- FluidInputs.toArray(new FluidStack[0]),
- ItemInputs.toArray(new ItemStack[0]));
+ if (routingRecipe == null) routingRecipe = recipeMap.findRecipeQuery()
+ .notUnificated(true)
+ .dontCheckStackSizes(true)
+ .voltage(Long.MAX_VALUE / 10)
+ .items(ItemInputs.toArray(new ItemStack[0]))
+ .fluids(FluidInputs.toArray(new FluidStack[0]))
+ .find();
+
if (routingRecipe != null) {
- GT_Recipe tempRecipe = routingRecipe.copy();
+ GTRecipe tempRecipe = routingRecipe.copy();
for (int j = 0; j < tempRecipe.mInputs.length; j++) {
if (tempRecipe.mInputs[j] == null) continue;
- if (GT_OreDictUnificator.getAssociation(tempRecipe.mInputs[j]) != null) {
+ if (GTOreDictUnificator.getAssociation(tempRecipe.mInputs[j]) != null) {
for (ItemStack si : box.getStoredInputs()) {
- if (GT_OreDictUnificator.isInputStackEqual(
+ if (GTOreDictUnificator.isInputStackEqual(
tempRecipe.mInputs[j],
- GT_OreDictUnificator.get(false, si))) {
+ GTOreDictUnificator.get(false, si))) {
tempRecipe.mInputs[j] = new ItemStack(
si.getItem(),
tempRecipe.mInputs[j].stackSize,
@@ -675,19 +680,18 @@ public static void checkRouting(GTMachineBox box) {
box.routingStatus = 2;
}
- public static void makeRouting(GT_NEI_DefaultHandler recipe, int recipeIndex, EntityPlayer player) {
+ public static void makeRouting(GTNEIDefaultHandler recipe, int recipeIndex, EntityPlayer player) {
List machineListWithPos = RecipeCatalysts.getRecipeCatalysts(recipe);
List machineList = machineListWithPos.stream()
.map(v -> v.item)
.collect(Collectors.toList());
for (ItemStack machine : machineList) {
- if (getMetaTileEntity(machine) instanceof GT_MetaTileEntity_MultiBlockBase mte
- && !mte.mName.startsWith("TST")
+ if (getMetaTileEntity(machine) instanceof MTEMultiBlockBase mte && !mte.mName.startsWith("TST")
&& !mte.mName.startsWith("name")) {
NetworkLoader.instance.sendToServer(
new MessageRouting(
new BoxRoutings(
- ((GT_NEI_DefaultHandler.CachedDefaultRecipe) recipe.arecipes.get(recipeIndex)).mRecipe,
+ ((GTNEIDefaultHandler.CachedDefaultRecipe) recipe.arecipes.get(recipeIndex)).mRecipe,
machine).routingToNbt(),
player));
break;
diff --git a/src/main/java/com/silvermoon/boxplusplus/util/ResultModuleRequirement.java b/src/main/java/com/silvermoon/boxplusplus/util/ResultModuleRequirement.java
index af3943a..24c98ab 100644
--- a/src/main/java/com/silvermoon/boxplusplus/util/ResultModuleRequirement.java
+++ b/src/main/java/com/silvermoon/boxplusplus/util/ResultModuleRequirement.java
@@ -2,9 +2,14 @@
import static com.silvermoon.boxplusplus.util.Util.i18n;
+import javax.annotation.Nonnull;
+
+import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.PacketBuffer;
import net.minecraft.util.EnumChatFormatting;
+import org.jetbrains.annotations.NotNull;
+
import gregtech.api.recipe.check.CheckRecipeResult;
public class ResultModuleRequirement implements CheckRecipeResult {
@@ -33,6 +38,17 @@ public String getDisplayString() {
+ i18n("tile.boxplusplus_" + (isUpdated ? "boxmoduleplus." : "boxmodule." + required + ".name"));
}
+ @NotNull
+ @Override
+ public NBTTagCompound writeToNBT(@Nonnull NBTTagCompound tag) {
+ return null;
+ }
+
+ @Override
+ public void readFromNBT(@Nonnull NBTTagCompound tag) {
+
+ }
+
@Override
public CheckRecipeResult newInstance() {
return new ResultModuleRequirement(0, false);
diff --git a/src/main/java/com/silvermoon/boxplusplus/util/Util.java b/src/main/java/com/silvermoon/boxplusplus/util/Util.java
index 74a16b6..3b8fe4e 100644
--- a/src/main/java/com/silvermoon/boxplusplus/util/Util.java
+++ b/src/main/java/com/silvermoon/boxplusplus/util/Util.java
@@ -1,13 +1,14 @@
package com.silvermoon.boxplusplus.util;
-import java.io.IOException;
-import java.util.*;
-import java.util.function.BiPredicate;
-import java.util.function.Function;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-import java.util.stream.Stream;
-
+import appeng.api.AEApi;
+import appeng.api.definitions.IDefinitions;
+import com.gtnewhorizon.structurelib.StructureLibAPI;
+import com.gtnewhorizon.structurelib.structure.IStructureElement;
+import com.silvermoon.boxplusplus.common.loader.BlockRegister;
+import com.silvermoon.boxplusplus.common.tileentities.GTMachineBox;
+import gregtech.api.recipe.RecipeMap;
+import gregtech.api.recipe.RecipeMaps;
+import gregtech.api.util.GTModHandler;
import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
@@ -21,20 +22,16 @@
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import net.minecraftforge.fluids.FluidStack;
-
import org.apache.commons.lang3.StringUtils;
import org.jetbrains.annotations.Nullable;
-import com.gtnewhorizon.structurelib.StructureLibAPI;
-import com.gtnewhorizon.structurelib.structure.IStructureElement;
-import com.silvermoon.boxplusplus.common.loader.BlockRegister;
-import com.silvermoon.boxplusplus.common.tileentities.GTMachineBox;
-
-import appeng.api.AEApi;
-import appeng.api.definitions.IDefinitions;
-import gregtech.api.recipe.RecipeMap;
-import gregtech.api.recipe.RecipeMaps;
-import gregtech.api.util.GT_ModHandler;
+import java.io.IOException;
+import java.util.*;
+import java.util.function.BiPredicate;
+import java.util.function.Function;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+import java.util.stream.Stream;
public class Util {
@@ -130,7 +127,7 @@ public static ItemStack readBoxItemFromUNBT(NBTTagCompound nbt) {
if (itemDamage < 0) {
itemDamage = 0;
}
- ItemStack boxItem = GT_ModHandler
+ ItemStack boxItem = GTModHandler
.getModItem(nbt.getString("modID"), nbt.getString("name"), stackSize, itemDamage);
if (nbt.hasKey("tag", 10)) {
boxItem.stackTagCompound = nbt.getCompoundTag("tag");
From 8168d5c8556b9459e9b9dc1c2a4193b51692bae6 Mon Sep 17 00:00:00 2001
From: luomolhx <2932965369@qq.com>
Date: Sun, 17 Nov 2024 15:32:22 +0800
Subject: [PATCH 10/12] fit 2.7.0
---
gradle.properties | 5 -----
1 file changed, 5 deletions(-)
diff --git a/gradle.properties b/gradle.properties
index 0f362bc..ad91d79 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -140,8 +140,3 @@ disableCheckstyle=true
# Usually there is no need to uncomment this here as other developers do not necessarily use the same build type as you.
# ideaOverrideBuildType = idea
-
-systemProp.http.proxyHost=127.0.0.1
-systemProp.http.proxyPort=7897
-systemProp.https.proxyHost=127.0.0.1
-systemProp.https.proxyPort=7897
From 23cfd18313dc4c1013735c33ab89a77a79d3a9fe Mon Sep 17 00:00:00 2001
From: luomolhx <2932965369@qq.com>
Date: Sun, 17 Nov 2024 15:58:10 +0800
Subject: [PATCH 11/12] apply Spotless
---
.../silvermoon/boxplusplus/boxplusplus.java | 3 +-
.../common/block/BlockBoxModuleCore.java | 5 +-
.../common/items/IB_BoxModule.java | 11 ++--
.../common/loader/BlockRegister.java | 30 +++++------
.../common/render/RenderBoxRing.java | 5 +-
.../common/tileentities/GTMachineBox.java | 53 ++++++++++---------
.../boxplusplus/util/FluidContainer.java | 8 +--
.../boxplusplus/util/ItemContainer.java | 14 ++---
.../util/ResultModuleRequirement.java | 5 +-
.../com/silvermoon/boxplusplus/util/Util.java | 35 ++++++------
10 files changed, 83 insertions(+), 86 deletions(-)
diff --git a/src/main/java/com/silvermoon/boxplusplus/boxplusplus.java b/src/main/java/com/silvermoon/boxplusplus/boxplusplus.java
index 684736f..f548d84 100644
--- a/src/main/java/com/silvermoon/boxplusplus/boxplusplus.java
+++ b/src/main/java/com/silvermoon/boxplusplus/boxplusplus.java
@@ -20,8 +20,7 @@
modid = Tags.MODID,
version = Tags.VERSION,
name = Tags.MODNAME,
- dependencies = "required-after:IC2;"
- + "required-after:structurelib;"
+ dependencies = "required-after:IC2;" + "required-after:structurelib;"
+ "required-after:modularui;"
+ "after:GalacticraftCore;"
+ "required-after:bartworks;"
diff --git a/src/main/java/com/silvermoon/boxplusplus/common/block/BlockBoxModuleCore.java b/src/main/java/com/silvermoon/boxplusplus/common/block/BlockBoxModuleCore.java
index f6bedd0..1019632 100644
--- a/src/main/java/com/silvermoon/boxplusplus/common/block/BlockBoxModuleCore.java
+++ b/src/main/java/com/silvermoon/boxplusplus/common/block/BlockBoxModuleCore.java
@@ -44,9 +44,8 @@ public void registerBlock() {
@Override
public void registerBlockIcons(IIconRegister iconRegister) {
for (int i = 0; i < 15; i++) {
- ModuleIcon[i] = iconRegister.registerIcon(Tags.MODID + (!isUpdate
- ? ":modules/BoxModule"
- : ":modules/BoxModulePlus") + i);
+ ModuleIcon[i] = iconRegister
+ .registerIcon(Tags.MODID + (!isUpdate ? ":modules/BoxModule" : ":modules/BoxModulePlus") + i);
}
}
diff --git a/src/main/java/com/silvermoon/boxplusplus/common/items/IB_BoxModule.java b/src/main/java/com/silvermoon/boxplusplus/common/items/IB_BoxModule.java
index 7b0405c..3ff83ef 100644
--- a/src/main/java/com/silvermoon/boxplusplus/common/items/IB_BoxModule.java
+++ b/src/main/java/com/silvermoon/boxplusplus/common/items/IB_BoxModule.java
@@ -33,12 +33,13 @@ public boolean getHasSubtypes() {
@Override
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean p_77624_4_) {
boolean update = ((BlockBoxModuleCore) field_150939_a).isUpdate;
- list.add(EnumChatFormatting.AQUA.toString() + EnumChatFormatting.BOLD + i18n(
- "tile.boxplusplus.boxUI.module.context." + (stack.getItemDamage() + 1) + (update ? "f" : "a")));
+ list.add(
+ EnumChatFormatting.AQUA.toString() + EnumChatFormatting.BOLD
+ + i18n("tile.boxplusplus.boxUI.module.context." + (stack.getItemDamage() + 1) + (update ? "f" : "a")));
if (update) {
- list.add(EnumChatFormatting.GOLD
- + i18n("tile.boxplusplus.boxUI.module." + (stack.getItemDamage() + 1))
- + " (T2)");
+ list.add(
+ EnumChatFormatting.GOLD + i18n("tile.boxplusplus.boxUI.module." + (stack.getItemDamage() + 1))
+ + " (T2)");
}
list.add(i18n("tile.boxplusplus.boxUI.module.context." + (stack.getItemDamage() + 1) + (update ? "d" : "b")));
if (customUpdatedModuleList.containsKey(stack.getItemDamage())
diff --git a/src/main/java/com/silvermoon/boxplusplus/common/loader/BlockRegister.java b/src/main/java/com/silvermoon/boxplusplus/common/loader/BlockRegister.java
index 8c48c65..a679898 100644
--- a/src/main/java/com/silvermoon/boxplusplus/common/loader/BlockRegister.java
+++ b/src/main/java/com/silvermoon/boxplusplus/common/loader/BlockRegister.java
@@ -8,26 +8,20 @@
public class BlockRegister {
- public static BlockMachineBase SpaceExtend = new BlockMachineBase(
- "boxplusplus_SpaceExtend",
- Material.iron,
- 0).setHarvest("wrench", 3);
- public static BlockMachineBase SpaceConstraint = new BlockMachineBase("boxplusplus_SpaceConstraint",
+ public static BlockMachineBase SpaceExtend = new BlockMachineBase("boxplusplus_SpaceExtend", Material.iron, 0)
+ .setHarvest("wrench", 3);
+ public static BlockMachineBase SpaceConstraint = new BlockMachineBase(
+ "boxplusplus_SpaceConstraint",
Material.iron,
2).setHarvest("wrench", 3);
- public static BlockMachineBase SpaceCompress = new BlockMachineBase(
- "boxplusplus_SpaceCompress",
- Material.iron,
- 1).setHarvest("wrench", 3);
- public static BlockMachineBase SpaceWall = new BlockMachineBase(
- "boxplusplus_SpaceWall",
- Material.iron,
- 3).setHarvest("wrench", 3);
- public static BlockBoxModuleCore BoxModule = new BlockBoxModuleCore(
- "boxplusplus_boxmodule",
- Material.iron,
- false).setHarvest("wrench", 5);
- public static BlockBoxModuleCore BoxModuleUpgrad = new BlockBoxModuleCore("boxplusplus_boxmoduleplus",
+ public static BlockMachineBase SpaceCompress = new BlockMachineBase("boxplusplus_SpaceCompress", Material.iron, 1)
+ .setHarvest("wrench", 3);
+ public static BlockMachineBase SpaceWall = new BlockMachineBase("boxplusplus_SpaceWall", Material.iron, 3)
+ .setHarvest("wrench", 3);
+ public static BlockBoxModuleCore BoxModule = new BlockBoxModuleCore("boxplusplus_boxmodule", Material.iron, false)
+ .setHarvest("wrench", 5);
+ public static BlockBoxModuleCore BoxModuleUpgrad = new BlockBoxModuleCore(
+ "boxplusplus_boxmoduleplus",
Material.iron,
true).setHarvest("wrench", 5);
public static BlockBoxRing BoxRing = new BlockBoxRing(1);
diff --git a/src/main/java/com/silvermoon/boxplusplus/common/render/RenderBoxRing.java b/src/main/java/com/silvermoon/boxplusplus/common/render/RenderBoxRing.java
index 7349d72..077018c 100644
--- a/src/main/java/com/silvermoon/boxplusplus/common/render/RenderBoxRing.java
+++ b/src/main/java/com/silvermoon/boxplusplus/common/render/RenderBoxRing.java
@@ -19,9 +19,8 @@
public class RenderBoxRing extends TileEntitySpecialRenderer {
private static final ResourceLocation BoxRingTexture = new ResourceLocation(Tags.MODID, "textures/models/ring.png");
- private static final IModelCustom Ring = AdvancedModelLoader.loadModel(new ResourceLocation(
- Tags.MODID,
- "models/Ring.obj"));
+ private static final IModelCustom Ring = AdvancedModelLoader
+ .loadModel(new ResourceLocation(Tags.MODID, "models/Ring.obj"));
public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float timeSinceLastTick) {
if (!(tile instanceof TEBoxRing ring)) return;
diff --git a/src/main/java/com/silvermoon/boxplusplus/common/tileentities/GTMachineBox.java b/src/main/java/com/silvermoon/boxplusplus/common/tileentities/GTMachineBox.java
index c4f00e9..1586041 100644
--- a/src/main/java/com/silvermoon/boxplusplus/common/tileentities/GTMachineBox.java
+++ b/src/main/java/com/silvermoon/boxplusplus/common/tileentities/GTMachineBox.java
@@ -1,6 +1,31 @@
package com.silvermoon.boxplusplus.common.tileentities;
-import appeng.api.AEApi;
+import static com.gtnewhorizon.structurelib.structure.StructureUtility.*;
+import static com.gtnewhorizons.modularui.api.math.Alignment.TopCenter;
+import static com.gtnewhorizons.modularui.api.math.Alignment.TopLeft;
+import static com.silvermoon.boxplusplus.common.BoxModule.getModuleByIndex;
+import static com.silvermoon.boxplusplus.common.BoxModule.transMachinesToModule;
+import static com.silvermoon.boxplusplus.util.Util.*;
+import static gregtech.api.enums.HatchElement.*;
+import static gregtech.api.enums.Textures.BlockIcons.casingTexturePages;
+import static gregtech.api.util.GTStructureUtility.buildHatchAdder;
+
+import java.io.IOException;
+import java.util.*;
+
+import net.minecraft.client.gui.GuiScreen;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.network.PacketBuffer;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraftforge.common.util.ForgeDirection;
+import net.minecraftforge.fluids.FluidStack;
+import net.minecraftforge.fluids.FluidTank;
+
+import org.jetbrains.annotations.NotNull;
+
import com.glodblock.github.loader.ItemAndBlockHolder;
import com.glodblock.github.util.FluidPatternDetails;
import com.gtnewhorizon.structurelib.alignment.constructable.ISurvivalConstructable;
@@ -24,6 +49,8 @@
import com.silvermoon.boxplusplus.Tags;
import com.silvermoon.boxplusplus.common.loader.BlockRegister;
import com.silvermoon.boxplusplus.util.*;
+
+import appeng.api.AEApi;
import gregtech.api.enums.Textures;
import gregtech.api.gui.modularui.GTUIInfos;
import gregtech.api.gui.modularui.GTUITextures;
@@ -42,33 +69,9 @@
import gregtech.common.misc.WirelessNetworkManager;
import gregtech.common.tileentities.machines.IDualInputHatch;
import gregtech.common.tileentities.machines.IDualInputInventory;
-import net.minecraft.client.gui.GuiScreen;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.network.PacketBuffer;
-import net.minecraft.util.ChatComponentText;
-import net.minecraft.util.EnumChatFormatting;
-import net.minecraftforge.common.util.ForgeDirection;
-import net.minecraftforge.fluids.FluidStack;
-import net.minecraftforge.fluids.FluidTank;
-import org.jetbrains.annotations.NotNull;
import tectech.thing.metaTileEntity.hatch.MTEHatchEnergyMulti;
import tectech.thing.metaTileEntity.hatch.MTEHatchEnergyTunnel;
-import java.io.IOException;
-import java.util.*;
-
-import static com.gtnewhorizon.structurelib.structure.StructureUtility.*;
-import static com.gtnewhorizons.modularui.api.math.Alignment.TopCenter;
-import static com.gtnewhorizons.modularui.api.math.Alignment.TopLeft;
-import static com.silvermoon.boxplusplus.common.BoxModule.getModuleByIndex;
-import static com.silvermoon.boxplusplus.common.BoxModule.transMachinesToModule;
-import static com.silvermoon.boxplusplus.util.Util.*;
-import static gregtech.api.enums.HatchElement.*;
-import static gregtech.api.enums.Textures.BlockIcons.casingTexturePages;
-import static gregtech.api.util.GTStructureUtility.buildHatchAdder;
-
public class GTMachineBox extends MTEExtendedPowerMultiBlockBase implements ISurvivalConstructable {
private static final String STRUCTURE_PIECE_MainFrames = "Mainframes";
diff --git a/src/main/java/com/silvermoon/boxplusplus/util/FluidContainer.java b/src/main/java/com/silvermoon/boxplusplus/util/FluidContainer.java
index ac3050d..d0635eb 100644
--- a/src/main/java/com/silvermoon/boxplusplus/util/FluidContainer.java
+++ b/src/main/java/com/silvermoon/boxplusplus/util/FluidContainer.java
@@ -13,12 +13,12 @@ public class FluidContainer {
public void addFluidStack(FluidStack input, int multiple) {
String name = input.getUnlocalizedName();
if (!stack.containsKey(name)) {
- stack.put(name,
+ stack.put(
+ name,
new FluidStack(input.getFluid(), (int) Math.min((long) input.amount * multiple, Integer.MAX_VALUE)));
} else {
- stack.get(name).amount = (int) Math.min(
- stack.get(name).amount + (long) input.amount * multiple,
- Integer.MAX_VALUE);
+ stack.get(name).amount = (int) Math
+ .min(stack.get(name).amount + (long) input.amount * multiple, Integer.MAX_VALUE);
}
}
diff --git a/src/main/java/com/silvermoon/boxplusplus/util/ItemContainer.java b/src/main/java/com/silvermoon/boxplusplus/util/ItemContainer.java
index 0c737aa..6b087d2 100644
--- a/src/main/java/com/silvermoon/boxplusplus/util/ItemContainer.java
+++ b/src/main/java/com/silvermoon/boxplusplus/util/ItemContainer.java
@@ -18,10 +18,8 @@ public void addItemStack(ItemStack input, int multiple, int chance) {
if (input.getItem() == null) return;
Optional isNull = Optional.ofNullable(stack.get(input.getItem(), input.getItemDamage()));
if (isNull.isPresent()) {
- stack.put(
- input.getItem(),
- input.getItemDamage(),
- chance * (long) input.stackSize * multiple + isNull.get());
+ stack
+ .put(input.getItem(), input.getItemDamage(), chance * (long) input.stackSize * multiple + isNull.get());
} else {
stack.put(input.getItem(), input.getItemDamage(), chance * (long) input.stackSize * multiple);
}
@@ -46,9 +44,11 @@ public List getItemStack() {
for (Item item : stack.rowKeySet()) {
for (int meta : stack.columnKeySet()) {
if (stack.get(item, meta) != null) {
- output.add(new ItemStack(item,
- (int) Math.min(stack.get(item, meta) / 10000, Integer.MAX_VALUE - 1),
- meta));
+ output.add(
+ new ItemStack(
+ item,
+ (int) Math.min(stack.get(item, meta) / 10000, Integer.MAX_VALUE - 1),
+ meta));
}
}
}
diff --git a/src/main/java/com/silvermoon/boxplusplus/util/ResultModuleRequirement.java b/src/main/java/com/silvermoon/boxplusplus/util/ResultModuleRequirement.java
index e1459e8..24c98ab 100644
--- a/src/main/java/com/silvermoon/boxplusplus/util/ResultModuleRequirement.java
+++ b/src/main/java/com/silvermoon/boxplusplus/util/ResultModuleRequirement.java
@@ -34,9 +34,8 @@ public boolean wasSuccessful() {
@Override
public String getDisplayString() {
- return EnumChatFormatting.AQUA + i18n("tile.boxplusplus.boxUI.37") + i18n("tile.boxplusplus_" + (isUpdated
- ? "boxmoduleplus."
- : "boxmodule." + required + ".name"));
+ return EnumChatFormatting.AQUA + i18n("tile.boxplusplus.boxUI.37")
+ + i18n("tile.boxplusplus_" + (isUpdated ? "boxmoduleplus." : "boxmodule." + required + ".name"));
}
@NotNull
diff --git a/src/main/java/com/silvermoon/boxplusplus/util/Util.java b/src/main/java/com/silvermoon/boxplusplus/util/Util.java
index 3b8fe4e..64fe5d4 100644
--- a/src/main/java/com/silvermoon/boxplusplus/util/Util.java
+++ b/src/main/java/com/silvermoon/boxplusplus/util/Util.java
@@ -1,14 +1,13 @@
package com.silvermoon.boxplusplus.util;
-import appeng.api.AEApi;
-import appeng.api.definitions.IDefinitions;
-import com.gtnewhorizon.structurelib.StructureLibAPI;
-import com.gtnewhorizon.structurelib.structure.IStructureElement;
-import com.silvermoon.boxplusplus.common.loader.BlockRegister;
-import com.silvermoon.boxplusplus.common.tileentities.GTMachineBox;
-import gregtech.api.recipe.RecipeMap;
-import gregtech.api.recipe.RecipeMaps;
-import gregtech.api.util.GTModHandler;
+import java.io.IOException;
+import java.util.*;
+import java.util.function.BiPredicate;
+import java.util.function.Function;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+import java.util.stream.Stream;
+
import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
@@ -22,16 +21,20 @@
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import net.minecraftforge.fluids.FluidStack;
+
import org.apache.commons.lang3.StringUtils;
import org.jetbrains.annotations.Nullable;
-import java.io.IOException;
-import java.util.*;
-import java.util.function.BiPredicate;
-import java.util.function.Function;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-import java.util.stream.Stream;
+import com.gtnewhorizon.structurelib.StructureLibAPI;
+import com.gtnewhorizon.structurelib.structure.IStructureElement;
+import com.silvermoon.boxplusplus.common.loader.BlockRegister;
+import com.silvermoon.boxplusplus.common.tileentities.GTMachineBox;
+
+import appeng.api.AEApi;
+import appeng.api.definitions.IDefinitions;
+import gregtech.api.recipe.RecipeMap;
+import gregtech.api.recipe.RecipeMaps;
+import gregtech.api.util.GTModHandler;
public class Util {
From 25712ab31466341f3d29bfc6301a3c24184e7580 Mon Sep 17 00:00:00 2001
From: luomolhx <2932965369@qq.com>
Date: Tue, 10 Dec 2024 00:59:45 +0800
Subject: [PATCH 12/12] =?UTF-8?q?=E9=82=AA=E9=81=93=E4=BF=AE=E5=A4=8D=20?=
=?UTF-8?q?=E4=B8=8D=E7=9F=A5=E9=81=93=E8=AF=A5=E5=92=8B=E5=A4=84=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
dependencies.gradle | 8 +-
gradle.properties | 148 +++++++++++++-----
gradle/wrapper/gradle-wrapper.jar | Bin 62076 -> 43462 bytes
gradle/wrapper/gradle-wrapper.properties | 3 +-
gradlew | 22 +--
settings.gradle | 2 +-
.../silvermoon/boxplusplus/boxplusplus.java | 2 +
.../boxplusplus/common/CommonProxy.java | 3 +-
8 files changed, 128 insertions(+), 60 deletions(-)
diff --git a/dependencies.gradle b/dependencies.gradle
index a92becc..fc40fb3 100644
--- a/dependencies.gradle
+++ b/dependencies.gradle
@@ -29,8 +29,8 @@
* For more details, see https://docs.gradle.org/8.0.1/userguide/java_library_plugin.html#sec:java_library_configurations_graph
*/
dependencies {
- implementation('com.github.GTNewHorizons:GT5-Unofficial:5.09.50.69:dev')
- implementation('com.github.GTNewHorizons:GTNH-Intergalactic:1.4.25:dev')
- implementation('com.github.GTNewHorizons:NewHorizonsCoreMod:2.6.77:dev')
- implementation('com.github.GTNewHorizons:Avaritia:1.54:dev')
+ implementation('com.github.GTNewHorizons:GT5-Unofficial:5.09.50.103:dev')
+ implementation('com.github.GTNewHorizons:GTNH-Intergalactic:1.4.30:dev')
+ implementation('com.github.GTNewHorizons:NewHorizonsCoreMod:2.6.88:dev')
+ implementation('com.github.GTNewHorizons:Avaritia:1.56:dev')
}
diff --git a/gradle.properties b/gradle.properties
index ec20a9b..8f88ad7 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,77 +1,109 @@
+# ExampleMod tag to use as Blowdryer (Spotless, etc.) settings version, leave empty to disable.
+# LOCAL to test local config updates.
+gtnh.settings.blowdryerTag = 0.2.2
+
+# Human-readable mod name, available for mcmod.info population.
modName = BoxPlusPlus
-# This is a case-sensitive string to identify your mod. Convention is to use lower case.
+# Case-sensitive identifier string, available for mcmod.info population and used for automatic mixin JSON generation.
+# Conventionally lowercase.
modId = boxplusplus
+# Root package of the mod, used to find various classes in other properties,
+# mcmod.info substitution, enabling assertions in run tasks, etc.
modGroup = com.silvermoon.boxplusplus
-# WHY is there no version field?
-# The build script relies on git to provide a version via tags. It is super easy and will enable you to always know the
-# code base or your binary. Check out this tutorial: https://blog.mattclemente.com/2017/10/13/versioning-with-git-tags/
+# Whether to use modGroup as the maven publishing group.
+# Due to a history of using JitPack, the default is com.github.GTNewHorizons for all mods.
+useModGroupForPublishing = false
-# Will update your build.gradle automatically whenever an update is available
+# Updates your build.gradle and settings.gradle automatically whenever an update is available.
autoUpdateBuildScript = true
+# Version of Minecraft to target
minecraftVersion = 1.7.10
+
+# Version of Minecraft Forge to target
forgeVersion = 10.13.4.1614
-# Specify a MCP channel and mappings version for dependency deobfuscation and the deobfParams task.
+# Specify an MCP channel for dependency deobfuscation and the deobfParams task.
channel = stable
+
+# Specify an MCP mappings version for dependency deobfuscation and the deobfParams task.
mappingsVersion = 12
-# Define other MCP mappings for dependency deobfuscation
-remoteMappings = https://raw.githubusercontent.com/MinecraftForge/FML/1.7.10/conf/
+# Defines other MCP mappings for dependency deobfuscation.
+remoteMappings = https\://raw.githubusercontent.com/MinecraftForge/FML/1.7.10/conf/
-# Select a username for testing your mod with breakpoints. You may leave this empty for a random username each time you
-# restart Minecraft in development. Choose this dependent on your mod:
-# Do you need consistent player progressing (for example Thaumcraft)? -> Select a name
-# Do you need to test how your custom blocks interacts with a player that is not the owner? -> leave name empty
+# Select a default username for testing your mod. You can always override this per-run by running
+# `./gradlew runClient --username=AnotherPlayer`, or configuring this command in your IDE.
developmentEnvironmentUserName = SilverMoon
-# Enables using modern java syntax (up to version 17) via Jabel, while still targetting JVM 8.
+# Enables using modern Java syntax (up to version 17) via Jabel, while still targeting JVM 8.
# See https://github.com/bsideup/jabel for details on how this works.
enableModernJavaSyntax = true
-# Enables injecting missing generics into the decompiled source code for a better coding experience
-# Turns most publically visible List, Map, etc. into proper List, Map types
+# Enables injecting missing generics into the decompiled source code for a better coding experience.
+# Turns most publicly visible List, Map, etc. into proper List, Map types.
enableGenericInjection = false
-# Generate a class with String fields for the mod id, name, version and group name named with the fields below
+# Generate a class with a String field for the mod version named as defined below.
+# If generateGradleTokenClass is empty or not missing, no such class will be generated.
+# If gradleTokenVersion is empty or missing, the field will not be present in the class.
generateGradleTokenClass = com.silvermoon.boxplusplus.Tags
+
+# Name of the token containing the project's current version to generate/replace.
+gradleTokenVersion = VERSION
+
+# [DEPRECATED] Mod ID replacement token.
gradleTokenModId = MODID
+
+# [DEPRECATED] Mod name replacement token.
gradleTokenModName = MODNAME
-gradleTokenVersion = VERSION
+
+# [DEPRECATED] Mod Group replacement token.
gradleTokenGroupName = GROUPNAME
+
# [DEPRECATED]
-# Multiple source files can be defined here by providing a comma-seperated list: Class1.java,Class2.java,Class3.java
+# Multiple source files can be defined here by providing a comma-separated list: Class1.java,Class2.java,Class3.java
# public static final String VERSION = "GRADLETOKEN_VERSION";
# The string's content will be replaced with your mod's version when compiled. You should use this to specify your mod's
-# version in @Mod([...], version = VERSION, [...])
-# Leave these properties empty to skip individual token replacements
+# version in @Mod([...], version = VERSION, [...]).
+# Leave these properties empty to skip individual token replacements.
replaceGradleTokenInFile =
# In case your mod provides an API for other mods to implement you may declare its package here. Otherwise, you can
# leave this property empty.
-# Example value: apiPackage = api + modGroup = com.myname.mymodid -> com.myname.mymodid.api
+# Example value: (apiPackage = api) + (modGroup = com.myname.mymodid) -> com.myname.mymodid.api
apiPackage =
# Specify the configuration file for Forge's access transformers here. It must be placed into /src/main/resources/META-INF/
-# There can be multiple files in a comma-separated list.
-# Example value: mymodid_at.cfg,nei_at.cfg
+# There can be multiple files in a space-separated list.
+# Example value: mymodid_at.cfg nei_at.cfg
accessTransformersFile =
# Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled!
usesMixins = false
-# Adds some debug arguments like verbose output and export
+
+# Set to a non-empty string to configure mixins in a separate source set under src/VALUE, instead of src/main.
+# This can speed up compile times thanks to not running the mixin annotation processor on all input sources.
+# Mixin classes will have access to "main" classes, but not the other way around.
+separateMixinSourceSet =
+
+# Adds some debug arguments like verbose output and class export.
usesMixinDebug = false
+
# Specify the location of your implementation of IMixinConfigPlugin. Leave it empty otherwise.
mixinPlugin =
+
# Specify the package that contains all of your Mixins. You may only place Mixins in this package or the build will fail!
mixinsPackage =
+
# Specify the core mod entry class if you use a core mod. This class must implement IFMLLoadingPlugin!
# This parameter is for legacy compatibility only
-# Example value: coreModClass = asm.FMLPlugin + modGroup = com.myname.mymodid -> com.myname.mymodid.asm.FMLPlugin
+# Example value: (coreModClass = asm.FMLPlugin) + (modGroup = com.myname.mymodid) -> com.myname.mymodid.asm.FMLPlugin
coreModClass =
+
# If your project is only a consolidation of mixins or a core mod and does NOT contain a 'normal' mod ( = some class
# that is annotated with @Mod) you want this to be true. When in doubt: leave it on false!
containsMixinsAndOrCoreModOnly = false
@@ -79,22 +111,38 @@ containsMixinsAndOrCoreModOnly = false
# Enables Mixins even if this mod doesn't use them, useful if one of the dependencies uses mixins.
forceEnableMixins = false
-# If enabled, you may use 'shadowCompile' for dependencies. They will be integrated in your jar. It is your
-# responsibility check the licence and request permission for distribution, if required.
+# If enabled, you may use 'shadowCompile' for dependencies. They will be integrated into your jar. It is your
+# responsibility to check the license and request permission for distribution if required.
usesShadowedDependencies = false
-# If disabled, won't remove unused classes from shaded dependencies. Some libraries use reflection to access
+
+# If disabled, won't remove unused classes from shadowed dependencies. Some libraries use reflection to access
# their own classes, making the minimization unreliable.
minimizeShadowedDependencies = true
+
# If disabled, won't rename the shadowed classes.
relocateShadowedDependencies = true
-# Adds the GTNH maven, CurseMaven, IC2/Player maven, and some more well-known 1.7.10 repositories
+# Adds CurseMaven, Modrinth, and some more well-known 1.7.10 repositories.
includeWellKnownRepositories = true
-# Publishing to modrinth requires you to set the MODRINTH_TOKEN environment variable to your current modrinth API token.
+# A list of repositories to exclude from the includeWellKnownRepositories setting. Should be a space separated
+# list of strings, with the acceptable keys being(case does not matter):
+# cursemaven
+# modrinth
+excludeWellKnownRepositories =
+
+# Change these to your Maven coordinates if you want to publish to a custom Maven repository instead of the default GTNH Maven.
+# Authenticate with the MAVEN_USER and MAVEN_PASSWORD environment variables.
+# If you need a more complex setup disable maven publishing here and add a publishing repository to addon.gradle.
+usesMavenPublishing = true
+
+# Maven repository to publish the mod to.
+# mavenPublishUrl = https\://nexus.gtnewhorizons.com/repository/releases/
+# Publishing to Modrinth requires you to set the MODRINTH_TOKEN environment variable to your current Modrinth API token.
+#
# The project's ID on Modrinth. Can be either the slug or the ID.
-# Leave this empty if you don't want to publish on Modrinth.
+# Leave this empty if you don't want to publish to Modrinth.
modrinthProjectId =
# The project's relations on Modrinth. You can use this to refer to other projects on Modrinth.
@@ -106,9 +154,8 @@ modrinthProjectId =
# Note: GTNH Mixins is automatically set as a required dependency if usesMixins = true
modrinthRelations =
-
# Publishing to CurseForge requires you to set the CURSEFORGE_TOKEN environment variable to one of your CurseForge API tokens.
-
+#
# The project's numeric ID on CurseForge. You can find this in the About Project box.
# Leave this empty if you don't want to publish on CurseForge.
curseForgeProjectId =
@@ -118,25 +165,40 @@ curseForgeProjectId =
# Where type can be one of [requiredDependency, embeddedLibrary, optionalDependency, tool, incompatible],
# and the name is the CurseForge project slug of the other mod.
# Example: requiredDependency:railcraft;embeddedLibrary:cofhlib;incompatible:buildcraft
-# Note: GTNH Mixins is automatically set as a required dependency if usesMixins = true
+# Note: UniMixins is automatically set as a required dependency if usesMixins = true.
curseForgeRelations =
-
-# Optional parameter to customize the produced artifacts. Use this to preserver artifact naming when migrating older
+# Optional parameter to customize the produced artifacts. Use this to preserve artifact naming when migrating older
# projects. New projects should not use this parameter.
# customArchiveBaseName =
-# Optional parameter to prevent the source code from being published
-# noPublishedSources =
-# Uncomment this to disable spotless checks
-# disableSpotless=true
+
+# Optional parameter to have the build automatically fail if an illegal version is used.
+# This can be useful if you e.g. only want to allow versions in the form of '1.1.xxx'.
+# The check is ONLY performed if the version is a git tag.
+# Note: the specified string must be escaped, so e.g. 1\\.1\\.\\d+ instead of 1\.1\.\d+
+# versionPattern =
+
+# Uncomment to prevent the source code from being published.
+# noPublishedSources = true
+
+# Uncomment this to disable Spotless checks.
# This should only be uncommented to keep it easier to sync with upstream/other forks.
# That is, if there is no other active fork/upstream, NEVER change this.
-disableCheckstyle=true
-# Override the IDEA build type. Valid value is "" (leave blank, do not override), "idea" (force use native IDEA build), "gradle"
+# disableSpotless = true
+
+# Uncomment this to disable Checkstyle checks (currently wildcard import check).
+disableCheckstyle = true
+
+# Override the IDEA build type. Valid values are: "" (leave blank, do not override), "idea" (force use native IDEA build), "gradle"
# (force use delegated build).
# This is meant to be set in $HOME/.gradle/gradle.properties.
-# e.g. add "systemProp.org.gradle.project.ideaOverrideBuildType=idea" will override the build type to be always native build.
+# e.g. add "systemProp.org.gradle.project.ideaOverrideBuildType=idea" will override the build type to be native build.
# WARNING: If you do use this option, it will overwrite whatever you have in your existing projects. This might not be what you want!
# Usually there is no need to uncomment this here as other developers do not necessarily use the same build type as you.
# ideaOverrideBuildType = idea
+# Whether IDEA should run spotless checks when pressing the Build button.
+# This is meant to be set in $HOME/.gradle/gradle.properties.
+# ideaCheckSpotlessOnBuild = true
+
+
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
index c1962a79e29d3e0ab67b14947c167a862655af9b..d64cd4917707c1f8861d8cb53dd15194d4248596 100644
GIT binary patch
literal 43462
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