WAILA compatibility
Currently has handlers for Teleposers and Blood Altars
This commit is contained in:
parent
318e3a03c7
commit
cb929a93b6
6 changed files with 24 additions and 2 deletions
|
@ -89,6 +89,7 @@ public class ConfigHandler
|
|||
public static boolean vanillaPotionAbsorptionEnabled;
|
||||
|
||||
// Compat
|
||||
public static int wailaAltarDisplayMode;
|
||||
|
||||
public static void init(File file)
|
||||
{
|
||||
|
@ -178,6 +179,7 @@ public class ConfigHandler
|
|||
|
||||
category = "Compatibility";
|
||||
config.addCustomCategoryComment(category, "Compatibility settings");
|
||||
wailaAltarDisplayMode = config.getInt("wailaAltarDisplayMode", category + ".waila", 1, 0, 2, "The mode for the Waila display on Blood Altars.\n0 - Always display information\n1 - Only display when Divination/Seer sigil is in hand.\n2 - Only display when Divination/Seer sigil is in inventory");
|
||||
|
||||
config.save();
|
||||
}
|
||||
|
|
|
@ -29,6 +29,7 @@ public class Constants
|
|||
public static final String INPUT_AMOUNT = "inputAmount";
|
||||
public static final String STORED_LP = "storedLP";
|
||||
|
||||
public static final String ALTAR = "bloodAltar";
|
||||
public static final String ALTAR_TIER = "upgradeLevel";
|
||||
public static final String ALTAR_ACTIVE = "isActive";
|
||||
public static final String ALTAR_LIQUID_REQ = "liquidRequired";
|
||||
|
@ -87,6 +88,10 @@ public class Constants
|
|||
public static final String JEI_CATEGORY_ALTAR = Mod.MODID + ":altar";
|
||||
public static final String JEI_CATEGORY_BINDING = Mod.MODID + ":binding";
|
||||
public static final String JEI_CATEGORY_ALCHEMYARRAY = Mod.MODID + ":alchemyArray";
|
||||
|
||||
public static final String WAILA_CONFIG_BYPASS_SNEAK = Mod.MODID + ".bypassSneak";
|
||||
public static final String WAILA_CONFIG_ALTAR = Mod.MODID + ".bloodAltar";
|
||||
public static final String WAILA_CONFIG_TELEPOSER = Mod.MODID + ".teleposer";
|
||||
}
|
||||
|
||||
public static class Misc
|
||||
|
|
|
@ -2,6 +2,7 @@ package WayofTime.bloodmagic.registry;
|
|||
|
||||
import WayofTime.bloodmagic.compat.ICompatibility;
|
||||
import WayofTime.bloodmagic.compat.jei.CompatibilityJustEnoughItems;
|
||||
import WayofTime.bloodmagic.compat.waila.CompatibilityWaila;
|
||||
import net.minecraftforge.fml.common.Loader;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
@ -13,6 +14,7 @@ public class ModCompatibility
|
|||
public static void registerModCompat()
|
||||
{
|
||||
compatibilities.add(new CompatibilityJustEnoughItems());
|
||||
compatibilities.add(new CompatibilityWaila());
|
||||
|
||||
for (ICompatibility compat : compatibilities)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue