mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-26 06:43:01 +00:00
Refractored Code
+added Solar Factory -removed unnessecary solar and essentia generator classes +started gtnh researches +added tooltip clearance on solars (maximal output) Signed-off-by: bartimaeusnek <[email protected]>
This commit is contained in:
1 parent
980df8516a
commit
0fecf28b65
397 files changed
+8693
-9288
No files matched your search
@@ -11,58 +11,58 @@ import thaumcraft.api.research.ResearchPage.PageType;
|
||||
|
||||
public class EMTResearchItem extends ResearchItem {
|
||||
|
||||
public EMTResearchItem(String par1, String par2) {
|
||||
super(par1, "EMT");
|
||||
}
|
||||
public EMTResearchItem(String par1, String par2) {
|
||||
super(par1, "EMT");
|
||||
}
|
||||
|
||||
public EMTResearchItem(String researchName, AspectList tags, int x, int y, int z, ItemStack icon) {
|
||||
super(researchName, "EMT", tags, x, y, z, icon);
|
||||
}
|
||||
|
||||
public EMTResearchItem(String researchName, int x, int y, int z, ItemStack icon) {
|
||||
super(researchName, "EMT", new AspectList(), x, y, z, icon);
|
||||
}
|
||||
public EMTResearchItem(String researchName, AspectList tags, int x, int y, int z, ItemStack icon) {
|
||||
super(researchName, "EMT", tags, x, y, z, icon);
|
||||
}
|
||||
|
||||
public EMTResearchItem(String researchName, AspectList tags, int x, int y, int z, ResourceLocation icon) {
|
||||
super(researchName, "EMT", tags, x, y, z, icon);
|
||||
}
|
||||
|
||||
public EMTResearchItem(String researchName, int x, int y, int z, ResourceLocation icon) {
|
||||
super(researchName, "EMT", new AspectList(), x, y, z, icon);
|
||||
}
|
||||
public EMTResearchItem(String researchName, int x, int y, int z, ItemStack icon) {
|
||||
super(researchName, "EMT", new AspectList(), x, y, z, icon);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public String getName() {
|
||||
return EMTTextHelper.localize("emt.rsname." + key);
|
||||
}
|
||||
public EMTResearchItem(String researchName, AspectList tags, int x, int y, int z, ResourceLocation icon) {
|
||||
super(researchName, "EMT", tags, x, y, z, icon);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public String getText() {
|
||||
return "[EMT] " + EMTTextHelper.localize("emt.tag." + key);
|
||||
}
|
||||
public EMTResearchItem(String researchName, int x, int y, int z, ResourceLocation icon) {
|
||||
super(researchName, "EMT", new AspectList(), x, y, z, icon);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResearchItem setPages(ResearchPage... pages) {
|
||||
for (ResearchPage page : pages) {
|
||||
|
||||
if (page.type == PageType.TEXT)
|
||||
page.text = "emt.text." + key + (page.text.equals("") ? "" : "." + page.text);
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public String getName() {
|
||||
return EMTTextHelper.localize("emt.rsname." + key);
|
||||
}
|
||||
|
||||
if (page.type == PageType.INFUSION_CRAFTING) {
|
||||
if (parentsHidden == null || parentsHidden.length == 0)
|
||||
parentsHidden = new String[] { "INFUSION" };
|
||||
else {
|
||||
String[] newParents = new String[parentsHidden.length + 1];
|
||||
newParents[0] = "INFUSION";
|
||||
for (int i2 = 0; i2 < parentsHidden.length; i2++)
|
||||
newParents[i2 + 1] = parentsHidden[i2];
|
||||
parentsHidden = newParents;
|
||||
}
|
||||
}
|
||||
}
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public String getText() {
|
||||
return "[EMT] " + EMTTextHelper.localize("emt.tag." + key);
|
||||
}
|
||||
|
||||
return super.setPages(pages);
|
||||
}
|
||||
@Override
|
||||
public ResearchItem setPages(ResearchPage... pages) {
|
||||
for (ResearchPage page : pages) {
|
||||
|
||||
if (page.type == PageType.TEXT)
|
||||
page.text = "emt.text." + key + (page.text.equals("") ? "" : "." + page.text);
|
||||
|
||||
if (page.type == PageType.INFUSION_CRAFTING) {
|
||||
if (parentsHidden == null || parentsHidden.length == 0)
|
||||
parentsHidden = new String[]{"INFUSION"};
|
||||
else {
|
||||
String[] newParents = new String[parentsHidden.length + 1];
|
||||
newParents[0] = "INFUSION";
|
||||
for (int i2 = 0; i2 < parentsHidden.length; i2++)
|
||||
newParents[i2 + 1] = parentsHidden[i2];
|
||||
parentsHidden = newParents;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return super.setPages(pages);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user