本文整理匯總了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);
}