Java Code Examples for net.minecraftforge.fml.common.event.FMLInterModComms#sendMessage()

The following examples show how to use net.minecraftforge.fml.common.event.FMLInterModComms#sendMessage() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ExNihiloAdscensio.java    From ExNihiloAdscensio with MIT License 6 votes vote down vote up
@EventHandler
public static void init(FMLInitializationEvent event) {
	OreRegistry.loadJson(new File(configDirectory, "OreRegistry.json"));
	loadConfigs();

	Recipes.init();
	OreRegistry.doRecipes();

	proxy.initOreModels();
	proxy.registerColorHandlers();

	FMLInterModComms.sendMessage("Waila", "register",
			"exnihiloadscensio.compatibility.CompatWaila.callbackRegister");
	
	if (Loader.isModLoaded("theoneprobe") && Config.doTOPCompat) {
		CompatTOP.init();
	}
}
 
Example 2
Source File: ThaumcraftPlugin.java    From AgriCraft with MIT License 5 votes vote down vote up
@Override
public void initPlugin() {

    // Fix Golems
    FMLInterModComms.sendMessage(
            "Thaumcraft",
            "harvestClickableCrop",
            new ItemStack(AgriBlocks.getInstance().CROP, 1, Constants.MATURE)
    );

}
 
Example 3
Source File: EnderZoo.java    From EnderZoo with Creative Commons Zero v1.0 Universal 5 votes vote down vote up
@EventHandler
 public void preInit(FMLPreInitializationEvent event) {
  
MinecraftForge.EVENT_BUS.register(new RegistryHandler());
  
   itemForCreativeMenuIcon = ItemForCreativeMenuIcon.create();

   Config.load(event);
   
   itemWitheringDust = ItemWitheringDust.create();
   itemConfusingDust = ItemConfusingDust.create();
   itemEnderFragment = ItemEnderFragment.create();
   itemGuardiansBow = ItemGuardiansBow.create();   
   itemOwlEgg = ItemOwlEgg.create();

   if (Config.confusingChargeEnabled) {
     blockConfusingCharge = BlockConfusingCharge.create();
   }
   if (Config.enderChargeEnabled) {
     blockEnderCharge = BlockEnderCharge.create();
   }
   if (Config.concussionChargeEnabled) {
     blockConcussionCharge = BlockConcussionCharge.create();
   }
   potions = new Potions();

   FMLInterModComms.sendMessage("waila", "register", "crazypants.enderzoo.waila.WailaCompat.load");
   proxy.preInit();
 }
 
Example 4
Source File: CustomStuff4.java    From customstuff4 with GNU General Public License v3.0 4 votes vote down vote up
private void sendIMCs()
{
    FMLInterModComms.sendMessage("waila", "register", "cubex2.cs4.compat.waila.CompatWaila.callbackRegister");
}
 
Example 5
Source File: IMCItemStack.java    From customstuff4 with GNU General Public License v3.0 4 votes vote down vote up
@Override
protected void doInit(InitPhase phase, ContentHelper helper)
{
    FMLInterModComms.sendMessage(modId, key, value.getItemStack().copy());
}
 
Example 6
Source File: IMCNBT.java    From customstuff4 with GNU General Public License v3.0 4 votes vote down vote up
@Override
protected void doInit(InitPhase phase, ContentHelper helper)
{
    FMLInterModComms.sendMessage(modId, key, value);
}
 
Example 7
Source File: IMCResourceLocation.java    From customstuff4 with GNU General Public License v3.0 4 votes vote down vote up
@Override
protected void doInit(InitPhase phase, ContentHelper helper)
{
    FMLInterModComms.sendMessage(modId, key, value);
}
 
Example 8
Source File: IMCString.java    From customstuff4 with GNU General Public License v3.0 4 votes vote down vote up
@Override
protected void doInit(InitPhase phase, ContentHelper helper)
{
    FMLInterModComms.sendMessage(modId, key, value);
}
 
Example 9
Source File: WailaPlugin.java    From Moo-Fluids with GNU General Public License v3.0 4 votes vote down vote up
public static void init() {
  LogHelper.info("WAILA detected. Registering entities with WAILA registry.");
  FMLInterModComms.sendMessage("waila", "register", REGISTRAR_CLASSPATH);
}
 
Example 10
Source File: CommonProxy.java    From LunatriusCore with MIT License 4 votes vote down vote up
public void preInit(final FMLPreInitializationEvent event) {
    Reference.logger = event.getModLog();

    FMLInterModComms.sendMessage(Reference.MODID, "checkUpdate", Reference.FORGE);
}