[ci skip] spotlessApply with the new settings

This commit is contained in:
Jason Mitchell committed 2023-01-28 18:41:54 -08:00
1 parent c312069d28
commit 6bdb2c0b96
100 files changed
+3171 -3401

No files matched your search

@@ -1,5 +1,9 @@
package emt.util;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.TickEvent;
import cpw.mods.fml.common.gameevent.TickEvent.ClientTickEvent;
@@ -11,11 +15,9 @@ import emt.network.PacketEMTKeys;
import ic2.core.IC2;
import ic2.core.audio.AudioSource;
import ic2.core.audio.PositionSpec;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
public class EMTClientEventHandler {
public AudioSource audio;
public Item lastItem;
@@ -31,21 +33,18 @@ public class EMTClientEventHandler {
if (e.side == Side.CLIENT) {
EntityPlayer player = Minecraft.getMinecraft().thePlayer;
Item curItem = player.inventory.getCurrentItem() == null
? null
Item curItem = player.inventory.getCurrentItem() == null ? null
: player.inventory.getCurrentItem().getItem();
if (curItem == EMTItems.diamondChainsaw
|| curItem == EMTItems.streamChainsaw
if (curItem == EMTItems.diamondChainsaw || curItem == EMTItems.streamChainsaw
|| curItem == EMTItems.thaumiumChainsaw) {
if (audio == null)
audio = IC2.audioManager.createSource(
player,
PositionSpec.Hand,
"Tools/Chainsaw/ChainsawIdle.ogg",
true,
false,
IC2.audioManager.getDefaultVolume());
if (audio == null) audio = IC2.audioManager.createSource(
player,
PositionSpec.Hand,
"Tools/Chainsaw/ChainsawIdle.ogg",
true,
false,
IC2.audioManager.getDefaultVolume());
if (audio != null) {
audio.updatePosition();
audio.play();
+176 -183
View File
@@ -1,13 +1,15 @@
package emt.util;
import emt.gthandler.common.loader.EMT_GT_Loader;
import gregtech.api.enums.GT_Values;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import net.minecraftforge.common.config.Configuration;
import emt.gthandler.common.loader.EMT_GT_Loader;
import gregtech.api.enums.GT_Values;
/**
* TODO: Need to rewrite...
**/
@@ -159,50 +161,48 @@ public class EMTConfigHandler {
config.addCustomCategoryComment(RANDOM, "Options that don't fit into the other categories.");
capesOn = config.get(
RANDOM,
"Enable capes",
true,
"This config option is to enable or disable capes for people who have them. "
+ "Seriously, you shouldn't touch that unless you have another cape and "
+ "it conflicts with it.")
RANDOM,
"Enable capes",
true,
"This config option is to enable or disable capes for people who have them. "
+ "Seriously, you shouldn't touch that unless you have another cape and "
+ "it conflicts with it.")
.getBoolean(capesOn);
toolsInBore = config.get(
RANDOM,
"Tools for Arcane Bore",
false,
"This will augment the durablilty of the tools, and will also decrease the EU cost to 1. "
+ "The tools should have the same number of uses than before.")
RANDOM,
"Tools for Arcane Bore",
false,
"This will augment the durablilty of the tools, and will also decrease the EU cost to 1. "
+ "The tools should have the same number of uses than before.")
.getBoolean(toolsInBore);
nightVisionOff = config.get(
RANDOM,
"Disable nightvision helmets",
false,
"This was added because of mods making you totally blind if using nightvision. For example, enable that when in the Deep Dark.")
RANDOM,
"Disable nightvision helmets",
false,
"This was added because of mods making you totally blind if using nightvision. For example, enable that when in the Deep Dark.")
.getBoolean(nightVisionOff);
enchanting = config.get(RANDOM, "Enable enchanting tools", false, "Warning: the enchantability is low.")
.getBoolean(enchanting);
smoke = config.get(
RANDOM,
"Disable smoke effect for boots",
false,
"This effect only appears when the player isn't on the ground")
.getBoolean(smoke);
oneRingSpawn = config.get(
RANDOM, "Disable One Ring in dungeon chests", true, "There is a recipe to get this item.")
RANDOM,
"Disable smoke effect for boots",
false,
"This effect only appears when the player isn't on the ground").getBoolean(smoke);
oneRingSpawn = config
.get(RANDOM, "Disable One Ring in dungeon chests", true, "There is a recipe to get this item.")
.getBoolean(oneRingSpawn);
chanceTaintedMjolnir = config.get(
RANDOM,
"Tainted Mjolnir spawning change",
25,
"If you have a lot of mods adding dungeon loot, you should definetely increase this")
.getInt();
RANDOM,
"Tainted Mjolnir spawning change",
25,
"If you have a lot of mods adding dungeon loot, you should definetely increase this").getInt();
chanceOneRing = config.get(
RANDOM,
"One Ring spawning chance",
15,
"If you have a lot of mods adding dungeon loot, you should definetely increase this")
.getInt();
removeAmberAndCinnabarMacerating = config.get(
RANDOM,
"One Ring spawning chance",
15,
"If you have a lot of mods adding dungeon loot, you should definetely increase this").getInt();
removeAmberAndCinnabarMacerating = config
.get(
RANDOM,
"Clear Amber/Cinnabar Macerating",
true,
@@ -210,14 +210,15 @@ public class EMTConfigHandler {
.getBoolean(removeAmberAndCinnabarMacerating);
impactOfRain = config.get(RANDOM, "Impact of rain", true, "The impact of rain on all wings")
.getBoolean(impactOfRain);
etherealMaceratorWhiteList.addAll(Arrays.asList(config.get(
RANDOM,
"White List for Ethereal Processor",
new String[] {"ore", "cluster"},
"The allowed ore dictionary prefix for Ethereal Processor.")
.getStringList()));
etherealMaceratorWhiteList.addAll(
Arrays.asList(
config.get(
RANDOM,
"White List for Ethereal Processor",
new String[] { "ore", "cluster" },
"The allowed ore dictionary prefix for Ethereal Processor.").getStringList()));
// DEFAULTS - Aer - 15,000 Aqua - 5,000 Ignis - 20,000 Ordo - 16,000 Perditio - 10,000 Terra - 2,000
// DEFAULTS - Aer - 15,000 Aqua - 5,000 Ignis - 20,000 Ordo - 16,000 Perditio - 10,000 Terra - 2,000
airOutput = config.get(OUTPUTS, "Aer Output", 15000).getDouble(airOutput);
waterOutput = config.get(OUTPUTS, "Aqua Output", 5000).getDouble(waterOutput);
fireOutput = config.get(OUTPUTS, "Ignis Output", 20000).getDouble(fireOutput);
@@ -227,13 +228,14 @@ public class EMTConfigHandler {
outputCap = config.get(OUTPUTS, "Output Cap", -1).getDouble(outputCap);
EssentiaGeneratorStorage = config.get(
VALUES,
"Essentia Generator Storage",
1000000,
"This is the number you have to modify if you want to change the size of the "
+ "internal buffer of the Essentia Generator")
VALUES,
"Essentia Generator Storage",
1000000,
"This is the number you have to modify if you want to change the size of the "
+ "internal buffer of the Essentia Generator")
.getDouble(EssentiaGeneratorStorage);
EMT_GT_Loader.aIDoffset = config.get(
EMT_GT_Loader.aIDoffset = config
.get(
VALUES,
"aID offset for Gregetch Machinery",
(13000 - GT_Values.VN.length - 1),
@@ -241,7 +243,8 @@ public class EMTConfigHandler {
+ " IDs, do not change if you dont know what you are doing!")
.getInt(13000 - GT_Values.VN.length - 1);
wandChargerConsumption = config.get(
wandChargerConsumption = config
.get(
VALUES,
"Wand Charging Station Consumption",
50000,
@@ -249,121 +252,118 @@ public class EMTConfigHandler {
+ "Station use more or less EU to charge 1 unit of Vis on your wand.")
.getDouble(wandChargerConsumption);
compressedSolarOutput = config.get(
VALUES,
"Compressed Solar Panel Output",
10,
"This is the number you have to modify if you want to make the Compressed Solar Panel yield "
+ "more or less EU per tick. Really, you shouldn't touch that, "
+ "since it's pretty balanced as it is.")
VALUES,
"Compressed Solar Panel Output",
10,
"This is the number you have to modify if you want to make the Compressed Solar Panel yield "
+ "more or less EU per tick. Really, you shouldn't touch that, "
+ "since it's pretty balanced as it is.")
.getDouble(compressedSolarOutput);
doubleCompressedSolarOutput = config.get(
VALUES,
"Double Compressed Solar Panel Output",
100,
"This is the number you have to modify if you want to make the Double Compressed Solar Panel "
+ "yield more or less EU per tick. Really, you shouldn't touch that, "
+ "since it's pretty balanced as it is.")
VALUES,
"Double Compressed Solar Panel Output",
100,
"This is the number you have to modify if you want to make the Double Compressed Solar Panel "
+ "yield more or less EU per tick. Really, you shouldn't touch that, "
+ "since it's pretty balanced as it is.")
.getDouble(doubleCompressedSolarOutput);
tripleCompressedSolarOutput = config.get(
VALUES,
"Triple Compressed Solar Panel Output",
1000,
"This is the number you have to modify if you want to make the Triple Compressed Solar Panel "
+ "yield more or less EU per tick. Really, you shouldn't touch that, "
+ "since it's pretty balanced as it is.")
VALUES,
"Triple Compressed Solar Panel Output",
1000,
"This is the number you have to modify if you want to make the Triple Compressed Solar Panel "
+ "yield more or less EU per tick. Really, you shouldn't touch that, "
+ "since it's pretty balanced as it is.")
.getDouble(tripleCompressedSolarOutput);
quadrupleCompressedSolarOutput = config.get(
VALUES,
"Quadruple Compressed Solar Panel Output",
10000,
"This is the number you have to modify if you want to make the Quadruple Compressed Solar Panel "
+ "yield more or less EU per tick. Really, you shouldn't touch that, "
+ "since it's pretty balanced as it is.")
VALUES,
"Quadruple Compressed Solar Panel Output",
10000,
"This is the number you have to modify if you want to make the Quadruple Compressed Solar Panel "
+ "yield more or less EU per tick. Really, you shouldn't touch that, "
+ "since it's pretty balanced as it is.")
.getDouble(quadrupleCompressedSolarOutput);
quintupleCompressedSolarOutput = config.get(
VALUES,
"Quintouple Compressed Solar Panel Output",
100000,
"This is the number you have to modify if you want to make the Quintouple Compressed Solar Panel "
+ "yield more or less EU per tick. Really, you shouldn't touch that, "
+ "since it's pretty balanced as it is.")
VALUES,
"Quintouple Compressed Solar Panel Output",
100000,
"This is the number you have to modify if you want to make the Quintouple Compressed Solar Panel "
+ "yield more or less EU per tick. Really, you shouldn't touch that, "
+ "since it's pretty balanced as it is.")
.getDouble(quintupleCompressedSolarOutput);
sextupleCompressedSolarOutput = config.get(
VALUES,
"Sextouple Compressed Solar Panel Output",
1000000,
"This is the number you have to modify if you want to make the Sextouple Compressed Solar Panel "
+ "yield more or less EU per tick. Really, you shouldn't touch that, "
+ "since it's pretty balanced as it is.")
VALUES,
"Sextouple Compressed Solar Panel Output",
1000000,
"This is the number you have to modify if you want to make the Sextouple Compressed Solar Panel "
+ "yield more or less EU per tick. Really, you shouldn't touch that, "
+ "since it's pretty balanced as it is.")
.getDouble(sextupleCompressedSolarOutput);
septupleCompressedSolarOutput = config.get(
VALUES,
"Septouple Compressed Solar Panel Output",
10000000,
"This is the number you have to modify if you want to make the Septouple Compressed Solar Panel "
+ "yield more or less EU per tick. Really, you shouldn't touch that, "
+ "since it's pretty balanced as it is.")
VALUES,
"Septouple Compressed Solar Panel Output",
10000000,
"This is the number you have to modify if you want to make the Septouple Compressed Solar Panel "
+ "yield more or less EU per tick. Really, you shouldn't touch that, "
+ "since it's pretty balanced as it is.")
.getDouble(septupleCompressedSolarOutput);
octupleCompressedSolarOutput = config.get(
VALUES,
"Octtouple Compressed Solar Panel Output",
100000000,
"This is the number you have to modify if you want to make the Octtouple Compressed Solar Panel "
+ "yield more or less EU per tick. Really, you shouldn't touch that, "
+ "since it's pretty balanced as it is.")
VALUES,
"Octtouple Compressed Solar Panel Output",
100000000,
"This is the number you have to modify if you want to make the Octtouple Compressed Solar Panel "
+ "yield more or less EU per tick. Really, you shouldn't touch that, "
+ "since it's pretty balanced as it is.")
.getDouble(octupleCompressedSolarOutput);
nanoBootsSpeed = config.get(
VALUES, "Nano Boots of the Traveller Speed", 0.25, "Watch out, that goes up REALLY quickly.")
nanoBootsSpeed = config
.get(VALUES, "Nano Boots of the Traveller Speed", 0.25, "Watch out, that goes up REALLY quickly.")
.getDouble(nanoBootsSpeed);
quantumBootsSpeed = config.get(
VALUES, "Quantum Boots of the Traveller Speed", 0.5, "Watch out, that goes up REALLY quickly.")
quantumBootsSpeed = config
.get(VALUES, "Quantum Boots of the Traveller Speed", 0.5, "Watch out, that goes up REALLY quickly.")
.getDouble(quantumBootsSpeed);
nanoBootsJump = config.get(
VALUES, "Nano Boots of the Traveller jump", 0.6, "Watch out, that goes up REALLY quickly.")
nanoBootsJump = config
.get(VALUES, "Nano Boots of the Traveller jump", 0.6, "Watch out, that goes up REALLY quickly.")
.getDouble(nanoBootsJump);
quantumBootsJump = config.get(
VALUES, "Quantum Boots of the Traveller jump", 0.9, "Watch out, that goes up REALLY quickly.")
quantumBootsJump = config
.get(VALUES, "Quantum Boots of the Traveller jump", 0.9, "Watch out, that goes up REALLY quickly.")
.getDouble(nanoBootsJump);
etherealProcessorBaseSpeed = config.get(
VALUES, "Etheral Processor speed", 400, "Default is 400, the double of a regular furnace")
etherealProcessorBaseSpeed = config
.get(VALUES, "Etheral Processor speed", 400, "Default is 400, the double of a regular furnace")
.getInt();
etherealProcessorBonus = config.get(
VALUES,
"Ethereal Processor Bonus",
10,
"This number is the chance of getting a Thaumium Ingot as a bonus when "
+ "processing an item in the machine. It is 1 out of the number you will enter. "
+ "The default is 1/10 chance.")
.getInt();
chargeFocusProduction = config.get(VALUES, "Wand Focus: Charge production", 64, "Default is 64")
.getInt();
armorBaubleProduction = config.get(VALUES, "Armor Charging Ring production", 32, "Default is 32")
VALUES,
"Ethereal Processor Bonus",
10,
"This number is the chance of getting a Thaumium Ingot as a bonus when "
+ "processing an item in the machine. It is 1 out of the number you will enter. "
+ "The default is 1/10 chance.")
.getInt();
chargeFocusProduction = config.get(VALUES, "Wand Focus: Charge production", 64, "Default is 64").getInt();
armorBaubleProduction = config.get(VALUES, "Armor Charging Ring production", 32, "Default is 32").getInt();
inventoryBaubleProdution = config.get(VALUES, "Inventory Charging Ring production", 32, "Default is 32")
.getInt();
wandChargeFocusCost = config.get(VALUES, "Wand Focus: Wand Charging Cost", 40000, "Default is 40000")
.getInt();
wandChargeFocusCost = config.get(VALUES, "Wand Focus: Wand Charging Cost", 40000, "Default is 40000").getInt();
nanoBootsMinDrop = config.get(
VALUES,
"Nano Boots of the Traveller minimum drop",
6.0,
"The distance allowed to fall without any damage")
.getDouble(nanoBootsMinDrop);
nanoBootsMaxDrop = config.get(
VALUES,
"Nano Boots of the Traveller minimum drop",
6.0,
"The distance allowed to fall without any damage").getDouble(nanoBootsMinDrop);
nanoBootsMaxDrop = config
.get(
VALUES,
"Nano Boots of the Traveller maximum healthy drop",
35.0,
"Energy amount drained will tripled if player drops more than this amount of blocks")
.getDouble(nanoBootsMaxDrop);
quantumBootsMinDrop = config.get(
VALUES,
"Quantum Boots of the Traveller minimum drop",
10.0,
"The distance allowed to fall without any damage")
.getDouble(quantumBootsMinDrop);
quantumBootsMaxDrop = config.get(
VALUES,
"Quantum Boots of the Traveller minimum drop",
10.0,
"The distance allowed to fall without any damage").getDouble(quantumBootsMinDrop);
quantumBootsMaxDrop = config
.get(
VALUES,
"Quantum Boots of the Traveller maximum healthy drop",
100.0,
@@ -371,56 +371,50 @@ public class EMTConfigHandler {
.getDouble(quantumBootsMaxDrop);
thaumiumDrillResearch = config.get(RESEARCH, "Thaumium Drill", false).getBoolean(thaumiumDrillResearch);
thaumiumChainsawResearch =
config.get(RESEARCH, "Thaumium Chainsaw", false).getBoolean(thaumiumChainsawResearch);
thaumiumChainsawResearch = config.get(RESEARCH, "Thaumium Chainsaw", false)
.getBoolean(thaumiumChainsawResearch);
thaumiumDrillResearch = config.get(RESEARCH, "Thaumium Omnitool", false).getBoolean(thaumiumOmnitoolResearch);
rockbreakerDrillResearch =
config.get(RESEARCH, "Drill of the Rockbreaker", false).getBoolean(rockbreakerDrillResearch);
streamChainsawResearch =
config.get(RESEARCH, "Chainsaw of the Stream", false).getBoolean(streamChainsawResearch);
electricGooglesResearch =
config.get(RESEARCH, "Electric Googles of Revealing", false).getBoolean(electricGooglesResearch);
nanoGooglesResearch =
config.get(RESEARCH, "Nanosuit Googles of Revealing", false).getBoolean(nanoGooglesResearch);
quantumGooglesResearch =
config.get(RESEARCH, "Quantum Googles of Revealing", false).getBoolean(quantumGooglesResearch);
rockbreakerDrillResearch = config.get(RESEARCH, "Drill of the Rockbreaker", false)
.getBoolean(rockbreakerDrillResearch);
streamChainsawResearch = config.get(RESEARCH, "Chainsaw of the Stream", false)
.getBoolean(streamChainsawResearch);
electricGooglesResearch = config.get(RESEARCH, "Electric Googles of Revealing", false)
.getBoolean(electricGooglesResearch);
nanoGooglesResearch = config.get(RESEARCH, "Nanosuit Googles of Revealing", false)
.getBoolean(nanoGooglesResearch);
quantumGooglesResearch = config.get(RESEARCH, "Quantum Googles of Revealing", false)
.getBoolean(quantumGooglesResearch);
ironOmnitoolResearch = config.get(RESEARCH, "Omnitool", false).getBoolean(ironOmnitoolResearch);
diamondOmnitoolResearch =
config.get(RESEARCH, "Diamond Omnitool", false).getBoolean(diamondOmnitoolResearch);
diamondOmnitoolResearch = config.get(RESEARCH, "Diamond Omnitool", false).getBoolean(diamondOmnitoolResearch);
explosionFocusResearch = config.get(RESEARCH, "Explosion Focus", false).getBoolean(explosionFocusResearch);
christmasFocusResearch = config.get(RESEARCH, "Kris-tmas Focus", false).getBoolean(christmasFocusResearch);
energyBallFocusResearch =
config.get(RESEARCH, "EnergyBall Focus", false).getBoolean(christmasFocusResearch);
energyBallFocusResearch = config.get(RESEARCH, "EnergyBall Focus", false).getBoolean(christmasFocusResearch);
shieldFocusResearch = config.get(RESEARCH, "Shield Focus", false).getBoolean(shieldFocusResearch);
shieldBlockResearch = config.get(RESEARCH, "Shield Block", false).getBoolean(shieldBlockResearch);
potentiaGeneratorResearch =
config.get(RESEARCH, "Potentia Generator", false).getBoolean(potentiaGeneratorResearch);
potentiaGeneratorResearch = config.get(RESEARCH, "Potentia Generator", false)
.getBoolean(potentiaGeneratorResearch);
ignisGeneratorResearch = config.get(RESEARCH, "Ignis Generator", false).getBoolean(ignisGeneratorResearch);
auramGeneratorResearch = config.get(RESEARCH, "Auram Generator", false).getBoolean(auramGeneratorResearch);
arborGeneratorResearch = config.get(RESEARCH, "Arbor Generator", false).getBoolean(arborGeneratorResearch);
lucrumGeneratorResearch =
config.get(RESEARCH, "Lucrum Generator", false).getBoolean(lucrumGeneratorResearch);
wandChargingSationResearch =
config.get(RESEARCH, "Industrial Wand Charging Station", false).getBoolean(wandChargingSationResearch);
tinyUraniumResearch =
config.get(RESEARCH, "Tiny Piles of Uranium", false).getBoolean(tinyUraniumResearch);
lucrumGeneratorResearch = config.get(RESEARCH, "Lucrum Generator", false).getBoolean(lucrumGeneratorResearch);
wandChargingSationResearch = config.get(RESEARCH, "Industrial Wand Charging Station", false)
.getBoolean(wandChargingSationResearch);
tinyUraniumResearch = config.get(RESEARCH, "Tiny Piles of Uranium", false).getBoolean(tinyUraniumResearch);
thorHammerResearch = config.get(RESEARCH, "Mjolnir", false).getBoolean(thorHammerResearch);
superchargedThorHammerResearch =
config.get(RESEARCH, "Supercharged Mjolnir", false).getBoolean(superchargedThorHammerResearch);
compressedSolarsResearch =
config.get(RESEARCH, "Compressed Solars", false).getBoolean(compressedSolarsResearch);
solarHelmetResearch =
config.get(RESEARCH, "Solar Helmet of Revealing", false).getBoolean(solarHelmetResearch);
electricBootsResearch =
config.get(RESEARCH, "Electric Boots of the Traveller", false).getBoolean(electricBootsResearch);
nanoBootsResearch =
config.get(RESEARCH, "Nano Boots of the Traveller", false).getBoolean(nanoBootsResearch);
quantumBootsResearch =
config.get(RESEARCH, "Quantum Boots of the Traveller", false).getBoolean(quantumBootsResearch);
electricScribingToolsResearch =
config.get(RESEARCH, "Electric Scribing Tools", false).getBoolean(electricScribingToolsResearch);
etherealProcessorResearch =
config.get(RESEARCH, "Ethereal Processor", false).getBoolean(etherealProcessorResearch);
superchargedThorHammerResearch = config.get(RESEARCH, "Supercharged Mjolnir", false)
.getBoolean(superchargedThorHammerResearch);
compressedSolarsResearch = config.get(RESEARCH, "Compressed Solars", false)
.getBoolean(compressedSolarsResearch);
solarHelmetResearch = config.get(RESEARCH, "Solar Helmet of Revealing", false).getBoolean(solarHelmetResearch);
electricBootsResearch = config.get(RESEARCH, "Electric Boots of the Traveller", false)
.getBoolean(electricBootsResearch);
nanoBootsResearch = config.get(RESEARCH, "Nano Boots of the Traveller", false).getBoolean(nanoBootsResearch);
quantumBootsResearch = config.get(RESEARCH, "Quantum Boots of the Traveller", false)
.getBoolean(quantumBootsResearch);
electricScribingToolsResearch = config.get(RESEARCH, "Electric Scribing Tools", false)
.getBoolean(electricScribingToolsResearch);
etherealProcessorResearch = config.get(RESEARCH, "Ethereal Processor", false)
.getBoolean(etherealProcessorResearch);
waterSolarsResearch = config.get(RESEARCH, "Water Solar Panels", false).getBoolean(waterSolarsResearch);
darkSolarsResearch = config.get(RESEARCH, "Entropy Solar Panels", false).getBoolean(darkSolarsResearch);
orderSolarsResearch = config.get(RESEARCH, "Order Solar Panels", false).getBoolean(orderSolarsResearch);
@@ -430,21 +424,20 @@ public class EMTConfigHandler {
saxumGenResearch = config.get(RESEARCH, "Saxum Generator", false).getBoolean(saxumGenResearch);
uuMInfusionResearch = config.get(RESEARCH, "UU-Mater Infusion", false).getBoolean(uuMInfusionResearch);
portableNodeResarch = config.get(RESEARCH, "Portable Node", false).getBoolean(portableNodeResarch);
electricHoeGrowthResearch =
config.get(RESEARCH, "Electric Hoe of Growth", false).getBoolean(electricHoeGrowthResearch);
chargeFocusResearch =
config.get(RESEARCH, "Wand Focus: Charging", false).getBoolean(chargeFocusResearch);
wandChargeFocusResearch =
config.get(RESEARCH, "Wand Focus: Wand Charging", false).getBoolean(wandChargeFocusResearch);
inventoryChargingRing =
config.get(RESEARCH, "Inventory Charging Ring", false).getBoolean(inventoryChargingRing);
electricHoeGrowthResearch = config.get(RESEARCH, "Electric Hoe of Growth", false)
.getBoolean(electricHoeGrowthResearch);
chargeFocusResearch = config.get(RESEARCH, "Wand Focus: Charging", false).getBoolean(chargeFocusResearch);
wandChargeFocusResearch = config.get(RESEARCH, "Wand Focus: Wand Charging", false)
.getBoolean(wandChargeFocusResearch);
inventoryChargingRing = config.get(RESEARCH, "Inventory Charging Ring", false)
.getBoolean(inventoryChargingRing);
armorChargingRing = config.get(RESEARCH, "Armor Charging Ring", false).getBoolean(armorChargingRing);
thaumiumWingResearch =
config.get(RESEARCH, "Thaumium Reinforced Wings", false).getBoolean(thaumiumWingResearch);
thaumiumWingResearch = config.get(RESEARCH, "Thaumium Reinforced Wings", false)
.getBoolean(thaumiumWingResearch);
nanoWingResearch = config.get(RESEARCH, "Nanosuit Wings", false).getBoolean(nanoWingResearch);
quantumWingsResearch = config.get(RESEARCH, "Quantum Wings", false).getBoolean(quantumWingsResearch);
infusedQuantumChestplate =
config.get(RESEARCH, "Infused Quantum Chestplate", false).getBoolean(infusedQuantumChestplate);
infusedQuantumChestplate = config.get(RESEARCH, "Infused Quantum Chestplate", false)
.getBoolean(infusedQuantumChestplate);
aerGeneratorResearch = config.get(RESEARCH, "Aer Generator", false).getBoolean(aerGeneratorResearch);
if (config.hasChanged()) {
+93 -172
View File
@@ -5,178 +5,99 @@ import thaumcraft.api.aspects.AspectList;
public class EMTCraftingAspects {
public static AspectList thaumiumDrillCrafting =
new AspectList().add(Aspect.TOOL, 16).add(Aspect.MINE, 16).add(Aspect.ENERGY, 16);
public static AspectList thaumiumChainsawCrafting =
new AspectList().add(Aspect.TOOL, 16).add(Aspect.WEAPON, 16).add(Aspect.ENERGY, 16);
public static AspectList thaumicQuantumHelmetCrafting =
new AspectList().add(Aspect.ARMOR, 25).add(Aspect.SENSES, 25).add(Aspect.ENERGY, 25);
public static AspectList diamondOmnitoolCrafting =
new AspectList().add(Aspect.ORDER, 15).add(Aspect.AIR, 15);
public static AspectList thaumiumOmnitoolCrafting = new AspectList()
.add(Aspect.TOOL, 25)
.add(Aspect.MINE, 25)
.add(Aspect.ENERGY, 25)
.add(Aspect.WEAPON, 25);
public static AspectList thaumicNanoHelmetCrafting =
new AspectList().add(Aspect.ARMOR, 16).add(Aspect.SENSES, 16).add(Aspect.ENERGY, 16);
public static AspectList laserFocusCrafting = new AspectList()
.add(Aspect.FIRE, 30)
.add(Aspect.MOTION, 16)
.add(Aspect.WEAPON, 30)
.add(Aspect.DEATH, 16);
public static AspectList christmasFocusCrafting =
new AspectList().add(Aspect.ORDER, 20).add(Aspect.AIR, 20);
public static AspectList shieldFocusCrafting = new AspectList()
.add(Aspect.AIR, 16)
.add(Aspect.ARMOR, 20)
.add(Aspect.CRYSTAL, 16)
.add(Aspect.TRAP, 20)
.add(Aspect.LIFE, 16);
public static AspectList electricGogglesCrafting =
new AspectList().add(Aspect.AIR, 20).add(Aspect.ORDER, 20).add(Aspect.WATER, 20);
public static AspectList potentiaGeneratorCrafting = new AspectList()
.add(Aspect.ENERGY, 32)
.add(Aspect.MAGIC, 32)
.add(Aspect.METAL, 32)
.add(Aspect.EXCHANGE, 32);
public static AspectList ignisGeneratorCrafting =
new AspectList().add(Aspect.FIRE, 16).add(Aspect.EXCHANGE, 8);
public static AspectList auramGeneratorCrafting =
new AspectList().add(Aspect.AURA, 16).add(Aspect.EXCHANGE, 8);
public static AspectList arborGeneratorCrafting =
new AspectList().add(Aspect.TREE, 16).add(Aspect.EXCHANGE, 8);
public static AspectList streamChaisnawCrafting = new AspectList()
.add(Aspect.ENERGY, 48)
.add(Aspect.TREE, 48)
.add(Aspect.TOOL, 32)
.add(Aspect.WATER, 32);
public static AspectList rockbreakerDrillCrafting =
new AspectList().add(Aspect.TOOL, 32).add(Aspect.ENERGY, 48).add(Aspect.MINE, 32);
public static AspectList shieldBlockCrafting =
new AspectList().add(Aspect.ORDER, 1).add(Aspect.ENTROPY, 1);
public static AspectList tinyUraniumCrafting = new AspectList()
.add(Aspect.FIRE, 1)
.add(Aspect.WATER, 1)
.add(Aspect.AIR, 1)
.add(Aspect.EARTH, 1)
.add(Aspect.ORDER, 1)
.add(Aspect.ENTROPY, 1);
public static AspectList thorHammerCrafting =
new AspectList().add(Aspect.WEAPON, 48).add(Aspect.WEATHER, 48).add(Aspect.ELDRITCH, 32);
public static AspectList superchargedThorHammerCrafting =
new AspectList().add(Aspect.WEAPON, 48).add(Aspect.ENERGY, 64).add(Aspect.BEAST, 32);
public static AspectList wandCharger = new AspectList()
.add(Aspect.ENERGY, 48)
.add(Aspect.CRAFT, 48)
.add(Aspect.EXCHANGE, 48)
.add(Aspect.GREED, 64);
public static AspectList compressedSolars = new AspectList()
.add(Aspect.FIRE, 8)
.add(Aspect.WATER, 8)
.add(Aspect.AIR, 8)
.add(Aspect.EARTH, 8)
.add(Aspect.ORDER, 8)
.add(Aspect.ENTROPY, 8);
public static AspectList solarHelmetRevealing =
new AspectList().add(Aspect.ENERGY, 32).add(Aspect.AIR, 32).add(Aspect.LIGHT, 25);
public static AspectList electricBootsTravel =
new AspectList().add(Aspect.ENERGY, 16).add(Aspect.ARMOR, 32).add(Aspect.MOTION, 32);
public static AspectList nanoBootsTravel =
new AspectList().add(Aspect.ENERGY, 25).add(Aspect.ARMOR, 32).add(Aspect.MOTION, 48);
public static AspectList quantumBootsTravel =
new AspectList().add(Aspect.ENERGY, 32).add(Aspect.ARMOR, 32).add(Aspect.MOTION, 64);
public static AspectList electricScribingTools =
new AspectList().add(Aspect.AIR, 16).add(Aspect.ORDER, 16).add(Aspect.ENTROPY, 16);
public static AspectList etherealProcessor =
new AspectList().add(Aspect.MECHANISM, 16).add(Aspect.MAGIC, 16).add(Aspect.CRAFT, 16);
public static AspectList waterSolars =
new AspectList().add(Aspect.WATER, 16).add(Aspect.MAGIC, 16).add(Aspect.EXCHANGE, 16);
public static AspectList darkSolars =
new AspectList().add(Aspect.ENTROPY, 16).add(Aspect.MAGIC, 16).add(Aspect.EXCHANGE, 16);
public static AspectList orderSolars =
new AspectList().add(Aspect.ORDER, 16).add(Aspect.MAGIC, 16).add(Aspect.EXCHANGE, 16);
public static AspectList fireSolars =
new AspectList().add(Aspect.FIRE, 16).add(Aspect.MAGIC, 16).add(Aspect.EXCHANGE, 16);
public static AspectList airSolars =
new AspectList().add(Aspect.AIR, 16).add(Aspect.MAGIC, 16).add(Aspect.EXCHANGE, 16);
public static AspectList earthSolars =
new AspectList().add(Aspect.EARTH, 16).add(Aspect.MAGIC, 16).add(Aspect.EXCHANGE, 16);
public static AspectList uuMatterInfusions = new AspectList()
.add(Aspect.FIRE, 32)
.add(Aspect.WATER, 32)
.add(Aspect.AIR, 32)
.add(Aspect.EARTH, 32)
.add(Aspect.ORDER, 32)
.add(Aspect.ENTROPY, 32);
public static AspectList lesserUUMInfusions = new AspectList()
.add(Aspect.FIRE, 16)
.add(Aspect.WATER, 16)
.add(Aspect.AIR, 16)
.add(Aspect.EARTH, 16)
.add(Aspect.ORDER, 16)
public static AspectList thaumiumDrillCrafting = new AspectList().add(Aspect.TOOL, 16).add(Aspect.MINE, 16)
.add(Aspect.ENERGY, 16);
public static AspectList thaumiumChainsawCrafting = new AspectList().add(Aspect.TOOL, 16).add(Aspect.WEAPON, 16)
.add(Aspect.ENERGY, 16);
public static AspectList thaumicQuantumHelmetCrafting = new AspectList().add(Aspect.ARMOR, 25)
.add(Aspect.SENSES, 25).add(Aspect.ENERGY, 25);
public static AspectList diamondOmnitoolCrafting = new AspectList().add(Aspect.ORDER, 15).add(Aspect.AIR, 15);
public static AspectList thaumiumOmnitoolCrafting = new AspectList().add(Aspect.TOOL, 25).add(Aspect.MINE, 25)
.add(Aspect.ENERGY, 25).add(Aspect.WEAPON, 25);
public static AspectList thaumicNanoHelmetCrafting = new AspectList().add(Aspect.ARMOR, 16).add(Aspect.SENSES, 16)
.add(Aspect.ENERGY, 16);
public static AspectList laserFocusCrafting = new AspectList().add(Aspect.FIRE, 30).add(Aspect.MOTION, 16)
.add(Aspect.WEAPON, 30).add(Aspect.DEATH, 16);
public static AspectList christmasFocusCrafting = new AspectList().add(Aspect.ORDER, 20).add(Aspect.AIR, 20);
public static AspectList shieldFocusCrafting = new AspectList().add(Aspect.AIR, 16).add(Aspect.ARMOR, 20)
.add(Aspect.CRYSTAL, 16).add(Aspect.TRAP, 20).add(Aspect.LIFE, 16);
public static AspectList electricGogglesCrafting = new AspectList().add(Aspect.AIR, 20).add(Aspect.ORDER, 20)
.add(Aspect.WATER, 20);
public static AspectList potentiaGeneratorCrafting = new AspectList().add(Aspect.ENERGY, 32).add(Aspect.MAGIC, 32)
.add(Aspect.METAL, 32).add(Aspect.EXCHANGE, 32);
public static AspectList ignisGeneratorCrafting = new AspectList().add(Aspect.FIRE, 16).add(Aspect.EXCHANGE, 8);
public static AspectList auramGeneratorCrafting = new AspectList().add(Aspect.AURA, 16).add(Aspect.EXCHANGE, 8);
public static AspectList arborGeneratorCrafting = new AspectList().add(Aspect.TREE, 16).add(Aspect.EXCHANGE, 8);
public static AspectList streamChaisnawCrafting = new AspectList().add(Aspect.ENERGY, 48).add(Aspect.TREE, 48)
.add(Aspect.TOOL, 32).add(Aspect.WATER, 32);
public static AspectList rockbreakerDrillCrafting = new AspectList().add(Aspect.TOOL, 32).add(Aspect.ENERGY, 48)
.add(Aspect.MINE, 32);
public static AspectList shieldBlockCrafting = new AspectList().add(Aspect.ORDER, 1).add(Aspect.ENTROPY, 1);
public static AspectList tinyUraniumCrafting = new AspectList().add(Aspect.FIRE, 1).add(Aspect.WATER, 1)
.add(Aspect.AIR, 1).add(Aspect.EARTH, 1).add(Aspect.ORDER, 1).add(Aspect.ENTROPY, 1);
public static AspectList thorHammerCrafting = new AspectList().add(Aspect.WEAPON, 48).add(Aspect.WEATHER, 48)
.add(Aspect.ELDRITCH, 32);
public static AspectList superchargedThorHammerCrafting = new AspectList().add(Aspect.WEAPON, 48)
.add(Aspect.ENERGY, 64).add(Aspect.BEAST, 32);
public static AspectList wandCharger = new AspectList().add(Aspect.ENERGY, 48).add(Aspect.CRAFT, 48)
.add(Aspect.EXCHANGE, 48).add(Aspect.GREED, 64);
public static AspectList compressedSolars = new AspectList().add(Aspect.FIRE, 8).add(Aspect.WATER, 8)
.add(Aspect.AIR, 8).add(Aspect.EARTH, 8).add(Aspect.ORDER, 8).add(Aspect.ENTROPY, 8);
public static AspectList solarHelmetRevealing = new AspectList().add(Aspect.ENERGY, 32).add(Aspect.AIR, 32)
.add(Aspect.LIGHT, 25);
public static AspectList electricBootsTravel = new AspectList().add(Aspect.ENERGY, 16).add(Aspect.ARMOR, 32)
.add(Aspect.MOTION, 32);
public static AspectList nanoBootsTravel = new AspectList().add(Aspect.ENERGY, 25).add(Aspect.ARMOR, 32)
.add(Aspect.MOTION, 48);
public static AspectList quantumBootsTravel = new AspectList().add(Aspect.ENERGY, 32).add(Aspect.ARMOR, 32)
.add(Aspect.MOTION, 64);
public static AspectList electricScribingTools = new AspectList().add(Aspect.AIR, 16).add(Aspect.ORDER, 16)
.add(Aspect.ENTROPY, 16);
public static AspectList cheapUUMInfusions = new AspectList()
.add(Aspect.FIRE, 8)
.add(Aspect.WATER, 8)
.add(Aspect.AIR, 8)
.add(Aspect.EARTH, 8)
.add(Aspect.ORDER, 8)
.add(Aspect.ENTROPY, 8);
public static AspectList cheapestUUMInfusions = new AspectList()
.add(Aspect.FIRE, 4)
.add(Aspect.WATER, 4)
.add(Aspect.AIR, 4)
.add(Aspect.EARTH, 4)
.add(Aspect.ORDER, 4)
.add(Aspect.ENTROPY, 4);
public static AspectList portableNode =
new AspectList().add(Aspect.MAGIC, 32).add(Aspect.AURA, 32).add(Aspect.GREED, 32);
public static AspectList electricHoeGrowth = new AspectList()
.add(Aspect.ENERGY, 32)
.add(Aspect.PLANT, 25)
.add(Aspect.CROP, 32)
public static AspectList etherealProcessor = new AspectList().add(Aspect.MECHANISM, 16).add(Aspect.MAGIC, 16)
.add(Aspect.CRAFT, 16);
public static AspectList waterSolars = new AspectList().add(Aspect.WATER, 16).add(Aspect.MAGIC, 16)
.add(Aspect.EXCHANGE, 16);
public static AspectList darkSolars = new AspectList().add(Aspect.ENTROPY, 16).add(Aspect.MAGIC, 16)
.add(Aspect.EXCHANGE, 16);
public static AspectList orderSolars = new AspectList().add(Aspect.ORDER, 16).add(Aspect.MAGIC, 16)
.add(Aspect.EXCHANGE, 16);
public static AspectList fireSolars = new AspectList().add(Aspect.FIRE, 16).add(Aspect.MAGIC, 16)
.add(Aspect.EXCHANGE, 16);
public static AspectList airSolars = new AspectList().add(Aspect.AIR, 16).add(Aspect.MAGIC, 16)
.add(Aspect.EXCHANGE, 16);
public static AspectList earthSolars = new AspectList().add(Aspect.EARTH, 16).add(Aspect.MAGIC, 16)
.add(Aspect.EXCHANGE, 16);
public static AspectList uuMatterInfusions = new AspectList().add(Aspect.FIRE, 32).add(Aspect.WATER, 32)
.add(Aspect.AIR, 32).add(Aspect.EARTH, 32).add(Aspect.ORDER, 32).add(Aspect.ENTROPY, 32);
public static AspectList lesserUUMInfusions = new AspectList().add(Aspect.FIRE, 16).add(Aspect.WATER, 16)
.add(Aspect.AIR, 16).add(Aspect.EARTH, 16).add(Aspect.ORDER, 16).add(Aspect.ENTROPY, 16);
public static AspectList cheapUUMInfusions = new AspectList().add(Aspect.FIRE, 8).add(Aspect.WATER, 8)
.add(Aspect.AIR, 8).add(Aspect.EARTH, 8).add(Aspect.ORDER, 8).add(Aspect.ENTROPY, 8);
public static AspectList cheapestUUMInfusions = new AspectList().add(Aspect.FIRE, 4).add(Aspect.WATER, 4)
.add(Aspect.AIR, 4).add(Aspect.EARTH, 4).add(Aspect.ORDER, 4).add(Aspect.ENTROPY, 4);
public static AspectList portableNode = new AspectList().add(Aspect.MAGIC, 32).add(Aspect.AURA, 32)
.add(Aspect.GREED, 32);
public static AspectList electricHoeGrowth = new AspectList().add(Aspect.ENERGY, 32).add(Aspect.PLANT, 25)
.add(Aspect.CROP, 32).add(Aspect.MAGIC, 48);
public static AspectList chargeFocus = new AspectList().add(Aspect.EXCHANGE, 25).add(Aspect.ENERGY, 32)
.add(Aspect.MECHANISM, 32);
public static AspectList wandChargeFocus = new AspectList().add(Aspect.ENERGY, 48).add(Aspect.AURA, 32)
.add(Aspect.EXCHANGE, 48).add(Aspect.GREED, 64);
public static AspectList inventoryChargingRing = new AspectList().add(Aspect.ENERGY, 64).add(Aspect.CRYSTAL, 32)
.add(Aspect.MAGIC, 48);
public static AspectList chargeFocus =
new AspectList().add(Aspect.EXCHANGE, 25).add(Aspect.ENERGY, 32).add(Aspect.MECHANISM, 32);
public static AspectList wandChargeFocus = new AspectList()
.add(Aspect.ENERGY, 48)
.add(Aspect.AURA, 32)
.add(Aspect.EXCHANGE, 48)
.add(Aspect.GREED, 64);
public static AspectList inventoryChargingRing =
new AspectList().add(Aspect.ENERGY, 64).add(Aspect.CRYSTAL, 32).add(Aspect.MAGIC, 48);
public static AspectList armorChargingRing =
new AspectList().add(Aspect.ENERGY, 64).add(Aspect.ARMOR, 32).add(Aspect.MAGIC, 48);
public static AspectList thaumiumWing = new AspectList()
.add(Aspect.FIRE, 48)
.add(Aspect.WATER, 48)
.add(Aspect.AIR, 48)
.add(Aspect.EARTH, 48)
.add(Aspect.ORDER, 48)
.add(Aspect.ENTROPY, 48);
public static AspectList nanoWing = new AspectList()
.add(Aspect.FLIGHT, 48)
.add(Aspect.AIR, 32)
.add(Aspect.MECHANISM, 48)
.add(Aspect.ENERGY, 32);
public static AspectList quantumWing = new AspectList()
.add(Aspect.FLIGHT, 48)
.add(Aspect.AIR, 32)
.add(Aspect.MECHANISM, 48)
.add(Aspect.ENERGY, 32)
.add(Aspect.ARMOR, 48);
public static AspectList aerGenerator =
new AspectList().add(Aspect.EXCHANGE, 16).add(Aspect.AIR, 8);
public static AspectList uuMatterCrystal =
new AspectList().add(Aspect.CRYSTAL, 8).add(Aspect.COLD, 8).add(Aspect.MAGIC, 8);
public static AspectList researchCompleter = new AspectList()
.add(Aspect.FIRE, 50)
.add(Aspect.WATER, 50)
.add(Aspect.AIR, 50)
.add(Aspect.EARTH, 50)
.add(Aspect.ORDER, 50)
.add(Aspect.ENTROPY, 50);
public static AspectList magicalMachineCasing =
new AspectList().add(Aspect.FIRE, 8).add(Aspect.AIR, 8).add(Aspect.ORDER, 8);
public static AspectList armorChargingRing = new AspectList().add(Aspect.ENERGY, 64).add(Aspect.ARMOR, 32)
.add(Aspect.MAGIC, 48);
public static AspectList thaumiumWing = new AspectList().add(Aspect.FIRE, 48).add(Aspect.WATER, 48)
.add(Aspect.AIR, 48).add(Aspect.EARTH, 48).add(Aspect.ORDER, 48).add(Aspect.ENTROPY, 48);
public static AspectList nanoWing = new AspectList().add(Aspect.FLIGHT, 48).add(Aspect.AIR, 32)
.add(Aspect.MECHANISM, 48).add(Aspect.ENERGY, 32);
public static AspectList quantumWing = new AspectList().add(Aspect.FLIGHT, 48).add(Aspect.AIR, 32)
.add(Aspect.MECHANISM, 48).add(Aspect.ENERGY, 32).add(Aspect.ARMOR, 48);
public static AspectList aerGenerator = new AspectList().add(Aspect.EXCHANGE, 16).add(Aspect.AIR, 8);
public static AspectList uuMatterCrystal = new AspectList().add(Aspect.CRYSTAL, 8).add(Aspect.COLD, 8)
.add(Aspect.MAGIC, 8);
public static AspectList researchCompleter = new AspectList().add(Aspect.FIRE, 50).add(Aspect.WATER, 50)
.add(Aspect.AIR, 50).add(Aspect.EARTH, 50).add(Aspect.ORDER, 50).add(Aspect.ENTROPY, 50);
public static AspectList magicalMachineCasing = new AspectList().add(Aspect.FIRE, 8).add(Aspect.AIR, 8)
.add(Aspect.ORDER, 8);
}
+2 -1
View File
@@ -1,9 +1,10 @@
package emt.util;
import emt.init.EMTItems;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import emt.init.EMTItems;
public class EMTCreativeTab extends CreativeTabs {
public EMTCreativeTab(String tabLabel) {
@@ -1,22 +1,29 @@
package emt.util;
import emt.init.EMTItems;
import net.minecraft.item.ItemStack;
import net.minecraft.util.WeightedRandomChestContent;
import net.minecraftforge.common.ChestGenHooks;
import emt.init.EMTItems;
public class EMTDungeonChestGenerator {
public static void generateLoot() {
if (!EMTConfigHandler.thorHammerResearch) {
ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST)
.addItem(new WeightedRandomChestContent(
new ItemStack(EMTItems.taintedThorHammer), 0, 1, EMTConfigHandler.chanceTaintedMjolnir));
ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST).addItem(
new WeightedRandomChestContent(
new ItemStack(EMTItems.taintedThorHammer),
0,
1,
EMTConfigHandler.chanceTaintedMjolnir));
}
if (!EMTConfigHandler.oneRingSpawn) {
ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST)
.addItem(new WeightedRandomChestContent(
new ItemStack(EMTItems.onering), 0, 1, EMTConfigHandler.chanceOneRing));
ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST).addItem(
new WeightedRandomChestContent(
new ItemStack(EMTItems.onering),
0,
1,
EMTConfigHandler.chanceOneRing));
}
}
}
@@ -2,6 +2,7 @@ package emt.util;
import java.util.Collection;
import java.util.HashMap;
import thaumcraft.api.aspects.Aspect;
public class EMTEssentiasOutputs {
+13 -11
View File
@@ -1,15 +1,5 @@
package emt.util;
import baubles.api.BaublesApi;
import cpw.mods.fml.client.event.ConfigChangedEvent;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.TickEvent;
import cpw.mods.fml.common.gameevent.TickEvent.Phase;
import emt.EMT;
import emt.init.EMTBlocks;
import emt.init.EMTItems;
import emt.item.armor.wings.ItemFeatherWing;
import ic2.api.item.ElectricItem;
import net.minecraft.block.Block;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.monster.EntityCreeper;
@@ -21,8 +11,19 @@ import net.minecraftforge.event.entity.living.LivingDropsEvent;
import net.minecraftforge.event.entity.living.LivingHurtEvent;
import net.minecraftforge.event.entity.living.LivingSetAttackTargetEvent;
import net.minecraftforge.event.entity.player.PlayerInteractEvent;
import thaumcraft.common.config.ConfigBlocks;
import thaumcraft.common.entities.monster.EntityTaintChicken;
import baubles.api.BaublesApi;
import cpw.mods.fml.client.event.ConfigChangedEvent;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.TickEvent;
import cpw.mods.fml.common.gameevent.TickEvent.Phase;
import emt.EMT;
import emt.init.EMTBlocks;
import emt.init.EMTItems;
import emt.item.armor.wings.ItemFeatherWing;
import ic2.api.item.ElectricItem;
public class EMTEventHandler {
@@ -63,7 +64,8 @@ public class EMTEventHandler {
}
if (event.entityLiving instanceof EntityTaintChicken) {
event.entityLiving.entityDropItem(
new ItemStack(EMTItems.itemEMTItems, event.entityLiving.worldObj.rand.nextInt(3), 13), 1);
new ItemStack(EMTItems.itemEMTItems, event.entityLiving.worldObj.rand.nextInt(3), 13),
1);
}
}
+5 -1
View File
@@ -1,11 +1,13 @@
package emt.util;
import ic2.api.item.ElectricItem;
import java.util.ArrayList;
import java.util.Random;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import ic2.api.item.ElectricItem;
public class EMTRandomHelper {
public static ItemStack getChargedItem(Item item, int charge) {
@@ -15,6 +17,7 @@ public class EMTRandomHelper {
}
public static class Bolt {
public ArrayList<Point> points = new ArrayList<Point>();
public float angleZ = 0;
public float angleY = 0;
@@ -55,6 +58,7 @@ public class EMTRandomHelper {
}
public static class Point {
public float x = 0;
public float y = 0;
public float z = 0;
+86 -126
View File
@@ -5,133 +5,93 @@ import thaumcraft.api.aspects.AspectList;
public class EMTResearchAspects {
public static AspectList thaumiumDrillResearch =
new AspectList().add(Aspect.ENERGY, 5).add(Aspect.TOOL, 6).add(Aspect.MINE, 4);
public static AspectList thaumiumChainsawResearch =
new AspectList().add(Aspect.ENERGY, 5).add(Aspect.WEAPON, 6).add(Aspect.TOOL, 4);
public static AspectList thaumicQuantumHelmet =
new AspectList().add(Aspect.ARMOR, 8).add(Aspect.ENERGY, 4).add(Aspect.SENSES, 6);
public static AspectList diamondOmnitoolResearch = new AspectList()
.add(Aspect.ENERGY, 2)
.add(Aspect.TOOL, 3)
.add(Aspect.MINE, 2)
.add(Aspect.WEAPON, 2);
public static AspectList thaumiumOmnitoolResearch = new AspectList()
.add(Aspect.ENERGY, 5)
.add(Aspect.TOOL, 6)
.add(Aspect.MINE, 4)
.add(Aspect.WEAPON, 6);
public static AspectList thaumicNanoHelmet =
new AspectList().add(Aspect.ENERGY, 5).add(Aspect.SENSES, 8).add(Aspect.ARMOR, 6);
public static AspectList laserFocusResearch =
new AspectList().add(Aspect.FIRE, 3).add(Aspect.DEATH, 2).add(Aspect.WEAPON, 3);
public static AspectList christmasFocusResearch = new AspectList()
.add(Aspect.COLD, 2)
.add(Aspect.BEAST, 5)
.add(Aspect.LIFE, 6)
.add(Aspect.DEATH, 2);
public static AspectList energyBallFocusResearch =
new AspectList().add(Aspect.ENERGY, 10).add(Aspect.MAGIC, 5).add(Aspect.LIFE, 6);
public static AspectList shieldFocusResearch = new AspectList()
.add(Aspect.ARMOR, 5)
.add(Aspect.AIR, 2)
.add(Aspect.CRYSTAL, 3)
.add(Aspect.TRAP, 2);
public static AspectList electricGogglesResearch =
new AspectList().add(Aspect.ARMOR, 8).add(Aspect.ENERGY, 5).add(Aspect.SENSES, 6);
public static AspectList potentiaGeneratorResearch =
new AspectList().add(Aspect.ENERGY, 4).add(Aspect.EXCHANGE, 4).add(Aspect.METAL, 3);
public static AspectList ignisGeneratorResearch =
new AspectList().add(Aspect.EXCHANGE, 4).add(Aspect.FIRE, 3);
public static AspectList auramGeneratorResearch =
new AspectList().add(Aspect.EXCHANGE, 4).add(Aspect.AURA, 3);
public static AspectList arborGeneratorResearch =
new AspectList().add(Aspect.EXCHANGE, 4).add(Aspect.TREE, 3);
public static AspectList lucrumGeneratorResearch =
new AspectList().add(Aspect.EXCHANGE, 4).add(Aspect.GREED, 3);
public static AspectList streamChainsawResearch = new AspectList()
.add(Aspect.TOOL, 3)
.add(Aspect.TREE, 3)
.add(Aspect.WATER, 6)
public static AspectList thaumiumDrillResearch = new AspectList().add(Aspect.ENERGY, 5).add(Aspect.TOOL, 6)
.add(Aspect.MINE, 4);
public static AspectList thaumiumChainsawResearch = new AspectList().add(Aspect.ENERGY, 5).add(Aspect.WEAPON, 6)
.add(Aspect.TOOL, 4);
public static AspectList thaumicQuantumHelmet = new AspectList().add(Aspect.ARMOR, 8).add(Aspect.ENERGY, 4)
.add(Aspect.SENSES, 6);
public static AspectList diamondOmnitoolResearch = new AspectList().add(Aspect.ENERGY, 2).add(Aspect.TOOL, 3)
.add(Aspect.MINE, 2).add(Aspect.WEAPON, 2);
public static AspectList thaumiumOmnitoolResearch = new AspectList().add(Aspect.ENERGY, 5).add(Aspect.TOOL, 6)
.add(Aspect.MINE, 4).add(Aspect.WEAPON, 6);
public static AspectList thaumicNanoHelmet = new AspectList().add(Aspect.ENERGY, 5).add(Aspect.SENSES, 8)
.add(Aspect.ARMOR, 6);
public static AspectList laserFocusResearch = new AspectList().add(Aspect.FIRE, 3).add(Aspect.DEATH, 2)
.add(Aspect.WEAPON, 3);
public static AspectList christmasFocusResearch = new AspectList().add(Aspect.COLD, 2).add(Aspect.BEAST, 5)
.add(Aspect.LIFE, 6).add(Aspect.DEATH, 2);
public static AspectList energyBallFocusResearch = new AspectList().add(Aspect.ENERGY, 10).add(Aspect.MAGIC, 5)
.add(Aspect.LIFE, 6);
public static AspectList shieldFocusResearch = new AspectList().add(Aspect.ARMOR, 5).add(Aspect.AIR, 2)
.add(Aspect.CRYSTAL, 3).add(Aspect.TRAP, 2);
public static AspectList electricGogglesResearch = new AspectList().add(Aspect.ARMOR, 8).add(Aspect.ENERGY, 5)
.add(Aspect.SENSES, 6);
public static AspectList potentiaGeneratorResearch = new AspectList().add(Aspect.ENERGY, 4).add(Aspect.EXCHANGE, 4)
.add(Aspect.METAL, 3);
public static AspectList ignisGeneratorResearch = new AspectList().add(Aspect.EXCHANGE, 4).add(Aspect.FIRE, 3);
public static AspectList auramGeneratorResearch = new AspectList().add(Aspect.EXCHANGE, 4).add(Aspect.AURA, 3);
public static AspectList arborGeneratorResearch = new AspectList().add(Aspect.EXCHANGE, 4).add(Aspect.TREE, 3);
public static AspectList lucrumGeneratorResearch = new AspectList().add(Aspect.EXCHANGE, 4).add(Aspect.GREED, 3);
public static AspectList streamChainsawResearch = new AspectList().add(Aspect.TOOL, 3).add(Aspect.TREE, 3)
.add(Aspect.WATER, 6).add(Aspect.ENERGY, 4);
public static AspectList rockbreakerDrillResearch = new AspectList().add(Aspect.ENERGY, 3).add(Aspect.FIRE, 2)
.add(Aspect.MINE, 3);
public static AspectList shieldBlockResearch = new AspectList().add(Aspect.ARMOR, 3).add(Aspect.TRAP, 2);
public static AspectList tinyUraniumResearch = new AspectList().add(Aspect.POISON, 4).add(Aspect.DEATH, 3)
.add(Aspect.EXCHANGE, 3);
public static AspectList thorHammerResearch = new AspectList().add(Aspect.WEAPON, 3).add(Aspect.WEATHER, 4)
.add(Aspect.ELDRITCH, 3);
public static AspectList superchargedThorHammerResearch = new AspectList().add(Aspect.WEAPON, 4)
.add(Aspect.ENERGY, 6).add(Aspect.BEAST, 4);
public static AspectList wandCharger = new AspectList().add(Aspect.ENERGY, 4).add(Aspect.CRAFT, 2)
.add(Aspect.EXCHANGE, 3).add(Aspect.GREED, 5);
public static AspectList compressedSolars = new AspectList().add(Aspect.ENERGY, 4).add(Aspect.LIGHT, 3)
.add(Aspect.METAL, 2);
public static AspectList solarHelmetRevealing = new AspectList().add(Aspect.ENERGY, 5).add(Aspect.AIR, 2)
.add(Aspect.LIGHT, 4);
public static AspectList electricBootsTravel = new AspectList().add(Aspect.ENERGY, 2).add(Aspect.ARMOR, 5)
.add(Aspect.MOTION, 2);
public static AspectList nanoBootsTravel = new AspectList().add(Aspect.ENERGY, 3).add(Aspect.ARMOR, 5)
.add(Aspect.MOTION, 3);
public static AspectList quantumBootsTravel = new AspectList().add(Aspect.ENERGY, 4).add(Aspect.ARMOR, 5)
.add(Aspect.MOTION, 4);
public static AspectList electricScribingTools = new AspectList().add(Aspect.ENERGY, 5).add(Aspect.DARKNESS, 3)
.add(Aspect.CRAFT, 1);
public static AspectList etherealProcessor = new AspectList().add(Aspect.MECHANISM, 3).add(Aspect.MAGIC, 4)
.add(Aspect.CRAFT, 5);
public static AspectList waterSolars = new AspectList().add(Aspect.WATER, 4).add(Aspect.MAGIC, 3)
.add(Aspect.ENERGY, 4);
public static AspectList rockbreakerDrillResearch =
new AspectList().add(Aspect.ENERGY, 3).add(Aspect.FIRE, 2).add(Aspect.MINE, 3);
public static AspectList shieldBlockResearch =
new AspectList().add(Aspect.ARMOR, 3).add(Aspect.TRAP, 2);
public static AspectList tinyUraniumResearch =
new AspectList().add(Aspect.POISON, 4).add(Aspect.DEATH, 3).add(Aspect.EXCHANGE, 3);
public static AspectList thorHammerResearch =
new AspectList().add(Aspect.WEAPON, 3).add(Aspect.WEATHER, 4).add(Aspect.ELDRITCH, 3);
public static AspectList superchargedThorHammerResearch =
new AspectList().add(Aspect.WEAPON, 4).add(Aspect.ENERGY, 6).add(Aspect.BEAST, 4);
public static AspectList wandCharger = new AspectList()
.add(Aspect.ENERGY, 4)
.add(Aspect.CRAFT, 2)
.add(Aspect.EXCHANGE, 3)
public static AspectList darkSolars = new AspectList().add(Aspect.ENTROPY, 4).add(Aspect.MAGIC, 3)
.add(Aspect.ENERGY, 4);
public static AspectList orderSolars = new AspectList().add(Aspect.ORDER, 4).add(Aspect.MAGIC, 3)
.add(Aspect.ENERGY, 4);
public static AspectList fireSolars = new AspectList().add(Aspect.FIRE, 4).add(Aspect.MAGIC, 3)
.add(Aspect.ENERGY, 4);
public static AspectList airSolars = new AspectList().add(Aspect.AIR, 4).add(Aspect.MAGIC, 3).add(Aspect.ENERGY, 4);
public static AspectList earthSolars = new AspectList().add(Aspect.EARTH, 4).add(Aspect.MAGIC, 3)
.add(Aspect.ENERGY, 4);
public static AspectList uuMInfusion = new AspectList().add(Aspect.ELDRITCH, 4).add(Aspect.MAGIC, 4)
.add(Aspect.CRAFT, 5);
public static AspectList portableNode = new AspectList().add(Aspect.MAGIC, 5).add(Aspect.AURA, 5)
.add(Aspect.GREED, 5);
public static AspectList compressedSolars =
new AspectList().add(Aspect.ENERGY, 4).add(Aspect.LIGHT, 3).add(Aspect.METAL, 2);
public static AspectList solarHelmetRevealing =
new AspectList().add(Aspect.ENERGY, 5).add(Aspect.AIR, 2).add(Aspect.LIGHT, 4);
public static AspectList electricBootsTravel =
new AspectList().add(Aspect.ENERGY, 2).add(Aspect.ARMOR, 5).add(Aspect.MOTION, 2);
public static AspectList nanoBootsTravel =
new AspectList().add(Aspect.ENERGY, 3).add(Aspect.ARMOR, 5).add(Aspect.MOTION, 3);
public static AspectList quantumBootsTravel =
new AspectList().add(Aspect.ENERGY, 4).add(Aspect.ARMOR, 5).add(Aspect.MOTION, 4);
public static AspectList electricScribingTools =
new AspectList().add(Aspect.ENERGY, 5).add(Aspect.DARKNESS, 3).add(Aspect.CRAFT, 1);
public static AspectList etherealProcessor =
new AspectList().add(Aspect.MECHANISM, 3).add(Aspect.MAGIC, 4).add(Aspect.CRAFT, 5);
public static AspectList waterSolars =
new AspectList().add(Aspect.WATER, 4).add(Aspect.MAGIC, 3).add(Aspect.ENERGY, 4);
public static AspectList darkSolars =
new AspectList().add(Aspect.ENTROPY, 4).add(Aspect.MAGIC, 3).add(Aspect.ENERGY, 4);
public static AspectList orderSolars =
new AspectList().add(Aspect.ORDER, 4).add(Aspect.MAGIC, 3).add(Aspect.ENERGY, 4);
public static AspectList fireSolars =
new AspectList().add(Aspect.FIRE, 4).add(Aspect.MAGIC, 3).add(Aspect.ENERGY, 4);
public static AspectList airSolars =
new AspectList().add(Aspect.AIR, 4).add(Aspect.MAGIC, 3).add(Aspect.ENERGY, 4);
public static AspectList earthSolars =
new AspectList().add(Aspect.EARTH, 4).add(Aspect.MAGIC, 3).add(Aspect.ENERGY, 4);
public static AspectList uuMInfusion =
new AspectList().add(Aspect.ELDRITCH, 4).add(Aspect.MAGIC, 4).add(Aspect.CRAFT, 5);
public static AspectList portableNode =
new AspectList().add(Aspect.MAGIC, 5).add(Aspect.AURA, 5).add(Aspect.GREED, 5);
public static AspectList electricHoeGrowth = new AspectList()
.add(Aspect.ENERGY, 4)
.add(Aspect.PLANT, 4)
.add(Aspect.CROP, 5)
public static AspectList electricHoeGrowth = new AspectList().add(Aspect.ENERGY, 4).add(Aspect.PLANT, 4)
.add(Aspect.CROP, 5).add(Aspect.MAGIC, 4);
public static AspectList chargeFocus = new AspectList().add(Aspect.EXCHANGE, 4).add(Aspect.ENERGY, 5)
.add(Aspect.MECHANISM, 4);
public static AspectList wandChargeFocus = new AspectList().add(Aspect.ENERGY, 5).add(Aspect.AURA, 4)
.add(Aspect.EXCHANGE, 4).add(Aspect.GREED, 5);
public static AspectList inventoryChargingRing = new AspectList().add(Aspect.ENERGY, 4).add(Aspect.CRYSTAL, 4)
.add(Aspect.MAGIC, 4);
public static AspectList chargeFocus =
new AspectList().add(Aspect.EXCHANGE, 4).add(Aspect.ENERGY, 5).add(Aspect.MECHANISM, 4);
public static AspectList wandChargeFocus = new AspectList()
.add(Aspect.ENERGY, 5)
.add(Aspect.AURA, 4)
.add(Aspect.EXCHANGE, 4)
.add(Aspect.GREED, 5);
public static AspectList inventoryChargingRing =
new AspectList().add(Aspect.ENERGY, 4).add(Aspect.CRYSTAL, 4).add(Aspect.MAGIC, 4);
public static AspectList armorChargingRing =
new AspectList().add(Aspect.ENERGY, 4).add(Aspect.ARMOR, 4).add(Aspect.MAGIC, 4);
public static AspectList thaumiumWing =
new AspectList().add(Aspect.FLIGHT, 5).add(Aspect.AIR, 5).add(Aspect.MECHANISM, 8);
public static AspectList nanoWing = new AspectList()
.add(Aspect.FLIGHT, 5)
.add(Aspect.AIR, 5)
.add(Aspect.MECHANISM, 8)
.add(Aspect.ENERGY, 4);
public static AspectList quantumWing = new AspectList()
.add(Aspect.FLIGHT, 5)
.add(Aspect.AIR, 5)
.add(Aspect.MECHANISM, 8)
.add(Aspect.ENERGY, 4);
public static AspectList aerGenerator =
new AspectList().add(Aspect.EXCHANGE, 4).add(Aspect.AIR, 3);
public static AspectList researchCompleter = new AspectList()
.add(Aspect.MIND, 8)
.add(Aspect.MECHANISM, 5)
.add(Aspect.EXCHANGE, 5)
.add(Aspect.AURA, 4);
public static AspectList armorChargingRing = new AspectList().add(Aspect.ENERGY, 4).add(Aspect.ARMOR, 4)
.add(Aspect.MAGIC, 4);
public static AspectList thaumiumWing = new AspectList().add(Aspect.FLIGHT, 5).add(Aspect.AIR, 5)
.add(Aspect.MECHANISM, 8);
public static AspectList nanoWing = new AspectList().add(Aspect.FLIGHT, 5).add(Aspect.AIR, 5)
.add(Aspect.MECHANISM, 8).add(Aspect.ENERGY, 4);
public static AspectList quantumWing = new AspectList().add(Aspect.FLIGHT, 5).add(Aspect.AIR, 5)
.add(Aspect.MECHANISM, 8).add(Aspect.ENERGY, 4);
public static AspectList aerGenerator = new AspectList().add(Aspect.EXCHANGE, 4).add(Aspect.AIR, 3);
public static AspectList researchCompleter = new AspectList().add(Aspect.MIND, 8).add(Aspect.MECHANISM, 5)
.add(Aspect.EXCHANGE, 5).add(Aspect.AURA, 4);
}
+4 -3
View File
@@ -1,13 +1,14 @@
package emt.util;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.api.research.ResearchItem;
import thaumcraft.api.research.ResearchPage;
import thaumcraft.api.research.ResearchPage.PageType;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class EMTResearchItem extends ResearchItem {
@@ -51,7 +52,7 @@ public class EMTResearchItem extends ResearchItem {
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"};
if (parentsHidden == null || parentsHidden.length == 0) parentsHidden = new String[] { "INFUSION" };
else {
String[] newParents = new String[parentsHidden.length + 1];
newParents[0] = "INFUSION";