本文整理汇总了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);
}
示例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();
}
示例3: installAPI
import openmods.access.ApiProviderRegistry; //导入依赖的package包/类
public static void installAPI(ApiProviderRegistry<IApiInterface> registry) {
registry.registerClass(AdapterFactoryWrapperOC.class);
}
示例4: installAPI
import openmods.access.ApiProviderRegistry; //导入依赖的package包/类
public static void installAPI(ApiProviderRegistry<IApiInterface> registry) {
registry.registerClass(AdapterFactoryWrapperCC.class);
}
示例5: LegacyApiAccess
import openmods.access.ApiProviderRegistry; //导入依赖的package包/类
public LegacyApiAccess(ApiProviderRegistry<IApiInterface> apiRegistry) {
super(apiRegistry);
}