當前位置: 首頁>>代碼示例>>Java>>正文


Java IWailaRegistrar類代碼示例

本文整理匯總了Java中mcp.mobius.waila.api.IWailaRegistrar的典型用法代碼示例。如果您正苦於以下問題:Java IWailaRegistrar類的具體用法?Java IWailaRegistrar怎麽用?Java IWailaRegistrar使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


IWailaRegistrar類屬於mcp.mobius.waila.api包,在下文中一共展示了IWailaRegistrar類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: callback

import mcp.mobius.waila.api.IWailaRegistrar; //導入依賴的package包/類
public static void callback(IWailaRegistrar registrar) {
    registrar.registerBodyProvider(new WailaPneumaticHandler(), IPneumaticMachine.class);
    registrar.registerBodyProvider(new WailaPneumaticHandler(), IInfoForwarder.class);
    registrar.registerBodyProvider(new WailaHeatHandler(), IHeatExchanger.class);
    registrar.registerBodyProvider(new WailaSemiBlockHandler(), Block.class);
    registrar.registerBodyProvider(new WailaRedstoneControl(), IRedstoneControl.class);
    registrar.registerBodyProvider(new WailaTubeModuleHandler(), TileEntityPressureTube.class);
    registrar.registerBodyProvider(new WailaEntityHandler(), IPressurizable.class);
    registrar.registerBodyProvider(new WailaCamoHandler(), BlockPneumaticCraftCamo.class);

    registrar.registerNBTProvider(new WailaPneumaticHandler(), IPneumaticMachine.class);
    registrar.registerNBTProvider(new WailaPneumaticHandler(), IInfoForwarder.class);
    registrar.registerNBTProvider(new WailaHeatHandler(), IHeatExchanger.class);
    registrar.registerNBTProvider(new WailaSemiBlockHandler(), Block.class);
    registrar.registerNBTProvider(new WailaRedstoneControl(), IRedstoneControl.class);
    registrar.registerNBTProvider(new WailaTubeModuleHandler(), TileEntityPressureTube.class);
    registrar.registerNBTProvider(new WailaEntityHandler(), IPressurizable.class);
    registrar.registerNBTProvider(new WailaCamoHandler(), BlockPneumaticCraftCamo.class);
}
 
開發者ID:TeamPneumatic,項目名稱:pnc-repressurized,代碼行數:20,代碼來源:WailaCallback.java

示例2: load

import mcp.mobius.waila.api.IWailaRegistrar; //導入依賴的package包/類
public static void load(IWailaRegistrar registrar) {
    MobBlocker.logger.info("WailaCompatibility.load");
    if (!registered){
        throw new RuntimeException("Please register this handler using the provided method.");
    }
    if (!loaded) {
        registrar.registerHeadProvider(INSTANCE, BlockChunkProtector.class);
        registrar.registerBodyProvider(INSTANCE, BlockChunkProtector.class);
        registrar.registerTailProvider(INSTANCE, BlockChunkProtector.class);

        registrar.registerHeadProvider(INSTANCE, BlockAreaProtector.class);
        registrar.registerBodyProvider(INSTANCE, BlockAreaProtector.class);
        registrar.registerTailProvider(INSTANCE, BlockAreaProtector.class);
        loaded = true;
    }
}
 
開發者ID:Maxwell-lt,項目名稱:MobBlocker,代碼行數:17,代碼來源:WailaCompatibility.java

示例3: onWailaCall

import mcp.mobius.waila.api.IWailaRegistrar; //導入依賴的package包/類
public static void onWailaCall(IWailaRegistrar registrar) {
	TMLogger.info("Loading Waila handler");
	registrar.registerBodyProvider(new WailaEnderMemory(), EnderMemory.class);
	registrar.registerNBTProvider(new WailaEnderMemory(), EnderMemory.class);
	registrar.registerBodyProvider(new WailaFusionInjector(), FusionFluidInjector.class);
	registrar.registerNBTProvider(new WailaFusionInjector(), FusionFluidInjector.class);
	registrar.registerBodyProvider(new WailaFusionExtractor(), FusionFluidExtractor.class);
	registrar.registerNBTProvider(new WailaFusionExtractor(), FusionFluidExtractor.class);
	registrar.registerStackProvider(new WailaEnderSensor(), EnderPlayerSensor.class);
	registrar.registerNBTProvider(new WailaEnderSensor(), EnderPlayerSensor.class);
	Config.initWailaConfigs(registrar);
	registrar.registerBodyProvider(new WailaEnergyHandler(), IEnergyStorageTile.class);
	registrar.registerNBTProvider(new WailaEnergyHandler(), IEnergyStorageTile.class);
	registrar.registerHeadProvider(new WailaTank(), TMTank.class);
	registrar.registerBodyProvider(new WailaTank(), TMTank.class);
	registrar.registerNBTProvider(new WailaTank(), TMTank.class);
	registrar.registerBodyProvider(new WailaOverloadInfo(), TileEntityTomsMod.class);
	registrar.registerStackProvider(new WailaHidden(), BlockHidden.class);
	registrar.registerNBTProvider(new WailaHidden(), BlockHidden.class);
}
 
開發者ID:tom5454,項目名稱:Toms-Mod,代碼行數:21,代碼來源:WailaHandler.java

示例4: 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

示例5: callback

import mcp.mobius.waila.api.IWailaRegistrar; //導入依賴的package包/類
public static void callback(IWailaRegistrar registrar) {
	registrar.registerNBTProvider(new EntityMinecartTEBaseProvider(), EntityMinecartTEBaseProvider.class);
	registrar.registerBodyProvider(new EntityMinecartFluidProvider(), EntityMinecartFluidTEBase.class);

	if(BoilerplateLib.getModuleHandler().isModuleEnabled("RF"))
	{
		registrar.registerBodyProvider(new EntityMinecartRFProvider(), EntityMinecartEnergyHandlerTEBase.class);
		registrar.registerBodyProvider(new BlockProviderRF(), BlockRFLoader.class);
		registrar.registerBodyProvider(new BlockProviderSided(), BlockRFLoader.class);
	}

	if(BoilerplateLib.getModuleHandler().isModuleEnabled("Extras"))
	{
		registrar.registerBodyProvider(new BlockFluidHandlerProviders(), TileEntityFluidBase.class);
	}
}
 
開發者ID:BrassGoggledCoders,項目名稱:MoarCarts,代碼行數:17,代碼來源:Register.java

示例6: 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

示例7: callbackRegister

import mcp.mobius.waila.api.IWailaRegistrar; //導入依賴的package包/類
@SuppressWarnings("UnusedDeclaration")
    public static void callbackRegister(IWailaRegistrar registrar) {
        TileEntityHandler instance = new TileEntityHandler();
        registrar.registerBodyProvider(instance, Block.class);
        registrar.registerNBTProvider(instance, Block.class);
//        for (Object o : TileEntity.nameToClassMap.entrySet()) {
//            Map.Entry entry = (Map.Entry) o;
//            String key = (String) entry.getKey();
//            Boolean isBlackListed = false;
//            for (String blackItem : Reference.blackList) {
//                if (key.equals(blackItem)) {
//                    isBlackListed = true;
//                    break;
//                }
//            }
//            if (!isBlackListed) {
//                registrar.registerBodyProvider(instance, (Class) entry.getValue());
//                registrar.registerNBTProvider(instance, (Class) entry.getValue());
//            }
//        }
    }
 
開發者ID:exzhawk,項目名稱:OmniOcular,代碼行數:22,代碼來源:TileEntityHandler.java

示例8: wailaRegister

import mcp.mobius.waila.api.IWailaRegistrar; //導入依賴的package包/類
@SuppressWarnings("unchecked")
public static void wailaRegister(IWailaRegistrar registrar) {
    BlockRegistry registry = instance();

    HashMap<String, Block> hash = (HashMap<String, Block>) registry.blockMap.clone();

    List<ItemBlock> listedRegistrars = new ArrayList<ItemBlock>();

    for (Map.Entry<String, Block> entry : hash.entrySet()) {
        ItemBlock ib = (ItemBlock) ItemBlock.getItemFromBlock(entry.getValue());
        if (ib instanceof IWailaDataProvider && !listedRegistrars.contains(ib)) {
            registrar.registerBodyProvider((IWailaDataProvider) ib, entry.getValue().getClass());
            listedRegistrars.add(ib);
        }

        if (entry.getValue() instanceof IWailaDataProvider)
            registrar.registerBodyProvider((IWailaDataProvider) entry.getValue(), entry.getValue().getClass());
    }
}
 
開發者ID:MSourceCoded,項目名稱:Quantum-Anomalies,代碼行數:20,代碼來源:BlockRegistry.java

示例9: 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

示例10: callbackRegister

import mcp.mobius.waila.api.IWailaRegistrar; //導入依賴的package包/類
public static void callbackRegister(IWailaRegistrar registrar){
    registrar.registerBodyProvider(new WailaPneumaticHandler(), IPneumaticMachine.class);
    registrar.registerBodyProvider(new WailaHeatHandler(), IHeatExchanger.class);
    registrar.registerBodyProvider(new WailaPlantHandler(), BlockPneumaticPlantBase.class);
    registrar.registerBodyProvider(new WailaSemiBlockHandler(), Block.class);
    registrar.registerBodyProvider(new WailaRedstoneControl(), IRedstoneControl.class);
    registrar.registerBodyProvider(new WailaTubeModuleHandler(), TileEntityPressureTube.class);
    registrar.registerNBTProvider(new WailaPneumaticHandler(), IPneumaticMachine.class);
    registrar.registerNBTProvider(new WailaHeatHandler(), IHeatExchanger.class);
    registrar.registerNBTProvider(new WailaTubeModuleHandler(), TileEntityPressureTube.class);
    registrar.registerNBTProvider(new WailaSemiBlockHandler(), Block.class);
    registrar.registerNBTProvider(new WailaRedstoneControl(), IRedstoneControl.class);

    if(Loader.isModLoaded(ModIds.FMP)) {
        registrar.registerBodyProvider(new WailaFMPHandler(), "tile.pressureTube");
        registrar.registerBodyProvider(new WailaFMPHandler(), "tile.advancedPressureTube");
    }
}
 
開發者ID:MineMaarten,項目名稱:PneumaticCraft,代碼行數:19,代碼來源:Waila.java

示例11: load

import mcp.mobius.waila.api.IWailaRegistrar; //導入依賴的package包/類
public static void load(IWailaRegistrar registrar) {
	System.out.println("Bundler: Waila Registration....");
	//registrar.registerHeadProvider(INSTANCE, BlockBase.class);
	registrar.registerBodyProvider(INSTANCE, BlockBase.class);
	registrar.registerBodyProvider(INSTANCE, BlockBase.class);
	//registrar.registerNBTProvider(INSTANCE, TileEntityBase.class);
}
 
開發者ID:astronautlabs,項目名稱:rezolve,代碼行數:8,代碼來源:WailaCompat.java

示例12: callbackRegister

import mcp.mobius.waila.api.IWailaRegistrar; //導入依賴的package包/類
public static void callbackRegister(IWailaRegistrar registrar) {
	CurrencyWailaProvider dataProvider = new CurrencyWailaProvider();
	registrar.registerBodyProvider(dataProvider, BlockATM.class);
	registrar.registerBodyProvider(dataProvider, TileEntityShopController.class);
	registrar.registerNBTProvider(dataProvider, TileEntityShopController.class);
	registrar.registerBodyProvider(dataProvider, TileEntityDisplay.class);
	registrar.registerBodyProvider(dataProvider, TileEntityStockCrate.class);
}
 
開發者ID:Zundrel,項目名稱:Never-Enough-Currency,代碼行數:9,代碼來源:CurrencyWailaProvider.java

示例13: callbackRegister

import mcp.mobius.waila.api.IWailaRegistrar; //導入依賴的package包/類
public static void callbackRegister(IWailaRegistrar registrar)
{
    WailaCS4DataProvider provider = new WailaCS4DataProvider();

    for (Class block : WailaData.stackProviderBlocks)
    {
        registrar.registerStackProvider(provider, block);
    }

    WailaData.stackProviderBlocks.clear();
}
 
開發者ID:cubex2,項目名稱:customstuff4,代碼行數:12,代碼來源:CompatWaila.java

示例14: registerPlugin

import mcp.mobius.waila.api.IWailaRegistrar; //導入依賴的package包/類
@Optional.Method(modid = "Waila")
public static void registerPlugin(IWailaRegistrar registrar) {
    WailaPluginTank instance = new WailaPluginTank();
    registrar.registerStackProvider(instance, TileEntityTankFrame.class);

    registrar.registerBodyProvider(instance, AbstractTankTile.class);
}
 
開發者ID:Lordmau5,項目名稱:FFS,代碼行數:8,代碼來源:WailaPluginTank.java

示例15: register

import mcp.mobius.waila.api.IWailaRegistrar; //導入依賴的package包/類
public static void register(IWailaRegistrar registrar) {
//		registrar.registerStackProvider(HUDHandlerVariantTileEntityBlocks.INSTANCE, BlockColoredRotatable.class);
//		registrar.registerBodyProvider(new HUDHandlerRotatable(BlockColoredRotatable.FACING), BlockColoredRotatable.class);
//		registrar.registerBodyProvider(new HUDHandlerMultiRotatable(BlockColoredMultiRotatable.FACE_ROTATION), BlockColoredMultiRotatable.class);
//
//		registrar.registerBodyProvider(new HUDHandlerRotatable(BlockRotatableLamp.FACING), BlockRotatableLamp.class);
//		registrar.registerBodyProvider(new HUDHandlerRotatable(BlockModChest.FACING), BlockModChest.class);
//
//		registrar.registerBodyProvider(new HUDHandlerRotatable(BlockPlane.HORIZONTAL_ROTATION, "tile.aquaregia:plane.horizontalRotation.desc"), BlockPlane.class);
//		registrar.registerBodyProvider(new HUDHandlerVerticalRotatable(BlockPlane.VERTICAL_ROTATION), BlockPlane.class);
    }
 
開發者ID:droidicus,項目名稱:AquaRegia,代碼行數:12,代碼來源:WailaCompat.java


注:本文中的mcp.mobius.waila.api.IWailaRegistrar類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。