-
Notifications
You must be signed in to change notification settings - Fork 755
/
TinkerAE2.java
43 lines (34 loc) · 1.83 KB
/
TinkerAE2.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package tconstruct.plugins.imc;
import cpw.mods.fml.common.event.*;
import cpw.mods.fml.common.registry.GameRegistry.ObjectHolder;
import java.util.*;
import mantle.pulsar.pulse.*;
import tconstruct.TConstruct;
@ObjectHolder(TConstruct.modID)
@Pulse(id = "Tinkers AE2 Compatibility", description = "Tinkers Construct compatibility for Applied Energistics 2", modsRequired = "appliedenergistics2")
public class TinkerAE2
{
private static List<String> spatialIOLogics = Arrays.asList("EssenceExtractorLogic", "GolemPedestalLogic", //TODO What happened to these?
"MultiServantLogic"); //TODO Should Mantle handle this?
private static List<String> spatialIOSmelteryLogics = Arrays.asList("AdaptiveSmelteryLogic", "AqueductLogic", "CastingBasinLogic", "CastingChannelLogic", "CastingTableLogic", "FaucetLogic", "LavaTankLogic", "SmelteryDrainLogic", "SmelteryLogic", "TankAirLogic", "TowerFurnaceLogic");
private static List<String> spatialIOToolLogics = Arrays.asList("CraftingStationLogic", "FrypanLogic", "PartBuilderLogic", "PatternChestLogic", "StencilTableLogic", "ToolForgeLogic", "ToolStationLogic");
@Handler
public void init (FMLInitializationEvent event)
{
TConstruct.logger.info("AE2 detected. Registering for Spatial IO.");
addtoSpatialWhitelist("tconstruct.blocks.logic.DryingRackLogic");
addtoSpatialWhitelist("tconstruct.mechworks.logic.TileEntityLandmine");
for (String s : spatialIOSmelteryLogics)
{
addtoSpatialWhitelist("tconstruct.smeltery.logic." + s);
}
for (String s : spatialIOToolLogics)
{
addtoSpatialWhitelist("tconstruct.tools.logic." + s);
}
}
public void addtoSpatialWhitelist (String teClass)
{
FMLInterModComms.sendMessage("appliedenergistics2", "whitelist-spatial", teClass);
}
}