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


Java LoadController类代码示例

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


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

示例1: injectLoader

import net.minecraftforge.fml.common.LoadController; //导入依赖的package包/类
@Unsafe(Unsafe.REFLECT_API)
protected void injectLoader() {
	List<ModContainer> mods = $(Loader.instance(), "mods");
	$(Loader.instance(), "mods<", ImmutableList.builder().addAll(mods).add(this).build());
	$(Loader.instance(), "namedMods<", Maps.uniqueIndex(mods, ModContainer::getModId));
	LoadController modController = $(Loader.instance(), "modController");
	Multimap<String, ModState> modStates = $(modController, "modStates");
	modStates.put(getModId(), ModState.AVAILABLE);
	Map<String, String> modNames = $(modController, "modNames");
	modNames.put(getModId(), getName());
	List<ModContainer> activeModList = $(modController, "activeModList");
	activeModList = Lists.newArrayList(activeModList);
	activeModList.add(this);
	$(modController, "activeModList<", activeModList);
	ImmutableMap<String,EventBus> eventChannels = $(modController, "eventChannels");
	$(modController, "eventChannels<", ImmutableMap.builder().putAll(eventChannels).put(getModId(), new EventBus()).build());
}
 
开发者ID:NekoCaffeine,项目名称:Alchemy,代码行数:18,代码来源:AlchemyDLCLoader.java

示例2: setActiveContainer

import net.minecraftforge.fml.common.LoadController; //导入依赖的package包/类
/**
 * Warning, this method break into the Loader and LoadController. It will change the current active ModContainer.
 *
 * @param container The mod container will be changed into.
 */
public static void setActiveContainer(ModContainer container)
{
	ReflectionHelper.setPrivateValue(LoadController.class,
			(LoadController) ReflectionHelper.getPrivateValue(Loader.class,
					Loader.instance(),
					"modController"),
			container,
			"activeContainer");
}
 
开发者ID:InfinityStudio,项目名称:InspiringWorld,代码行数:15,代码来源:FMLLoadingUtil.java

示例3: registerBus

import net.minecraftforge.fml.common.LoadController; //导入依赖的package包/类
@Override
public boolean registerBus(EventBus bus, LoadController controller) {
	return true;
}
 
开发者ID:astronautlabs,项目名称:rezolve,代码行数:5,代码来源:RezolveModContainer.java

示例4: registerBus

import net.minecraftforge.fml.common.LoadController; //导入依赖的package包/类
@Override
public boolean registerBus(EventBus bus, LoadController controller) {

	bus.register(this);
	return true;
}
 
开发者ID:PorPit,项目名称:MineCamera,代码行数:7,代码来源:CamDummy.java

示例5: registerBus

import net.minecraftforge.fml.common.LoadController; //导入依赖的package包/类
@Override
public boolean registerBus(EventBus bus, LoadController controller)
{
    return true;
}
 
开发者ID:ustc-zzzz,项目名称:AuthlibLoginHelper,代码行数:6,代码来源:AuthlibLoginHelperModContainer.java

示例6: registerBus

import net.minecraftforge.fml.common.LoadController; //导入依赖的package包/类
@Override
public boolean registerBus(EventBus bus, LoadController controller) {
    return true;
}
 
开发者ID:raoulvdberge,项目名称:spawnerimbuer,代码行数:5,代码来源:SpawnerImbuerContainer.java

示例7: registerBus

import net.minecraftforge.fml.common.LoadController; //导入依赖的package包/类
@Override
public boolean registerBus(EventBus bus, LoadController controller)
{
    bus.register(this);
    return true;
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:7,代码来源:ForgeModContainer.java

示例8: registerBus

import net.minecraftforge.fml.common.LoadController; //导入依赖的package包/类
@Override
public boolean registerBus(EventBus bus, LoadController controller) {
    bus.register(this);
    return true;
}
 
开发者ID:TheCBProject,项目名称:CCTweaks,代码行数:6,代码来源:CCTweaks.java

示例9: registerBus

import net.minecraftforge.fml.common.LoadController; //导入依赖的package包/类
@Override
public boolean registerBus(EventBus bus, LoadController controller)
{
    return false;
}
 
开发者ID:dags-,项目名称:CreativeBlock,代码行数:6,代码来源:BlockPack.java

示例10: registerBus

import net.minecraftforge.fml.common.LoadController; //导入依赖的package包/类
@Override
public boolean registerBus(EventBus bus, LoadController controller)
{
	return true;
}
 
开发者ID:InfinityStudio,项目名称:InspiringWorld,代码行数:6,代码来源:LibModContainer.java

示例11: registerBus

import net.minecraftforge.fml.common.LoadController; //导入依赖的package包/类
@Override
public boolean registerBus(EventBus bus, LoadController controller) { return true; }
 
开发者ID:NekoCaffeine,项目名称:Alchemy,代码行数:3,代码来源:AlchemyModContainer.java

示例12: registerBus

import net.minecraftforge.fml.common.LoadController; //导入依赖的package包/类
@Override
public boolean registerBus(EventBus bus, LoadController controller) {
	bus.register(this);
	return true;
}
 
开发者ID:Deadrik,项目名称:TFC2,代码行数:6,代码来源:TFC2Core.java

示例13: registerBus

import net.minecraftforge.fml.common.LoadController; //导入依赖的package包/类
@Override
public boolean registerBus(EventBus bus, LoadController lc)
{
    bus.register(this);
    return true;
}
 
开发者ID:noto0648,项目名称:SasaLib,代码行数:7,代码来源:SasaLibAsmCore.java


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