本文整理汇总了Java中cpw.mods.fml.common.LoadController类的典型用法代码示例。如果您正苦于以下问题:Java LoadController类的具体用法?Java LoadController怎么用?Java LoadController使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
LoadController类属于cpw.mods.fml.common包,在下文中一共展示了LoadController类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: registerBus
import cpw.mods.fml.common.LoadController; //导入依赖的package包/类
@Override
public boolean registerBus(EventBus bus, LoadController controller)
{
if (this.enabled)
{
FMLLog.fine("Enabling mod %s", getModId());
this.bus = bus;
this.controller = controller;
bus.register(this);
return true;
}
else
{
return false;
}
}
示例2: registerBus
import cpw.mods.fml.common.LoadController; //导入依赖的package包/类
@Override
public boolean registerBus(EventBus bus, LoadController controller)
{
System.out.println("********* registerBus. OK");
bus.register(this);
return true;
}
示例3: registerItem
import cpw.mods.fml.common.LoadController; //导入依赖的package包/类
private static <T extends Item> T registerItem(String modId, T item, String name) {
Injector modController = new Injector(new Injector(Loader.instance(), Loader.class).getField("modController"), LoadController.class);
Object old = modController.getField("activeContainer");
modController.setField("activeContainer", Loader.instance().getIndexedModList().get(modId));
GameRegistry.registerItem(item, name);
modController.setField("activeContainer", old);
return item;
}
示例4: registerBus
import cpw.mods.fml.common.LoadController; //导入依赖的package包/类
@Override
public boolean registerBus(EventBus bus, LoadController controller)
{
bus.register(this);
return true;
}
示例5: registerBus
import cpw.mods.fml.common.LoadController; //导入依赖的package包/类
@Override
public boolean registerBus(EventBus bus, LoadController controller) {
bus.register(this);
return true;
}
示例6: registerBus
import cpw.mods.fml.common.LoadController; //导入依赖的package包/类
@Override
public boolean registerBus(EventBus bus, LoadController controller)
{
bus.register(this);
return true;
}
示例7: registerBus
import cpw.mods.fml.common.LoadController; //导入依赖的package包/类
@Override
public boolean registerBus(EventBus bus, LoadController controller) {
bus.register(this);
return true;
}
示例8: registerBus
import cpw.mods.fml.common.LoadController; //导入依赖的package包/类
public boolean registerBus(final EventBus eventBus, final LoadController loadController) {
eventBus.register((Object)this.mEventHandler);
eventBus.register(this.mMod);
return true;
}
示例9: registerBus
import cpw.mods.fml.common.LoadController; //导入依赖的package包/类
public boolean registerBus(final EventBus bus, final LoadController controller) {
bus.register((Object)this);
return true;
}
示例10: registerBus
import cpw.mods.fml.common.LoadController; //导入依赖的package包/类
public boolean registerBus(final EventBus eventBus, final LoadController loadController) {
return this.mContainer.registerBus(eventBus, loadController);
}
示例11: registerBus
import cpw.mods.fml.common.LoadController; //导入依赖的package包/类
@Override
public boolean registerBus(EventBus bus, LoadController controller) {
bus.register(this);
return true;
}
示例12: registerBus
import cpw.mods.fml.common.LoadController; //导入依赖的package包/类
@Override
public boolean registerBus(EventBus bus, LoadController controller) {
return true;
}
示例13: registerBus
import cpw.mods.fml.common.LoadController; //导入依赖的package包/类
/**
* Registers the events
*/
@Override
public boolean registerBus(EventBus bus, LoadController controller) {
bus.register(this);
return true;
}
示例14: registerBus
import cpw.mods.fml.common.LoadController; //导入依赖的package包/类
@Override
public boolean registerBus(final EventBus bus, final LoadController controller) {
bus.register(this);
return true;
}
示例15: registerBus
import cpw.mods.fml.common.LoadController; //导入依赖的package包/类
@Override
public boolean registerBus(EventBus bus, LoadController controller)
{
bus.register(this);
return enabled;
}