aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/ggfab/GigaGramFab.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/ggfab/GigaGramFab.java')
-rw-r--r--src/main/java/ggfab/GigaGramFab.java65
1 files changed, 31 insertions, 34 deletions
diff --git a/src/main/java/ggfab/GigaGramFab.java b/src/main/java/ggfab/GigaGramFab.java
index 8fc8ef26a9..b13b789f40 100644
--- a/src/main/java/ggfab/GigaGramFab.java
+++ b/src/main/java/ggfab/GigaGramFab.java
@@ -2,7 +2,7 @@ package ggfab;
import static gregtech.api.enums.ToolDictNames.*;
import static gregtech.common.items.IDMetaTool01.*;
-import static gregtech.common.items.MetaGeneratedTool01.*;
+import static gregtech.common.items.MetaGeneratedTool01.INSTANCE;
import net.minecraft.item.ItemStack;
@@ -140,46 +140,43 @@ public class GigaGramFab {
private void initDumbItem1() {
GGMetaItemDumbItems i1 = new GGMetaItemDumbItems("ggfab.d1");
int id = 0;
- {
- int idShape = 30;
- final int budget = idShape;
- String prefix = "One_Use_craftingTool";
- String prefix2 = "Shape_One_Use_craftingTool";
- for (GGItemList i : GGItemList.values()) {
- ItemStack stack = null;
- if (i.name()
- .startsWith(prefix)) {
+ int idShape = 30;
+ final int budget = idShape;
+ String prefix = "One_Use_craftingTool";
+ String prefix2 = "Shape_One_Use_craftingTool";
+ for (GGItemList i : GGItemList.values()) {
+ ItemStack stack = null;
+ if (i.name()
+ .startsWith(prefix)) {
+ stack = i1.addItem(
+ id++,
+ "Single Use " + GGUtils.processSentence(
+ i.name()
+ .substring(prefix.length()),
+ ' ',
+ true,
+ true),
+ null,
+ i,
+ i.name()
+ .substring("One_Use_".length()));
+ } else if (i.name()
+ .startsWith(prefix2)) {
stack = i1.addItem(
- id++,
- "Single Use " + GGUtils.processSentence(
+ idShape++,
+ "Tool Casting Mold (" + GGUtils.processSentence(
i.name()
- .substring(prefix.length()),
+ .substring(prefix2.length()),
' ',
true,
- true),
+ true) + ")",
null,
- i,
- i.name()
- .substring("One_Use_".length()));
- } else if (i.name()
- .startsWith(prefix2)) {
- stack = i1.addItem(
- idShape++,
- "Tool Casting Mold (" + GGUtils.processSentence(
- i.name()
- .substring(prefix2.length()),
- ' ',
- true,
- true) + ")",
- null,
- i);
- }
- if (stack != null) {
- i.set(stack);
+ i);
}
+ if (stack != null) {
+ i.set(stack);
}
- if (id >= budget || idShape >= 2 * budget || idShape - id != budget) throw new AssertionError();
- id = budget * 2;
}
+ if (id >= budget || idShape >= 2 * budget || idShape - id != budget) throw new AssertionError();
}
}