mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-27 23:45:57 +00:00
Move a bunch of API calls to IMC, making them thread safe in the process
This commit is contained in:
1 parent
b1b37b4c5a
commit
3c71d46b82
13 files changed
+326
-162
No files matched your search
@@ -0,0 +1,45 @@
|
||||
/**
|
||||
* This class was created by <williewillus>. It's distributed as
|
||||
* part of the Botania Mod. Get the Source Code in github:
|
||||
* https://github.com/Vazkii/Botania
|
||||
*
|
||||
* Botania is Open Source and distributed under the
|
||||
* Botania License: http://botaniamod.net/license.php
|
||||
*
|
||||
* File Created @ [Apr 06, 2019]
|
||||
*/
|
||||
package vazkii.botania.api.imc;
|
||||
|
||||
/**
|
||||
* This class defines the IMC methods accepted by Botania and their expected argument types
|
||||
* @see net.minecraftforge.fml.event.lifecycle.InterModEnqueueEvent
|
||||
* @see net.minecraftforge.fml.event.lifecycle.InterModProcessEvent
|
||||
* @see net.minecraftforge.fml.InterModComms
|
||||
*/
|
||||
public class IMC {
|
||||
/**
|
||||
* Maps a block tag to its weight in world generation. This is used for the Orechid flower.<br />
|
||||
* The argument should be a {@link OreWeightMessage}, any other types are ignored.<br />
|
||||
* Check the Botania source to see default values.<br>
|
||||
*/
|
||||
public static final String REGISTER_ORE_WEIGHT = "register_ore_weight";
|
||||
|
||||
/**
|
||||
* Maps a block tag to its weight in nether world generation. This is used for the Orechid flower.<br />
|
||||
* The argument should be a {@link OreWeightMessage}, any other types are ignored.<br />
|
||||
* Check the Botania source to see default values.<br>
|
||||
*/
|
||||
public static final String REGISTER_NETHER_ORE_WEIGHT = "register_nether_ore_weight";
|
||||
|
||||
/**
|
||||
* Registers a Wiki provider for a mod so it uses that instead of the fallback FTB wiki.<br />
|
||||
* The argument should be a {@link ModWikiMessage}, any other types are ignored.
|
||||
*/
|
||||
public static final String REGISTER_MOD_WIKI = "register_mod_wiki";
|
||||
|
||||
/**
|
||||
* Registers a block as paintable under the paint lens.<br />
|
||||
* The argument should be a {@link PaintableBlockMessage}, any other types are ignored.
|
||||
*/
|
||||
public static final String REGISTER_PAINTABLE_BLOCK = "register_paintable_block";
|
||||
}
|
||||
Reference in new issue
Block a user