當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。