当前位置: 首页>>代码示例>>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;未经允许,请勿转载。