mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-19 11:49:05 +00:00
Added tooltip support. Also adds formatted text to make formatted tooltips.
This commit is contained in:
1 parent
25b9589af7
commit
1b2554170a
33 files changed
+1377
-12
No files matched your search
@@ -19,6 +19,7 @@ import minetweaker.api.event.MTEventManager;
|
||||
import minetweaker.api.event.PlayerInteractEvent;
|
||||
import minetweaker.api.event.PlayerLoggedInEvent;
|
||||
import minetweaker.api.event.PlayerLoggedOutEvent;
|
||||
import minetweaker.api.formatting.IFormatter;
|
||||
import minetweaker.api.game.IGame;
|
||||
import minetweaker.api.item.IItemDefinition;
|
||||
import minetweaker.api.item.IItemStack;
|
||||
@@ -394,18 +395,21 @@ public class MineTweakerImplementationAPI {
|
||||
* @param furnace furnace manager interface
|
||||
* @param game game interface
|
||||
* @param mods mods interface
|
||||
* @param formatter formatter interface
|
||||
*/
|
||||
public static void init(
|
||||
IOreDict oreDict,
|
||||
IRecipeManager recipes,
|
||||
IFurnaceManager furnace,
|
||||
IGame game,
|
||||
ILoadedMods mods) {
|
||||
ILoadedMods mods,
|
||||
IFormatter formatter) {
|
||||
MineTweakerAPI.oreDict = oreDict;
|
||||
MineTweakerAPI.recipes = recipes;
|
||||
MineTweakerAPI.furnace = furnace;
|
||||
MineTweakerAPI.game = game;
|
||||
MineTweakerAPI.loadedMods = mods;
|
||||
MineTweakerAPI.format = formatter;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user