本文整理汇总了Java中mcp.mobius.waila.api.IWailaRegistrar.addConfig方法的典型用法代码示例。如果您正苦于以下问题:Java IWailaRegistrar.addConfig方法的具体用法?Java IWailaRegistrar.addConfig怎么用?Java IWailaRegistrar.addConfig使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mcp.mobius.waila.api.IWailaRegistrar
的用法示例。
在下文中一共展示了IWailaRegistrar.addConfig方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: registerAddon
import mcp.mobius.waila.api.IWailaRegistrar; //导入方法依赖的package包/类
public static void registerAddon (IWailaRegistrar register) {
final DarkUtilsTileProvider dataProvider = new DarkUtilsTileProvider();
register.registerStackProvider(dataProvider, BlockVectorPlate.class);
register.registerStackProvider(dataProvider, BlockUpdateDetector.class);
register.registerStackProvider(dataProvider, BlockSneaky.class);
register.registerStackProvider(dataProvider, BlockFakeTNT.class);
register.registerBodyProvider(dataProvider, BlockFilter.class);
register.registerBodyProvider(dataProvider, BlockTimer.class);
register.registerNBTProvider(dataProvider, BlockTimer.class);
register.registerNBTProvider(dataProvider, BlockSneaky.class);
register.addConfig("DarkUtils", CONFIG_FILTER_TYPE);
register.addConfig("DarkUtils", CONFIG_TIMER_TIME);
register.addConfig("DarkUtils", CONFIG_SNEAKY_OWNERS);
register.addConfig("DarkUtils", CONFIG_FEEDER_INFO);
}
示例2: callbackRegister
import mcp.mobius.waila.api.IWailaRegistrar; //导入方法依赖的package包/类
@Optional.Method(modid = "Waila")
public static void callbackRegister(final IWailaRegistrar register) {
ModLog.info("Registering Waila handler...");
final WailaHandler instance = new WailaHandler();
switch(ModOptions.getWailaDataLocation()) {
case 0:
register.registerHeadProvider(instance, Block.class);
break;
case 1:
default:
register.registerBodyProvider(instance, Block.class);
break;
case 2:
register.registerTailProvider(instance, Block.class);
break;
}
register.registerStackProvider(instance, MachineVendingTop.class);
// Options
register.addConfig(ThermalRecycling.MOD_NAME, OPTION_REVEAL_ON_SNEAKING, false);
}
示例3: register
import mcp.mobius.waila.api.IWailaRegistrar; //导入方法依赖的package包/类
public static void register(IWailaRegistrar reg) {
// Config
reg.addConfig("Falling Meteors", "meteors.meteorTemp", "Show Meteor Temperature");
reg.addConfig("Falling Meteors", "meteors.shieldData", "Show Meteor Shield Data");
reg.addConfig("Falling Meteors", "meteors.timerMode", "Show Timer Mode");
// Registration
reg.registerBodyProvider(new TimerDataProvider(), BlockMeteorTimer.class);
reg.registerBodyProvider(new MeteorDataProvider(), BlockMeteor.class);
reg.registerBodyProvider(new MeteorDataProvider(), BlockFrezarite.class);
reg.registerBodyProvider(new ShieldDataProvider(), BlockMeteorShield.class);
MeteorsMod.log.info("Waila mod found. Waila integration enabled.");
}
示例4: callbackRegister
import mcp.mobius.waila.api.IWailaRegistrar; //导入方法依赖的package包/类
public static void callbackRegister(IWailaRegistrar reg) {
reg.addConfig("TerraFirmaCraft", "tfc.oreQuality");
reg.registerStackProvider(new WAILAData(), TEModOre.class);
reg.registerStackProvider(new WAILAData(), TEWireDrawBench.class);
reg.registerHeadProvider(new WAILAData(), TEModOre.class);
reg.registerBodyProvider(new WAILAData(), TEModOre.class);
reg.registerBodyProvider(new WAILAData(), TELatexExtractor.class);
reg.registerBodyProvider(new WAILAData(), TEWireDrawBench.class);
}
示例5: init
import mcp.mobius.waila.api.IWailaRegistrar; //导入方法依赖的package包/类
public static void init(IWailaRegistrar registrar){
registrar.addConfig(Reference.MOD_NAME, "rfdrills.waila_rf", "option.rfdrills.waila_rf");
registrar.addConfig(Reference.MOD_NAME, "rfdrills.waila_mode", "option.rfdrills.waila_mode");
registrar.addConfig(Reference.MOD_NAME, "rfdrills.waila_mode.sneakingonly", "option.rfdrills.waila_mode.sneakingonly");
registrar.registerBodyProvider(getInstance(), Block.class);
}
示例6: callbackRegister
import mcp.mobius.waila.api.IWailaRegistrar; //导入方法依赖的package包/类
public static void callbackRegister(IWailaRegistrar registrar)
{
final String mod = "The Kitchen Mod";
registrar.addConfig(mod, "show_change_block_direction", true);
System.out.println("Register");
IWailaDataProvider provider = new WailaCompatibility();
registrar.registerBodyProvider(provider, BlockChangeBlock.class);
registrar.registerBodyProvider(provider, BlockToggleController.class);
registrar.registerStackProvider(provider, BlockToggleController.class);
}
示例7: callbackRegister
import mcp.mobius.waila.api.IWailaRegistrar; //导入方法依赖的package包/类
public static void callbackRegister(IWailaRegistrar registrar)
{
registrar.addConfig(StatCollector.translateToLocal("itemGroup.jabba"), "bb.itemtype", StatCollector.translateToLocal("text.jabba.waila.key.content"));
registrar.addConfig(StatCollector.translateToLocal("itemGroup.jabba"), "bb.itemnumb", StatCollector.translateToLocal("text.jabba.waila.key.quantity"));
registrar.addConfig(StatCollector.translateToLocal("itemGroup.jabba"), "bb.space", StatCollector.translateToLocal("text.jabba.waila.key.stacks"));
registrar.registerBodyProvider(new BBWailaProvider(), TileEntityBarrel.class);
}
示例8: load
import mcp.mobius.waila.api.IWailaRegistrar; //导入方法依赖的package包/类
public static void load(IWailaRegistrar registrar)
{
registrar.registerBodyProvider(INSTANCE,TileQTComponent.class);
registrar.registerBodyProvider(INSTANCE,TileQuantumTank.class);
registrar.registerNBTProvider(INSTANCE, TileQTComponent.class);
registrar.registerBodyProvider(INSTANCE, TileSolarCollector.class);
registrar.registerBodyProvider(INSTANCE, TileWaterGenerator.class);
registrar.registerBodyProvider(INSTANCE, TileSolarGenerator.class);
registrar.addConfig("M4thThings","option.m4ththings.showTankStorage");
}
示例9: callbackRegister
import mcp.mobius.waila.api.IWailaRegistrar; //导入方法依赖的package包/类
public static void callbackRegister(IWailaRegistrar registrar)
{
final String mod = "The Kitchen Mod";
registrar.addConfig(mod, "show_is_sandwich_ready", true);
registrar.addConfig(mod, "show_oven_contents", true);
registrar.addConfig(mod, "show_oven_status", true);
registrar.addConfig(mod, "show_pan_status", true);
registrar.registerBodyProvider(new WailaBoardDataProvider(), BlockBoard.class);
registrar.registerBodyProvider(new WailaOvenProvider(), BlockOven.class);
registrar.registerBodyProvider(new WailaPanProvider(), BlockFryingPan.class);
}
示例10: callbackRegister
import mcp.mobius.waila.api.IWailaRegistrar; //导入方法依赖的package包/类
public static void callbackRegister(IWailaRegistrar registrar) {
Provider provider = new Provider();
registrar.registerStackProvider(provider, BlockMoarSign.class);
registrar.registerBodyProvider(provider, BlockMoarSign.class);
registrar.addConfig(Reference.NAME, "showOrigin", Localization.INTEGRATION.WAILA.SHOW_ORIGIN.translate());
registrar.addConfig(Reference.NAME, "showMaterial", Localization.INTEGRATION.WAILA.SHOW_MATERIAL.translate(), false);
}
示例11: callbackRegister
import mcp.mobius.waila.api.IWailaRegistrar; //导入方法依赖的package包/类
public static void callbackRegister(IWailaRegistrar registrar){
SecurityCraft.log("Adding Waila support!");
registrar.addConfig("SecurityCraft", "securitycraft.showowner", ClientUtils.localize("waila.displayOwner"));
registrar.addConfig("SecurityCraft", "securitycraft.showmodules", ClientUtils.localize("waila.showModules"));
registrar.addConfig("SecurityCraft", "securitycraft.showpasswords", ClientUtils.localize("waila.showPasswords"));
registrar.addConfig("SecurityCraft", "securitycraft.showcustomname", ClientUtils.localize("waila.showCustomName"));
registrar.registerBodyProvider(new WailaDataProvider(), IOwnable.class);
registrar.registerStackProvider(new WailaDataProvider(), ICustomWailaDisplay.class);
}
示例12: callbackRegister
import mcp.mobius.waila.api.IWailaRegistrar; //导入方法依赖的package包/类
public static void callbackRegister(IWailaRegistrar registrar){
SecurityCraft.log("Adding Waila support!");
registrar.addConfig("SecurityCraft", "securitycraft.showowner", StatCollector.translateToLocal("waila.displayOwner"));
registrar.addConfig("SecurityCraft", "securitycraft.showmodules", StatCollector.translateToLocal("waila.showModules"));
registrar.addConfig("SecurityCraft", "securitycraft.showpasswords", StatCollector.translateToLocal("waila.showPasswords"));
registrar.addConfig("SecurityCraft", "securitycraft.showcustomname", StatCollector.translateToLocal("waila.showCustomName"));
registrar.registerBodyProvider(new WailaDataProvider(), IOwnable.class);
registrar.registerStackProvider(new WailaDataProvider(), ICustomWailaDisplay.class);
}
示例13: register
import mcp.mobius.waila.api.IWailaRegistrar; //导入方法依赖的package包/类
public static void register(IWailaRegistrar registrar) {
registrar.registerBodyProvider(new CartLiveryProvider(), EntityMinecart.class);
registrar.addConfig("CartLivery", "cartlivery.showPattern");
registrar.addConfig("CartLivery", "cartlivery.showResPack");
registrar.addConfig("CartLivery", "cartlivery.showColors");
}
示例14: callbackRegister
import mcp.mobius.waila.api.IWailaRegistrar; //导入方法依赖的package包/类
public static void callbackRegister(IWailaRegistrar registrar) {
registrar.addConfig("HexWool", "hexwool.showwoolcolor", "Show Wool Color");
registrar.registerBodyProvider(new WailaDataProvider(), BlockColoredWool.class);
}