當前位置: 首頁>>代碼示例>>Java>>正文


Java FMLPreInitializationEvent類代碼示例

本文整理匯總了Java中cpw.mods.fml.common.event.FMLPreInitializationEvent的典型用法代碼示例。如果您正苦於以下問題:Java FMLPreInitializationEvent類的具體用法?Java FMLPreInitializationEvent怎麽用?Java FMLPreInitializationEvent使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


FMLPreInitializationEvent類屬於cpw.mods.fml.common.event包,在下文中一共展示了FMLPreInitializationEvent類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: preInit

import cpw.mods.fml.common.event.FMLPreInitializationEvent; //導入依賴的package包/類
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
	ConfigurationHandler.INSTANCE.init(new File(event.getModConfigurationDirectory().getAbsolutePath() + File.separator + Reference.MOD_ID + ".cfg"));

	GameRegistry.registerWorldGenerator(new EtFuturumWorldGenerator(), 0);
	GameRegistry.registerWorldGenerator(new EtFuturumNetherGenerator(), 1);

	ModBlocks.init();
	ModItems.init();
	ModEnchantments.init();

	OceanMonument.makeMap();

	NetworkRegistry.INSTANCE.registerGuiHandler(instance, proxy);
	networkWrapper = NetworkRegistry.INSTANCE.newSimpleChannel(Reference.MOD_ID);
	networkWrapper.registerMessage(ArmourStandInteractHandler.class, ArmourStandInteractMessage.class, 0, Side.SERVER);
	networkWrapper.registerMessage(BlackHeartParticlesHandler.class, BlackHeartParticlesMessage.class, 1, Side.CLIENT);
	networkWrapper.registerMessage(SetPlayerModelHandler.class, SetPlayerModelMessage.class, 2, Side.CLIENT);
}
 
開發者ID:jm-organization,項目名稱:connor41-etfuturum2,代碼行數:20,代碼來源:EtFuturum.java

示例2: addProps

import cpw.mods.fml.common.event.FMLPreInitializationEvent; //導入依賴的package包/類
@Override
public void addProps(FMLPreInitializationEvent event, Configuration config)
{
	this.Enabled = config.get(this.nameInternal, "Am I enabled? (default true)", true).getBoolean(true);
	this.namePublic = config.get(this.nameInternal, "What's my name?", this.nameInternal).getString();

	this.DmgMin = config.get(this.nameInternal, "What damage am I dealing, at least? (default 1)", 1).getInt();
	this.DmgMax = config.get(this.nameInternal, "What damage am I dealing, tops? (default 3)", 3).getInt();

	this.Speed = config.get(this.nameInternal, "How fast are my projectiles? (default 2.0 BPT (Blocks Per Tick))", 2.0).getDouble();

	this.Kickback = (byte) config.get(this.nameInternal, "How hard do I kick the user back when firing? (default 1)", 1).getInt();
	this.Spread = (float) config.get(this.nameInternal, "How accurate am I? (default 10 spread)", 10).getDouble();

	this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default true. They'll probably figure it out.)", true).getBoolean(true);
}
 
開發者ID:Domochevsky,項目名稱:minecraft-quiverbow,代碼行數:17,代碼來源:SugarEngine.java

示例3: addProps

import cpw.mods.fml.common.event.FMLPreInitializationEvent; //導入依賴的package包/類
@Override
public void addProps(FMLPreInitializationEvent event, Configuration config)
{
	this.Enabled = config.get(this.nameInternal, "Am I enabled? (default true)", true).getBoolean(true);
	this.namePublic = config.get(this.nameInternal, "What's my name?", this.nameInternal).getString();

	this.DmgMin = config.get(this.nameInternal, "What damage am I dealing, at least? (default 10)", 10).getInt();
	this.DmgMax = config.get(this.nameInternal, "What damage am I dealing, tops? (default 16)", 16).getInt();

	this.Speed = config.get(this.nameInternal, "How fast are my projectiles? (default 2.5 BPT (Blocks Per Tick))", 2.5).getDouble();
	this.Knockback = config.get(this.nameInternal, "How hard do I knock the target back when firing? (default 1)", 1).getInt();

	this.Cooldown = config.get(this.nameInternal, "How long until I can fire again? (default 8 ticks)", 8).getInt();

	this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default false.)", false).getBoolean(true);
}
 
開發者ID:Domochevsky,項目名稱:minecraft-quiverbow,代碼行數:17,代碼來源:Crossbow_AutoImp.java

示例4: addProps

import cpw.mods.fml.common.event.FMLPreInitializationEvent; //導入依賴的package包/類
@Override
public void addProps(FMLPreInitializationEvent event, Configuration config)
{
	this.Enabled = config.get(this.nameInternal, "Am I enabled? (default true)", true).getBoolean(true);
	this.namePublic = config.get(this.nameInternal, "What's my name?", this.nameInternal).getString();

	this.DmgMin = config.get(this.nameInternal, "What damage am I dealing, at least? (default 1)", 1).getInt();
	this.DmgMax = config.get(this.nameInternal, "What damage am I dealing, tops? (default 3)", 3).getInt();

	this.Speed = config.get(this.nameInternal, "How fast are my projectiles? (default 2.5 BPT (Blocks Per Tick))", 2.5).getDouble();

	this.Weakness_Strength = config.get(this.nameInternal, "How strong is my Weakness effect? (default 2)", 2).getInt();
	this.Weakness_Duration = config.get(this.nameInternal, "How long does my Weakness effect last? (default 40 ticks)", 40).getInt();
	this.Nausea_Duration = config.get(this.nameInternal, "How long does my Nausea effect last? (default 40 ticks)", 40).getInt();
	this.Hunger_Strength = config.get(this.nameInternal, "How strong is my Hunger effect? (default 2)", 2).getInt();
	this.Hunger_Duration = config.get(this.nameInternal, "How long does my Hunger effect last? (default 40 ticks)", 40).getInt();

	this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default true.)", true).getBoolean(true);
}
 
開發者ID:Domochevsky,項目名稱:minecraft-quiverbow,代碼行數:20,代碼來源:LapisCoil.java

示例5: addProps

import cpw.mods.fml.common.event.FMLPreInitializationEvent; //導入依賴的package包/類
@Override
public void addProps(FMLPreInitializationEvent event, Configuration config)
{
	this.Enabled = config.get(this.nameInternal, "Am I enabled? (default true)", true).getBoolean(true);
	this.namePublic = config.get(this.nameInternal, "What's my name?", this.nameInternal).getString();

	this.DmgMin = config.get(this.nameInternal, "What damage am I dealing, at least? (default 8)", 8).getInt();
	this.DmgMax = config.get(this.nameInternal, "What damage am I dealing, tops? (default 16)", 16).getInt();

	this.Speed = config.get(this.nameInternal, "How fast are my projectiles? (default 5.0 BPT (Blocks Per Tick))", 5.0).getDouble();
	this.Kickback = (byte) config.get(this.nameInternal, "How hard do I kick the user back when firing? (default 3)", 3).getInt();
	this.Cooldown = config.get(this.nameInternal, "How long until I can fire again? (default 40 ticks. That's 2 sec)", 40).getInt();

	this.PassThroughMax = config.get(this.nameInternal, "Through how many entities and blocks can I punch, tops? (default 5)", 5).getInt();
	this.MaxTicks = config.get(this.nameInternal, "How long does my beam exist, tops? (default 60 ticks)", 60).getInt();

	this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default true.)", true).getBoolean(true);
}
 
開發者ID:Domochevsky,項目名稱:minecraft-quiverbow,代碼行數:19,代碼來源:LightningRed.java

示例6: addProps

import cpw.mods.fml.common.event.FMLPreInitializationEvent; //導入依賴的package包/類
@Override
public void addProps(FMLPreInitializationEvent event, Configuration config)
{
	this.Enabled = config.get(this.nameInternal, "Am I enabled? (default true)", true).getBoolean(true);
	this.namePublic = config.get(this.nameInternal, "What's my name?", this.nameInternal).getString();

	this.DmgMin = config.get(this.nameInternal, "What damage am I dealing, at least? (default 4)", 4).getInt();
	this.DmgMax = config.get(this.nameInternal, "What damage am I dealing, tops? (default 8)", 8).getInt();

	this.Speed = config.get(this.nameInternal, "How fast are my projectiles? (default 1.7 BPT (Blocks Per Tick))", 1.7).getDouble();

	this.Cooldown = config.get(this.nameInternal, "How long until I can fire again? (default 15 ticks)", 15).getInt();

	this.Wither_Strength = config.get(this.nameInternal, "How strong is my Wither effect? (default 1)", 1).getInt();
	this.Wither_Duration = config.get(this.nameInternal, "How long does my Wither effect last? (default 61 ticks)", 61).getInt();

	this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default true.)", true).getBoolean(true);
}
 
開發者ID:Domochevsky,項目名稱:minecraft-quiverbow,代碼行數:19,代碼來源:OSP.java

示例7: addProps

import cpw.mods.fml.common.event.FMLPreInitializationEvent; //導入依賴的package包/類
@Override
public void addProps(FMLPreInitializationEvent event, Configuration config)
{
	this.Enabled = config.get(this.nameInternal, "Am I enabled? (default true)", true).getBoolean(true);
	this.namePublic = config.get(this.nameInternal, "What's my name?", this.nameInternal).getString();

	this.DmgMin = config.get(this.nameInternal, "What damage am I dealing, at least? (default 7)", 7).getInt();
	this.DmgMax = config.get(this.nameInternal, "What damage am I dealing, tops? (default 13)", 13).getInt();

	this.DmgMagicMin = config.get(this.nameInternal, "What magic damage am I dealing, at least? (default 6)", 6).getInt();
	this.DmgMagicMax = config.get(this.nameInternal, "What magic damage am I dealing, tops? (default 14)", 14).getInt();

	this.Speed = config.get(this.nameInternal, "How fast are my projectiles? (default 3.0 BPT (Blocks Per Tick))", 3.0).getDouble();

	this.Knockback = config.get(this.nameInternal, "How hard do I knock the target back when firing? (default 2)", 2).getInt();
	this.Kickback = (byte) config.get(this.nameInternal, "How hard do I kick the user back when firing? (default 6)", 6).getInt();

	this.Cooldown = config.get(this.nameInternal, "How long until I can fire again? (default 60 ticks)", 60).getInt();

	this.Wither_Strength = config.get(this.nameInternal, "How strong is my Wither effect? (default 3)", 3).getInt();
	this.Wither_Duration = config.get(this.nameInternal, "How long does my Wither effect last? (default 61 ticks)", 61).getInt();

	this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default false. Too high-power for them.)", false).getBoolean();
}
 
開發者ID:Domochevsky,項目名稱:minecraft-quiverbow,代碼行數:25,代碼來源:OWR.java

示例8: addProps

import cpw.mods.fml.common.event.FMLPreInitializationEvent; //導入依賴的package包/類
@Override
public void addProps(FMLPreInitializationEvent event, Configuration config)
{
	this.Enabled = config.get(this.nameInternal, "Am I enabled? (default true)", true).getBoolean(true);

	this.namePublic = config.get(this.nameInternal, "What's my name?", this.nameInternal).getString();

	this.DmgMin = config.get(this.nameInternal, "What damage am I dealing, at least? (default 20)", 20).getInt();
	this.DmgMax = config.get(this.nameInternal, "What damage am I dealing, tops? (default 30)", 30).getInt();

	this.Speed = config.get(this.nameInternal, "How fast are my projectiles? (default 3.0 BPT (Blocks Per Tick))", 3.0).getDouble();
	this.Knockback = config.get(this.nameInternal, "How hard do I knock the target back when firing? (default 2)", 2).getInt();

	this.FireDur = config.get(this.nameInternal, "How long is the target on fire? (default 15 sec)", 15).getInt();
	this.FireDurInGround = config.get(this.nameInternal, "How long do I keep burning when stuck in the ground? (default 10 sec)", 10).getInt();

	this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default false)", false).getBoolean(true);
}
 
開發者ID:Domochevsky,項目名稱:minecraft-quiverbow,代碼行數:19,代碼來源:Crossbow_Blaze.java

示例9: addProps

import cpw.mods.fml.common.event.FMLPreInitializationEvent; //導入依賴的package包/類
@Override
public void addProps(FMLPreInitializationEvent event, Configuration config)
{
	this.Enabled = config.get(this.nameInternal, "Am I enabled? (default true)", true).getBoolean(true);
	this.namePublic = config.get(this.nameInternal, "What's my name?", this.nameInternal).getString();

	this.DmgMin = config.get(this.nameInternal, "What damage are my rockets dealing, at least? (default 4)", 4).getInt();
	this.DmgMax = config.get(this.nameInternal, "What damage are my rockets dealing, tops? (default 6)", 6).getInt();

	this.Speed = config.get(this.nameInternal, "How fast are my projectiles? (default 1.5 BPT (Blocks Per Tick))", 1.5).getDouble();
	this.Kickback = (byte) config.get(this.nameInternal, "How hard do I kick the user back when firing? (default 3)", 3).getInt();

	this.Cooldown = config.get(this.nameInternal, "How long until I can fire again? (default 20 ticks)", 20).getInt();

	this.FireDur = config.get(this.nameInternal, "How long is what I hit on fire? (default 6s)", 6).getInt();
	this.ExplosionSize = config.get(this.nameInternal, "How big are my explosions? (default 1.0 blocks, for no terrain damage. TNT is 4.0 blocks)", 1.0).getDouble();

	this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default true.)", true).getBoolean(true);
}
 
開發者ID:Domochevsky,項目名稱:minecraft-quiverbow,代碼行數:20,代碼來源:Mortar_Dragon.java

示例10: addProps

import cpw.mods.fml.common.event.FMLPreInitializationEvent; //導入依賴的package包/類
@Override
public void addProps(FMLPreInitializationEvent event, Configuration config) 
{ 
	this.Enabled = config.get(this.nameInternal, "Am I enabled? (default true)", true).getBoolean(true);
	this.namePublic = config.get(this.nameInternal, "What's my name?", this.nameInternal).getString();
	
	this.DmgMin = config.get(this.nameInternal, "What damage am I dealing with a direct hit, at least? (default 120)", 120).getInt();
	this.DmgMax = config.get(this.nameInternal, "What damage am I dealing with a direct hit, tops? (default 150)", 150).getInt();
	
	this.explosionSelf = config.get(this.nameInternal, "How big are my explosions when leaving the barrel? (default 4.0 blocks. TNT is 4.0 blocks)", 4.0).getDouble();
	this.explosionTarget = config.get(this.nameInternal, "How big are my explosions when hitting a target? (default 8.0 blocks. TNT is 4.0 blocks)", 8.0).getDouble();
	
	this.Kickback = (byte) config.get(this.nameInternal, "How hard do I kick the user back when firing? (default 30)", 30).getInt();
	
	this.dmgTerrain = config.get(this.nameInternal, "Can I damage terrain, when in player hands? (default true)", true).getBoolean(true);
	
	this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default false. Too high-power and suicidal.)", false).getBoolean();
}
 
開發者ID:Domochevsky,項目名稱:minecraft-quiverbow,代碼行數:19,代碼來源:ERA.java

示例11: addProps

import cpw.mods.fml.common.event.FMLPreInitializationEvent; //導入依賴的package包/類
@Override
public void addProps(FMLPreInitializationEvent event, Configuration config)
{
	this.Enabled = config.get(this.nameInternal, "Am I enabled? (default true)", true).getBoolean(true);
	this.namePublic = config.get(this.nameInternal, "What's my name?", this.nameInternal).getString();

	this.DmgMin = config.get(this.nameInternal, "What damage am I dealing, at least? (default 1)", 1).getInt();
	this.DmgMax = config.get(this.nameInternal, "What damage am I dealing, tops? (default 2)", 2).getInt();

	this.Speed = config.get(this.nameInternal, "How fast are my projectiles? (default 1.5 BPT (Blocks Per Tick))", 1.5).getDouble();
	this.Kickback = (byte) config.get(this.nameInternal, "How hard do I kick the user back when firing? (default 2)", 2).getInt();
	this.Cooldown = config.get(this.nameInternal, "How long until I can fire again? (default 15 ticks)", 15).getInt();

	this.Slow_Strength = config.get(this.nameInternal, "How strong is my Slowness effect? (default 3)", 3).getInt();
	this.Slow_Duration = config.get(this.nameInternal, "How long does my Slowness effect last? (default 40 ticks)", 40).getInt();

	this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default true)", true).getBoolean(true);
}
 
開發者ID:Domochevsky,項目名稱:minecraft-quiverbow,代碼行數:19,代碼來源:SnowCannon.java

示例12: addProps

import cpw.mods.fml.common.event.FMLPreInitializationEvent; //導入依賴的package包/類
@Override
public void addProps(FMLPreInitializationEvent event, Configuration config)
{
	this.Enabled = config.get(this.nameInternal, "Am I enabled? (default true)", true).getBoolean(true);
	this.namePublic = config.get(this.nameInternal, "What's my name?", this.nameInternal).getString();

	this.DmgMin = config.get(this.nameInternal, "What damage am I dealing per thorn, at least? (default 1)", 1).getInt();
	this.DmgMax = config.get(this.nameInternal, "What damage am I dealing per thorn, tops? (default 2)", 2).getInt();

	this.Speed = config.get(this.nameInternal, "How fast are my projectiles? (default 2.0 BPT (Blocks Per Tick))", 2.0).getDouble();
	this.MaxTicks = config.get(this.nameInternal, "How long do my projectiles stick around, tops? (default 6000 ticks. That's 5 min.)", 6000).getInt();

	this.Kickback = (byte) config.get(this.nameInternal, "How hard do I kick the user back when firing? (default 2)", 2).getInt();

	this.Cooldown = config.get(this.nameInternal, "How long until I can fire again? (default 20 ticks)", 20).getInt();
	this.ProxyCheck = config.get(this.nameInternal, "How long does my projectile wait inbetween each proximity check? (default 20 ticks)", 20).getInt();
	this.ThornAmount = config.get(this.nameInternal, "How many thorns does my projectile burst into? (default 32)", 32).getInt();
	this.triggerDist = config.get(this.nameInternal, "What is the trigger distance of my projectiles? (default 2.0 blocks)", 2.0).getDouble();

	this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default false)", false).getBoolean();
}
 
開發者ID:Domochevsky,項目名稱:minecraft-quiverbow,代碼行數:22,代碼來源:ProximityNeedler.java

示例13: addProps

import cpw.mods.fml.common.event.FMLPreInitializationEvent; //導入依賴的package包/類
@Override
public void addProps(FMLPreInitializationEvent event, Configuration config)
{
	this.Enabled = config.get(this.nameInternal, "Am I enabled? (default true)", true).getBoolean(true);
	this.namePublic = config.get(this.nameInternal, "What's my name?", this.nameInternal).getString();

	this.DmgMin = config.get(this.nameInternal, "What damage am I dealing, at least? (default 4)", 4).getInt();
	this.DmgMax = config.get(this.nameInternal, "What damage am I dealing, tops? (default 6)", 6).getInt();

	this.Speed = config.get(this.nameInternal, "How fast are my projectiles? (default 1.3 BPT (Blocks Per Tick))", 1.3).getDouble();

	this.Knockback = config.get(this.nameInternal, "How hard do I knock the target back when firing? (default 2)", 2).getInt();
	this.Kickback = (byte) config.get(this.nameInternal, "How hard do I kick the user back when firing? (default 1)", 1).getInt();

	this.Cooldown = config.get(this.nameInternal, "How long until I can fire again? (default 10 ticks)", 10).getInt();

	this.FireDur = config.get(this.nameInternal, "How long is what I hit on fire? (default 6s)", 6).getInt();

	this.ExplosionSize = config.get(this.nameInternal, "How big are my explosions? (default 1.0 blocks, for no terrain damage. TNT is 4.0 blocks)", 1.0).getDouble();
	this.dmgTerrain = config.get(this.nameInternal, "Can I damage terrain, when in player hands? (default true)", true).getBoolean(true);

	this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default false. A bit too high-power for them.)", false).getBoolean();
}
 
開發者ID:Domochevsky,項目名稱:minecraft-quiverbow,代碼行數:24,代碼來源:DragonBox_Quad.java

示例14: addProps

import cpw.mods.fml.common.event.FMLPreInitializationEvent; //導入依賴的package包/類
@Override
public void addProps(FMLPreInitializationEvent event, Configuration config)
{
	this.Enabled = config.get(this.nameInternal, "Am I enabled? (default true)", true).getBoolean(true);
	this.namePublic = config.get(this.nameInternal, "What's my name?", this.nameInternal).getString();

	this.DmgMin = config.get(this.nameInternal, "What damage am I dealing, at least? (default 16)", 16).getInt();
	this.DmgMax = config.get(this.nameInternal, "What damage am I dealing, tops? (default 24)", 24).getInt();

	this.Speed = config.get(this.nameInternal, "How fast are my projectiles? (default 5.0 BPT (Blocks Per Tick))", 5.0).getDouble();
	this.MaxTicks = config.get(this.nameInternal, "How long does my projectile exist, tops? (default 40 ticks)", 40).getInt();

	this.Kickback = (byte) config.get(this.nameInternal, "How hard do I kick the user back when firing? (default 1)", 1).getInt();

	this.Cooldown = config.get(this.nameInternal, "How long until I can fire again? (default 20 ticks)", 20).getInt();

	this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default false)", false).getBoolean(true);
}
 
開發者ID:Domochevsky,項目名稱:minecraft-quiverbow,代碼行數:19,代碼來源:Endernymous.java

示例15: addProps

import cpw.mods.fml.common.event.FMLPreInitializationEvent; //導入依賴的package包/類
@Override
public void addProps(FMLPreInitializationEvent event, Configuration config)
{
	this.Enabled = config.get(this.nameInternal, "Am I enabled? (default true)", true).getBoolean(true);
	this.namePublic = config.get(this.nameInternal, "What's my name?", this.nameInternal).getString();

	this.DmgMin = config.get(this.nameInternal, "What damage are my arrows dealing, at least? (default 2)", 2).getInt();
	this.DmgMax = config.get(this.nameInternal, "What damage are my arrows dealing, tops? (default 10)", 10).getInt();

	this.Speed = config.get(this.nameInternal, "How fast are my projectiles? (default 1.5 BPT (Blocks Per Tick))", 1.5).getDouble();
	this.Kickback = (byte) config.get(this.nameInternal, "How hard do I kick the user back when firing? (default 3)", 3).getInt();

	this.Cooldown = config.get(this.nameInternal, "How long until I can fire again? (default 20 ticks)", 20).getInt();

	this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default true.)", true).getBoolean(true);
}
 
開發者ID:Domochevsky,項目名稱:minecraft-quiverbow,代碼行數:17,代碼來源:Mortar_Arrow.java


注:本文中的cpw.mods.fml.common.event.FMLPreInitializationEvent類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。