当前位置: 首页>>代码示例>>Java>>正文


Java ApiProviderRegistry类代码示例

本文整理汇总了Java中openmods.access.ApiProviderRegistry的典型用法代码示例。如果您正苦于以下问题:Java ApiProviderRegistry类的具体用法?Java ApiProviderRegistry怎么用?Java ApiProviderRegistry使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ApiProviderRegistry类属于openmods.access包,在下文中一共展示了ApiProviderRegistry类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: ApiProviderAdapter

import openmods.access.ApiProviderRegistry; //导入依赖的package包/类
public ApiProviderAdapter(ApiProviderRegistry<IApiInterface> apiRegistry) {
	super(apiRegistry);
}
 
开发者ID:OpenMods,项目名称:OpenBlocks,代码行数:4,代码来源:ApiSetup.java

示例2: preInit

import openmods.access.ApiProviderRegistry; //导入依赖的package包/类
@EventHandler
public void preInit(FMLPreInitializationEvent evt) {
	startupHelper.registerBlocksHolder(OpenPeripheralAddons.Blocks.class);
	startupHelper.registerItemsHolder(OpenPeripheralAddons.Items.class);

	if (Loader.isModLoaded(Mods.COMPUTERCRAFT)) ModuleComputerCraft.preInit(startupHelper);
	if (Loader.isModLoaded(Mods.RAILCRAFT)) ModuleRailcraft.preInit(startupHelper);

	startupHelper.preInit(evt.getSuggestedConfigurationFile());

	Recipes.register();
	MetasGeneric.registerItems();

	NetworkEventManager.INSTANCE
			.startRegistration()
			.register(TerminalEvent.PrivateDrawableReset.class)
			.register(TerminalEvent.PublicDrawableReset.class)
			.register(TerminalEvent.PrivateStructureReset.class)
			.register(TerminalEvent.PublicStructureReset.class)

			.register(TerminalEvent.PrivateClear.class)
			.register(TerminalEvent.PublicClear.class)

			.register(TerminalEvent.PrivateDrawableData.class)
			.register(TerminalEvent.PublicDrawableData.class)
			.register(TerminalEvent.PrivateStructureData.class)
			.register(TerminalEvent.PublicStructureData.class)

			.register(GlassesSignalCaptureEvent.class)
			.register(GlassesStopCaptureEvent.class)
			.register(GlassesMouseWheelEvent.class)
			.register(GlassesMouseButtonEvent.class)
			.register(GlassesComponentMouseWheelEvent.class)
			.register(GlassesComponentMouseButtonEvent.class)
			.register(GlassesMouseDragEvent.class)
			.register(GlassesKeyDownEvent.class)
			.register(GlassesKeyUpEvent.class)
			.register(GlassesChangeBackgroundEvent.class)
			.register(GlassesSetDragParamsEvent.class)
			.register(GlassesSetKeyRepeatEvent.class)
			.register(GlassesSetGuiVisibilityEvent.class);

	Items.generic.initRecipes();

	MinecraftForge.EVENT_BUS.register(TerminalManagerServer.instance.createForgeListener());
	FMLCommonHandler.instance().bus().register(TerminalManagerServer.instance.createFmlListener());

	NetworkRegistry.INSTANCE.registerGuiHandler(instance, OpenMods.proxy.wrapHandler(null));

	TerminalIdAccess.instance.register(new TerminalIdAccess.InterfaceGetter());
	TerminalIdAccess.instance.register(new TerminalIdAccess.InterfaceSetter());

	TerminalIdAccess.instance.register(new NbtGuidProviders.NbtGetter());
	TerminalIdAccess.instance.register(new NbtGuidProviders.NbtSetter());

	ApiFactory.instance.createApi(ApiHolder.class, IApiInterface.class, evt.getAsmData(),
			new ApiProviderSetup<IApiInterface>() {
				@Override
				public void setup(ApiProviderRegistry<IApiInterface> registry) {
					registry.registerInstance(TerminalIdAccess.instance);
				}
			});

	proxy.preInit();
}
 
开发者ID:OpenMods,项目名称:OpenPeripheral-Addons,代码行数:66,代码来源:OpenPeripheralAddons.java

示例3: installAPI

import openmods.access.ApiProviderRegistry; //导入依赖的package包/类
public static void installAPI(ApiProviderRegistry<IApiInterface> registry) {
	registry.registerClass(AdapterFactoryWrapperOC.class);
}
 
开发者ID:OpenMods,项目名称:OpenPeripheral,代码行数:4,代码来源:ModuleOpenComputers.java

示例4: installAPI

import openmods.access.ApiProviderRegistry; //导入依赖的package包/类
public static void installAPI(ApiProviderRegistry<IApiInterface> registry) {
	registry.registerClass(AdapterFactoryWrapperCC.class);
}
 
开发者ID:OpenMods,项目名称:OpenPeripheral,代码行数:4,代码来源:ModuleComputerCraft.java

示例5: LegacyApiAccess

import openmods.access.ApiProviderRegistry; //导入依赖的package包/类
public LegacyApiAccess(ApiProviderRegistry<IApiInterface> apiRegistry) {
	super(apiRegistry);
}
 
开发者ID:OpenMods,项目名称:OpenPeripheral,代码行数:4,代码来源:ApiSetup.java


注:本文中的openmods.access.ApiProviderRegistry类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。