re-organize some of the plugins to different packages

This commit is contained in:
Progwml6 committed 2013-12-19 10:10:10 -05:00
1 parent 48220202bc
commit c828a046d1
7 files changed
+16 -6

No files matched your search

@@ -0,0 +1,45 @@
package tconstruct.plugins.imc;
import cpw.mods.fml.common.event.FMLInterModComms;
import net.minecraft.nbt.NBTTagCompound;
import tconstruct.TConstruct;
import tconstruct.plugins.ICompatPlugin;
public class Mystcraft implements ICompatPlugin {
private static String[] fluids = new String[] { "invar.molten", "electrum.molten", "bronze.molten", "aluminumbrass.molten", "manyullyn.molten", "alumite.molten", "cobalt.molten",
"moltenArdite", "ender", "steel.molten", "platinum.molten" };
@Override
public String getModId() {
return "Mystcraft";
}
@Override
public void preInit() {
}
@Override
public void init() {
TConstruct.logger.info("[Mystcraft] Blacklisting Mystcraft fluid symbols.");
for (String nm : fluids) sendFluidBlacklist(nm);
}
@Override
public void postInit() {
}
private void sendFluidBlacklist (String FluidName)
{
NBTTagCompound NBTMsg = new NBTTagCompound();
NBTMsg.setCompoundTag("fluidsymbol", new NBTTagCompound());
NBTMsg.getCompoundTag("fluidsymbol").setFloat("rarity", 0.0F);
NBTMsg.getCompoundTag("fluidsymbol").setFloat("grammarweight", 0.0F);
NBTMsg.getCompoundTag("fluidsymbol").setFloat("instabilityPerBlock", 10000F);// renders creative symbol useless
NBTMsg.getCompoundTag("fluidsymbol").setString("fluidname", FluidName);
FMLInterModComms.sendMessage("Mystcraft", "fluidsymbol", NBTMsg);
}
}