当前位置: 首页>>代码示例>>Java>>正文


Java IWailaRegistrar.addConfig方法代码示例

本文整理汇总了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);
    }
 
开发者ID:Darkhax-Minecraft,项目名称:Dark-Utilities,代码行数:21,代码来源:DarkUtilsTileProvider.java

示例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);
}
 
开发者ID:OreCruncher,项目名称:ThermalRecycling,代码行数:25,代码来源:WailaHandler.java

示例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.");
	
}
 
开发者ID:AlexDGr8r,项目名称:MeteorsMod,代码行数:17,代码来源:Waila.java

示例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);
	
}
 
开发者ID:Shurgent,项目名称:TFCTech,代码行数:13,代码来源:WAILAData.java

示例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);
}
 
开发者ID:goldenapple3,项目名称:RFDrills,代码行数:8,代码来源:WailaCompat.java

示例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);
}
 
开发者ID:MrSpring,项目名称:ToggleBlocks,代码行数:14,代码来源:WailaCompatibility.java

示例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);
}
 
开发者ID:Dennisbonke,项目名称:JABBA,代码行数:8,代码来源:BBWailaProvider.java

示例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");
}
 
开发者ID:M4thG33k,项目名称:M4thThings,代码行数:13,代码来源:WailaInteraction.java

示例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);
}
 
开发者ID:MrSpring,项目名称:TheKitchenMod,代码行数:14,代码来源:WailaDataProvider.java

示例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);
}
 
开发者ID:GoryMoon,项目名称:MoarSigns,代码行数:9,代码来源:Provider.java

示例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);
}
 
开发者ID:Geforce132,项目名称:SecurityCraft,代码行数:11,代码来源:WailaDataProvider.java

示例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);
}
 
开发者ID:Geforce132,项目名称:SecurityCraft,代码行数:11,代码来源:WailaDataProvider.java

示例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");
}
 
开发者ID:octarine-noise,项目名称:CartLivery,代码行数:7,代码来源:CartLiveryWailaModule.java

示例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);
}
 
开发者ID:Techjar,项目名称:HexWool,代码行数:5,代码来源:WailaDataProvider.java


注:本文中的mcp.mobius.waila.api.IWailaRegistrar.addConfig方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。