本文整理汇总了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);
}
示例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;
}
}
示例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);
}
示例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);
}
示例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);
}
}
示例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);
}
示例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());
// }
// }
}
示例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());
}
}
示例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.");
}
示例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");
}
}
示例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);
}
示例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);
}
示例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();
}
示例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);
}
示例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);
}