mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Allow Thaumometers to be added to travellers goggles.
1 Thaumometer = see nodes 2 Thaumometers = like the goggles of revealing You can upgrade from 1 to 2 thaumometers.
This commit is contained in:
1 parent
920edde7fd
commit
b861a114ca
8 files changed
+263
-3
No files matched your search
+24
-1
@@ -1,11 +1,20 @@
|
||||
package tconstruct.plugins.imc;
|
||||
package tconstruct.plugins;
|
||||
|
||||
import cpw.mods.fml.common.event.*;
|
||||
import cpw.mods.fml.common.registry.GameRegistry.ObjectHolder;
|
||||
import mantle.pulsar.pulse.*;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.EnumChatFormatting;
|
||||
import tconstruct.TConstruct;
|
||||
import tconstruct.library.armor.ArmorPart;
|
||||
import tconstruct.library.crafting.ModifyBuilder;
|
||||
import tconstruct.modifiers.armor.AModBoolean;
|
||||
import tconstruct.modifiers.armor.AModThaumicVision;
|
||||
import tconstruct.world.TinkerWorld;
|
||||
import thaumcraft.api.ItemApi;
|
||||
|
||||
import java.util.EnumSet;
|
||||
|
||||
@ObjectHolder(TConstruct.modID)
|
||||
@Pulse(id = "Tinkers Thaumcraft Compatibility", description = "Tinkers Construct compatibility for Thaumcraft", modsRequired = "Thaumcraft", pulsesRequired = "Tinkers' World", forced = true)
|
||||
@@ -16,6 +25,12 @@ public class TinkerThaumcraft
|
||||
public void init (FMLInitializationEvent event)
|
||||
{
|
||||
TConstruct.logger.info("Thaumcraft detected. Registering harvestables.");
|
||||
sendIMC();
|
||||
registerModifiers();
|
||||
}
|
||||
|
||||
private void sendIMC()
|
||||
{
|
||||
FMLInterModComms.sendMessage("Thaumcraft", "harvestClickableCrop", new ItemStack(TinkerWorld.oreBerry, 1, 12));
|
||||
FMLInterModComms.sendMessage("Thaumcraft", "harvestClickableCrop", new ItemStack(TinkerWorld.oreBerry, 1, 13));
|
||||
FMLInterModComms.sendMessage("Thaumcraft", "harvestClickableCrop", new ItemStack(TinkerWorld.oreBerry, 1, 14));
|
||||
@@ -24,4 +39,12 @@ public class TinkerThaumcraft
|
||||
FMLInterModComms.sendMessage("Thaumcraft", "harvestClickableCrop", new ItemStack(TinkerWorld.oreBerrySecond, 1, 13));
|
||||
}
|
||||
|
||||
private void registerModifiers()
|
||||
{
|
||||
ItemStack thaumometer = ItemApi.getItem("itemThaumometer", 0);
|
||||
if(thaumometer != null) {
|
||||
// Thaumometer Vision!
|
||||
ModifyBuilder.registerModifier(new AModThaumicVision(thaumometer));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user