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