com.hbm.handler.BulletConfiguration

Here are the examples of the java api com.hbm.handler.BulletConfiguration taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

172 Examples 7

19 Source : GunRocketFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getRocketNukeConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardRocketConfig();
    bullet.ammo = ModItems.ammo_rocket_nuclear;
    bullet.velocity = 1.5F;
    bullet.dmgMin = 10;
    bullet.dmgMax = 15;
    bullet.wear = 35;
    bullet.explosive = 0;
    bullet.incendiary = 0;
    bullet.trail = 7;
    bullet.bImpact = new IBulletImpactBehavior() {

        @Override
        public void behaveBlockHit(EnreplacedyBulletBase bullet, int x, int y, int z) {
            BulletConfigFactory.nuclearExplosion(bullet, x, y, z, 2);
        }
    };
    return bullet;
}

19 Source : GunRocketFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getRocketIncendiaryConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardRocketConfig();
    bullet.ammo = ModItems.ammo_rocket_incendiary;
    bullet.dmgMin = 10;
    bullet.dmgMax = 15;
    bullet.wear = 15;
    bullet.explosive = 4F;
    bullet.incendiary = 5;
    bullet.trail = 2;
    return bullet;
}

19 Source : GunRocketFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getRocketRPCConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardRocketConfig();
    bullet.ammo = ModItems.ammo_rocket_rpc;
    bullet.velocity = 3.0F;
    bullet.dmgMin = 20;
    bullet.dmgMax = 25;
    bullet.wear = 15;
    bullet.explosive = 0;
    bullet.incendiary = 0;
    bullet.trail = 8;
    bullet.gravity = 0.000D;
    bullet.ricochetAngle = 90;
    bullet.LBRC = 100;
    bullet.doesPenetrate = true;
    bullet.bRicochet = new IBulletRicochetBehavior() {

        public void behaveBlockRicochet(EnreplacedyBulletBase bullet, int bX, int bY, int bZ) {
            World worldObj = bullet.worldObj;
            if (!worldObj.isRemote && (worldObj.getBlock(bX, bY, bZ).getMaterial() == Material.wood || worldObj.getBlock(bX, bY, bZ).getMaterial() == Material.plants || worldObj.getBlock(bX, bY, bZ).getMaterial() == Material.glreplaced || worldObj.getBlock(bX, bY, bZ).getMaterial() == Material.leaves))
                worldObj.func_147480_a(bX, bY, bZ, false);
        }
    };
    return bullet;
}

19 Source : GunRocketFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getRocketGlareConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardRocketConfig();
    bullet.ammo = ModItems.ammo_rocket_glare;
    bullet.velocity = 5.0F;
    bullet.dmgMin = 10;
    bullet.dmgMax = 15;
    bullet.wear = 20;
    bullet.explosive = 4F;
    bullet.incendiary = 5;
    bullet.trail = 5;
    return bullet;
}

19 Source : GunRocketFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getRocketSleekConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardRocketConfig();
    bullet.ammo = ModItems.ammo_rocket_sleek;
    bullet.dmgMin = 10;
    bullet.dmgMax = 15;
    bullet.explosive = 10F;
    bullet.trail = 6;
    bullet.gravity = 0;
    bullet.jolt = 6.5D;
    return bullet;
}

19 Source : GunRocketFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getRocketEMPConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardRocketConfig();
    bullet.ammo = ModItems.ammo_rocket_emp;
    bullet.dmgMin = 10;
    bullet.dmgMax = 15;
    bullet.explosive = 2.5F;
    bullet.emp = 10;
    bullet.trail = 4;
    return bullet;
}

19 Source : GunRocketFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getRocketPhosphorusConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardRocketConfig();
    bullet.ammo = ModItems.ammo_rocket_phosphorus;
    bullet.dmgMin = 10;
    bullet.dmgMax = 15;
    bullet.wear = 15;
    bullet.explosive = 4F;
    bullet.incendiary = 5;
    bullet.trail = 9;
    bullet.bImpact = BulletConfigFactory.getPhosphorousEffect(10, 60 * 20, 100, 0.5D);
    return bullet;
}

19 Source : GunRocketFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getRocketHEConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardRocketConfig();
    bullet.ammo = ModItems.ammo_rocket_he;
    bullet.dmgMin = 10;
    bullet.dmgMax = 15;
    bullet.wear = 15;
    bullet.explosive = 6.5F;
    bullet.trail = 1;
    return bullet;
}

19 Source : GunRocketFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getRocketChlorineConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardRocketConfig();
    bullet.ammo = ModItems.ammo_rocket_toxic;
    bullet.velocity = 1.5F;
    bullet.dmgMin = 10;
    bullet.dmgMax = 15;
    bullet.wear = 10;
    bullet.explosive = 0;
    bullet.chlorine = 50;
    bullet.trail = 7;
    return bullet;
}

19 Source : GunRocketFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getRocketConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardRocketConfig();
    bullet.ammo = ModItems.ammo_rocket;
    bullet.dmgMin = 10;
    bullet.dmgMax = 15;
    bullet.explosive = 4F;
    bullet.trail = 0;
    return bullet;
}

19 Source : GunRocketFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getRocketCanisterConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardRocketConfig();
    bullet.ammo = ModItems.ammo_rocket_canister;
    bullet.dmgMin = 10;
    bullet.dmgMax = 15;
    bullet.explosive = 2F;
    bullet.trail = 0;
    bullet.bUpdate = new IBulletUpdateBehavior() {

        @Override
        public void behaveUpdate(EnreplacedyBulletBase bullet) {
            if (!bullet.worldObj.isRemote) {
                if (bullet.ticksExisted > 10) {
                    bullet.setDead();
                    for (int i = 0; i < 50; i++) {
                        EnreplacedyBulletBase bolt = new EnreplacedyBulletBase(bullet.worldObj, BulletConfigSyncingUtil.M44_AP);
                        bolt.setPosition(bullet.posX, bullet.posY, bullet.posZ);
                        bolt.setThrowableHeading(bullet.motionX, bullet.motionY, bullet.motionZ, 0.25F, 0.1F);
                        bullet.worldObj.spawnEnreplacedyInWorld(bolt);
                    }
                }
            }
        }
    };
    return bullet;
}

19 Source : GunRocketFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getRocketShrapnelConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardRocketConfig();
    bullet.ammo = ModItems.ammo_rocket_shrapnel;
    bullet.dmgMin = 10;
    bullet.dmgMax = 15;
    bullet.explosive = 4F;
    bullet.shrapnel = 25;
    bullet.trail = 3;
    return bullet;
}

19 Source : GunOSIPRFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getPulseChargedConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardBulletConfig();
    bullet.ammo = ModItems.gun_osipr_ammo2;
    return bullet;
}

19 Source : GunOSIPRFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getPulseConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardBulletConfig();
    bullet.ammo = ModItems.gun_osipr_ammo;
    bullet.spread *= inaccuracy;
    bullet.dmgMin = 3;
    bullet.dmgMax = 5;
    bullet.trail = 2;
    return bullet;
}

19 Source : GunNPCFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getMaskmanTracer() {
    BulletConfiguration bullet = BulletConfigFactory.standardBulletConfig();
    bullet.ammo = ModItems.coin_maskman;
    bullet.spread = 0.0F;
    bullet.dmgMin = 15;
    bullet.dmgMax = 20;
    bullet.wear = 10;
    bullet.leadChance = 0;
    bullet.setToBolt(BulletConfiguration.BOLT_NIGHTMARE);
    bullet.vPFX = "reddust";
    bullet.bImpact = new IBulletImpactBehavior() {

        @Override
        public void behaveBlockHit(EnreplacedyBulletBase bullet, int x, int y, int z) {
            if (bullet.worldObj.isRemote)
                return;
            EnreplacedyBulletBase meteor = new EnreplacedyBulletBase(bullet.worldObj, BulletConfigSyncingUtil.MASKMAN_METEOR);
            meteor.setPosition(bullet.posX, bullet.posY + 30 + meteor.worldObj.rand.nextInt(10), bullet.posZ);
            meteor.motionY = -1D;
            meteor.shooter = bullet.shooter;
            bullet.worldObj.spawnEnreplacedyInWorld(meteor);
        }
    };
    return bullet;
}

19 Source : GunNPCFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getMaskmanBullet() {
    BulletConfiguration bullet = BulletConfigFactory.standardBulletConfig();
    bullet.ammo = ModItems.coin_maskman;
    bullet.spread = 0.0F;
    bullet.dmgMin = 5;
    bullet.dmgMax = 10;
    bullet.wear = 10;
    bullet.leadChance = 15;
    bullet.style = BulletConfiguration.STYLE_FLECHETTE;
    bullet.vPFX = "bluedust";
    return bullet;
}

19 Source : GunNPCFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getWormBolt() {
    BulletConfiguration bullet = BulletConfigFactory.standardBulletConfig();
    bullet.ammo = ModItems.coin_worm;
    bullet.spread = 0.0F;
    bullet.maxAge = 60;
    bullet.dmgMin = 15;
    bullet.dmgMax = 25;
    bullet.leadChance = 0;
    bullet.doesRicochet = false;
    bullet.setToBolt(BulletConfiguration.BOLT_WORM);
    return bullet;
}

19 Source : GunNPCFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getMaskmanMeteor() {
    BulletConfiguration bullet = BulletConfigFactory.standardGrenadeConfig();
    bullet.ammo = ModItems.coin_maskman;
    bullet.gravity = 0.1D;
    bullet.velocity = 1.0F;
    bullet.dmgMin = 20;
    bullet.dmgMax = 30;
    bullet.incendiary = 3;
    bullet.explosive = 2.5F;
    bullet.style = BulletConfiguration.STYLE_METEOR;
    bullet.bUpdate = new IBulletUpdateBehavior() {

        @Override
        public void behaveUpdate(EnreplacedyBulletBase bullet) {
            if (!bullet.worldObj.isRemote)
                return;
            Random rand = bullet.worldObj.rand;
            for (int i = 0; i < 5; i++) {
                NBTTagCompound nbt = new NBTTagCompound();
                nbt.setString("type", "vanillaExt");
                nbt.setString("mode", "flame");
                nbt.setDouble("posX", bullet.posX + rand.nextDouble() * 0.5 - 0.25);
                nbt.setDouble("posY", bullet.posY + rand.nextDouble() * 0.5 - 0.25);
                nbt.setDouble("posZ", bullet.posZ + rand.nextDouble() * 0.5 - 0.25);
                MainRegistry.proxy.effectNT(nbt);
            }
        }
    };
    return bullet;
}

19 Source : GunNPCFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getMaskmanOrb() {
    BulletConfiguration bullet = new BulletConfiguration();
    bullet.ammo = ModItems.coin_maskman;
    bullet.velocity = 0.25F;
    bullet.spread = 0.000F;
    bullet.wear = 10;
    bullet.bulletsMin = 1;
    bullet.bulletsMax = 1;
    bullet.dmgMin = 100;
    bullet.dmgMax = 100;
    bullet.gravity = 0.0D;
    bullet.maxAge = 60;
    bullet.doesRicochet = false;
    bullet.ricochetAngle = 0;
    bullet.HBRC = 0;
    bullet.LBRC = 0;
    bullet.bounceMod = 1.0;
    bullet.doesPenetrate = false;
    bullet.doesBreakGlreplaced = false;
    bullet.style = BulletConfiguration.STYLE_ORB;
    bullet.trail = 1;
    bullet.explosive = 1.5F;
    bullet.bUpdate = new IBulletUpdateBehavior() {

        @Override
        public void behaveUpdate(EnreplacedyBulletBase bullet) {
            if (bullet.worldObj.isRemote)
                return;
            if (bullet.ticksExisted % 10 != 5)
                return;
            List<EnreplacedyPlayer> players = bullet.worldObj.getEnreplacediesWithinAABB(EnreplacedyPlayer.clreplaced, bullet.boundingBox.expand(50, 50, 50));
            for (EnreplacedyPlayer player : players) {
                Vec3 motion = Vec3.createVectorHelper(player.posX - bullet.posX, (player.posY + player.getEyeHeight()) - bullet.posY, player.posZ - bullet.posZ);
                motion = motion.normalize();
                EnreplacedyBulletBase bolt = new EnreplacedyBulletBase(bullet.worldObj, BulletConfigSyncingUtil.MASKMAN_BOLT);
                bolt.shooter = bullet.shooter;
                bolt.setPosition(bullet.posX, bullet.posY, bullet.posZ);
                bolt.setThrowableHeading(motion.xCoord, motion.yCoord, motion.zCoord, 0.5F, 0.05F);
                bullet.worldObj.spawnEnreplacedyInWorld(bolt);
            }
        }
    };
    return bullet;
}

19 Source : GunNPCFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getMaskmanRocket() {
    BulletConfiguration bullet = BulletConfigFactory.standardGrenadeConfig();
    bullet.ammo = ModItems.coin_maskman;
    bullet.gravity = 0.1D;
    bullet.velocity = 1.0F;
    bullet.dmgMin = 15;
    bullet.dmgMax = 20;
    bullet.blockDamage = false;
    bullet.explosive = 5.0F;
    bullet.style = BulletConfiguration.STYLE_ROCKET;
    return bullet;
}

19 Source : GunNPCFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getMaskmanBolt() {
    BulletConfiguration bullet = BulletConfigFactory.standardBulletConfig();
    bullet.ammo = ModItems.coin_maskman;
    bullet.spread = 0.0F;
    bullet.dmgMin = 15;
    bullet.dmgMax = 20;
    bullet.wear = 10;
    bullet.leadChance = 0;
    bullet.explosive = 0.5F;
    bullet.setToBolt(BulletConfiguration.BOLT_LACUNAE);
    bullet.vPFX = "reddust";
    return bullet;
}

19 Source : GunGrenadeFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getGrenadeNuclearConfig() {
    BulletConfiguration bullet = getGrenadeConfig();
    bullet.ammo = ModItems.ammo_grenade_nuclear;
    bullet.velocity = 4;
    bullet.explosive = 0.0F;
    bullet.bImpact = new IBulletImpactBehavior() {

        @Override
        public void behaveBlockHit(EnreplacedyBulletBase bullet, int x, int y, int z) {
            BulletConfigFactory.nuclearExplosion(bullet, x, y, z, 1);
        }
    };
    return bullet;
}

19 Source : GunGrenadeFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getGrenadeHEConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardGrenadeConfig();
    bullet.ammo = ModItems.ammo_grenade_he;
    bullet.velocity = 2.0F;
    bullet.dmgMin = 20;
    bullet.dmgMax = 15;
    bullet.wear = 15;
    bullet.explosive = 5.0F;
    bullet.trail = 1;
    return bullet;
}

19 Source : GunGrenadeFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getGrenadeConcussionConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardGrenadeConfig();
    bullet.ammo = ModItems.ammo_grenade_concussion;
    bullet.velocity = 2.0F;
    bullet.dmgMin = 15;
    bullet.dmgMax = 20;
    bullet.blockDamage = false;
    bullet.explosive = 10.0F;
    bullet.trail = 3;
    return bullet;
}

19 Source : GunGrenadeFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getGrenadeSleekConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardGrenadeConfig();
    bullet.ammo = ModItems.ammo_grenade_sleek;
    bullet.velocity = 2.0F;
    bullet.dmgMin = 10;
    bullet.dmgMax = 15;
    bullet.wear = 10;
    bullet.trail = 4;
    bullet.explosive = 7.5F;
    bullet.jolt = 6.5D;
    return bullet;
}

19 Source : GunGrenadeFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getGrenadeConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardGrenadeConfig();
    bullet.ammo = ModItems.ammo_grenade;
    bullet.velocity = 2.0F;
    bullet.dmgMin = 10;
    bullet.dmgMax = 15;
    bullet.wear = 10;
    bullet.trail = 0;
    return bullet;
}

19 Source : GunGrenadeFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getGrenadeTracerConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardGrenadeConfig();
    bullet.ammo = ModItems.ammo_grenade_tracer;
    bullet.velocity = 2.0F;
    bullet.wear = 10;
    bullet.explosive = 0F;
    bullet.trail = 5;
    bullet.vPFX = "bluedust";
    return bullet;
}

19 Source : GunGrenadeFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getGrenadeChlorineConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardGrenadeConfig();
    bullet.ammo = ModItems.ammo_grenade_toxic;
    bullet.velocity = 2.0F;
    bullet.dmgMin = 10;
    bullet.dmgMax = 15;
    bullet.wear = 10;
    bullet.trail = 3;
    bullet.explosive = 0;
    bullet.chlorine = 50;
    return bullet;
}

19 Source : GunGrenadeFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getGrenadeIncendirayConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardGrenadeConfig();
    bullet.ammo = ModItems.ammo_grenade_incendiary;
    bullet.velocity = 2.0F;
    bullet.dmgMin = 15;
    bullet.dmgMax = 15;
    bullet.wear = 15;
    bullet.trail = 0;
    bullet.incendiary = 2;
    return bullet;
}

19 Source : GunGrenadeFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getGrenadePhosphorusConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardGrenadeConfig();
    bullet.ammo = ModItems.ammo_grenade_phosphorus;
    bullet.velocity = 2.0F;
    bullet.dmgMin = 15;
    bullet.dmgMax = 15;
    bullet.wear = 15;
    bullet.trail = 0;
    bullet.incendiary = 2;
    bullet.bImpact = BulletConfigFactory.getPhosphorousEffect(10, 60 * 20, 100, 0.5D);
    return bullet;
}

19 Source : GunGrenadeFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getGrenadeKampfConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardRocketConfig();
    bullet.ammo = ModItems.ammo_grenade_kampf;
    bullet.spread = 0.0F;
    bullet.gravity = 0.0D;
    bullet.wear = 15;
    bullet.explosive = 3.5F;
    bullet.style = BulletConfiguration.STYLE_GRENADE;
    bullet.trail = 4;
    bullet.vPFX = "smoke";
    return bullet;
}

19 Source : GunGrenadeFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getGrenadeFinnedConfig() {
    BulletConfiguration bullet = getGrenadeConfig();
    bullet.ammo = ModItems.ammo_grenade_finned;
    bullet.gravity = 0.02;
    bullet.explosive = 1.5F;
    bullet.trail = 5;
    return bullet;
}

19 Source : GunGaussFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getAltConfig() {
    BulletConfiguration bullet = getGaussConfig();
    bullet.vPFX = "reddust";
    return bullet;
}

19 Source : GunGaussFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getGaussConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardBulletConfig();
    bullet.ammo = ModItems.gun_xvl1456_ammo;
    bullet.dmgMin = 6;
    bullet.dmgMax = 9;
    bullet.trail = 1;
    bullet.vPFX = "fireworksSpark";
    bullet.LBRC = 80;
    bullet.HBRC = 5;
    return bullet;
}

19 Source : GunFatmanFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getNukeSafeConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardNukeConfig();
    bullet.ammo = ModItems.ammo_nuke_safe;
    bullet.bImpact = new IBulletImpactBehavior() {

        @Override
        public void behaveBlockHit(EnreplacedyBulletBase bullet, int x, int y, int z) {
            BulletConfigFactory.nuclearExplosion(bullet, x, y, z, 0);
        }
    };
    return bullet;
}

19 Source : GunFatmanFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getMirvConfig() {
    BulletConfiguration bullet = getNukeConfig();
    bullet.ammo = ModItems.ammo_mirv;
    bullet.style = BulletConfiguration.STYLE_MIRV;
    bullet.velocity *= 3;
    bullet.bUpdate = new IBulletUpdateBehavior() {

        @Override
        public void behaveUpdate(EnreplacedyBulletBase bullet) {
            if (bullet.worldObj.isRemote)
                return;
            if (bullet.ticksExisted == 15) {
                bullet.setDead();
                for (int i = 0; i < 6; i++) {
                    EnreplacedyBulletBase nuke = new EnreplacedyBulletBase(bullet.worldObj, BulletConfigSyncingUtil.NUKE_NORMAL);
                    nuke.setPosition(bullet.posX, bullet.posY, bullet.posZ);
                    double mod = 0.1D;
                    nuke.motionX = bullet.worldObj.rand.nextGaussian() * mod;
                    nuke.motionY = -0.1D;
                    nuke.motionZ = bullet.worldObj.rand.nextGaussian() * mod;
                    bullet.worldObj.spawnEnreplacedyInWorld(nuke);
                }
            }
        }
    };
    return bullet;
}

19 Source : GunFatmanFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getMirvLowConfig() {
    BulletConfiguration bullet = getNukeLowConfig();
    bullet.ammo = ModItems.ammo_mirv_low;
    bullet.style = BulletConfiguration.STYLE_MIRV;
    bullet.velocity *= 3;
    bullet.bUpdate = new IBulletUpdateBehavior() {

        @Override
        public void behaveUpdate(EnreplacedyBulletBase bullet) {
            if (bullet.worldObj.isRemote)
                return;
            if (bullet.ticksExisted == 15) {
                bullet.setDead();
                for (int i = 0; i < 6; i++) {
                    EnreplacedyBulletBase nuke = new EnreplacedyBulletBase(bullet.worldObj, BulletConfigSyncingUtil.NUKE_LOW);
                    nuke.setPosition(bullet.posX, bullet.posY, bullet.posZ);
                    double mod = 0.1D;
                    nuke.motionX = bullet.worldObj.rand.nextGaussian() * mod;
                    nuke.motionY = -0.1D;
                    nuke.motionZ = bullet.worldObj.rand.nextGaussian() * mod;
                    bullet.worldObj.spawnEnreplacedyInWorld(nuke);
                }
            }
        }
    };
    return bullet;
}

19 Source : GunFatmanFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getNukeConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardNukeConfig();
    bullet.ammo = ModItems.ammo_nuke;
    bullet.bImpact = new IBulletImpactBehavior() {

        @Override
        public void behaveBlockHit(EnreplacedyBulletBase bullet, int x, int y, int z) {
            BulletConfigFactory.nuclearExplosion(bullet, x, y, z, 3);
        }
    };
    return bullet;
}

19 Source : GunFatmanFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getMirvHighConfig() {
    BulletConfiguration bullet = getNukeHighConfig();
    bullet.ammo = ModItems.ammo_mirv_high;
    bullet.style = BulletConfiguration.STYLE_MIRV;
    bullet.velocity *= 3;
    bullet.bUpdate = new IBulletUpdateBehavior() {

        @Override
        public void behaveUpdate(EnreplacedyBulletBase bullet) {
            if (bullet.worldObj.isRemote)
                return;
            if (bullet.ticksExisted == 15) {
                bullet.setDead();
                for (int i = 0; i < 6; i++) {
                    EnreplacedyBulletBase nuke = new EnreplacedyBulletBase(bullet.worldObj, BulletConfigSyncingUtil.NUKE_HIGH);
                    nuke.setPosition(bullet.posX, bullet.posY, bullet.posZ);
                    double mod = 0.1D;
                    nuke.motionX = bullet.worldObj.rand.nextGaussian() * mod;
                    nuke.motionY = -0.1D;
                    nuke.motionZ = bullet.worldObj.rand.nextGaussian() * mod;
                    bullet.worldObj.spawnEnreplacedyInWorld(nuke);
                }
            }
        }
    };
    return bullet;
}

19 Source : GunFatmanFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getNukePumpkinConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardNukeConfig();
    bullet.ammo = ModItems.ammo_nuke_pumpkin;
    bullet.explosive = 10F;
    bullet.bImpact = new IBulletImpactBehavior() {

        @Override
        public void behaveBlockHit(EnreplacedyBulletBase bullet, int x, int y, int z) {
            if (bullet.worldObj.isRemote) {
                double posX = bullet.posX;
                double posY = bullet.posY + 0.5;
                double posZ = bullet.posZ;
                if (y >= 0) {
                    posX = x + 0.5;
                    posY = y + 1.5;
                    posZ = z + 0.5;
                }
                ExplosionLarge.spawnParticles(bullet.worldObj, posX, posY, posZ, 45);
            }
        }
    };
    return bullet;
}

19 Source : GunFatmanFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getNukeLowConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardNukeConfig();
    bullet.ammo = ModItems.ammo_nuke_low;
    bullet.bImpact = new IBulletImpactBehavior() {

        @Override
        public void behaveBlockHit(EnreplacedyBulletBase bullet, int x, int y, int z) {
            BulletConfigFactory.nuclearExplosion(bullet, x, y, z, 2);
        }
    };
    return bullet;
}

19 Source : GunFatmanFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getMirvSpecialConfig() {
    BulletConfiguration bullet = getNukeConfig();
    bullet.ammo = ModItems.ammo_mirv_special;
    bullet.style = BulletConfiguration.STYLE_MIRV;
    bullet.velocity *= 3;
    bullet.bUpdate = new IBulletUpdateBehavior() {

        @Override
        public void behaveUpdate(EnreplacedyBulletBase bullet) {
            if (bullet.worldObj.isRemote)
                return;
            if (bullet.ticksExisted == 15) {
                bullet.setDead();
                for (int i = 0; i < 24; i++) {
                    EnreplacedyBulletBase nuke = null;
                    if (i < 6)
                        nuke = new EnreplacedyBulletBase(bullet.worldObj, BulletConfigSyncingUtil.NUKE_LOW);
                    else if (i < 12)
                        nuke = new EnreplacedyBulletBase(bullet.worldObj, BulletConfigSyncingUtil.NUKE_TOTS);
                    else if (i < 18)
                        nuke = new EnreplacedyBulletBase(bullet.worldObj, BulletConfigSyncingUtil.NUKE_NORMAL);
                    else
                        nuke = new EnreplacedyBulletBase(bullet.worldObj, BulletConfigSyncingUtil.NUKE_AMAT);
                    nuke.setPosition(bullet.posX, bullet.posY, bullet.posZ);
                    double mod = 0.25D;
                    nuke.motionX = bullet.worldObj.rand.nextGaussian() * mod;
                    nuke.motionY = -0.1D;
                    nuke.motionZ = bullet.worldObj.rand.nextGaussian() * mod;
                    bullet.worldObj.spawnEnreplacedyInWorld(nuke);
                }
            }
        }
    };
    return bullet;
}

19 Source : GunFatmanFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getNukeTotsConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardNukeConfig();
    bullet.ammo = ModItems.ammo_nuke_tots;
    bullet.bulletsMin = 8;
    bullet.bulletsMax = 8;
    bullet.spread = 0.1F;
    bullet.style = bullet.STYLE_GRENADE;
    bullet.bImpact = new IBulletImpactBehavior() {

        @Override
        public void behaveBlockHit(EnreplacedyBulletBase bullet, int x, int y, int z) {
            BulletConfigFactory.nuclearExplosion(bullet, x, y, z, 1);
        }
    };
    return bullet;
}

19 Source : GunFatmanFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getBalefireConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardNukeConfig();
    bullet.ammo = ModItems.gun_bf_ammo;
    bullet.style = BulletConfiguration.STYLE_BF;
    bullet.bImpact = new IBulletImpactBehavior() {

        public void behaveBlockHit(EnreplacedyBulletBase bullet, int x, int y, int z) {
            if (!bullet.worldObj.isRemote) {
                double posX = bullet.posX;
                double posY = bullet.posY + 0.5;
                double posZ = bullet.posZ;
                if (y >= 0) {
                    posX = x + 0.5;
                    posY = y + 1.5;
                    posZ = z + 0.5;
                }
                bullet.worldObj.playSoundEffect(x, y, z, "hbm:weapon.mukeExplosion", 15.0F, 1.0F);
                ExplosionLarge.spawnShrapnels(bullet.worldObj, posX, posY, posZ, 25);
                ExplosionNT exp = new ExplosionNT(bullet.worldObj, null, posX, posY, posZ, 15F).addAttrib(ExAttrib.BALEFIRE).addAttrib(ExAttrib.NOPARTICLE).addAttrib(ExAttrib.NOSOUND).addAttrib(ExAttrib.NODROP).addAttrib(ExAttrib.NOHURT).overrideResolution(64);
                exp.doExplosionA();
                exp.doExplosionB(false);
                NBTTagCompound data = new NBTTagCompound();
                data.setString("type", "muke");
                data.setBoolean("balefire", true);
                PacketDispatcher.wrapper.sendToAllAround(new AuxParticlePacketNT(data, x, y + 0.5, z), new TargetPoint(bullet.dimension, bullet.posX, bullet.posY, bullet.posZ, 250));
            }
        }
    };
    return bullet;
}

19 Source : GunFatmanFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getNukeHighConfig() {
    BulletConfiguration bullet = BulletConfigFactory.standardNukeConfig();
    bullet.ammo = ModItems.ammo_nuke_high;
    bullet.bImpact = new IBulletImpactBehavior() {

        @Override
        public void behaveBlockHit(EnreplacedyBulletBase bullet, int x, int y, int z) {
            BulletConfigFactory.nuclearExplosion(bullet, x, y, z, 4);
        }
    };
    return bullet;
}

19 Source : GunFatmanFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getMirvSafeConfig() {
    BulletConfiguration bullet = getNukeSafeConfig();
    bullet.ammo = ModItems.ammo_mirv_safe;
    bullet.style = BulletConfiguration.STYLE_MIRV;
    bullet.velocity *= 3;
    bullet.bUpdate = new IBulletUpdateBehavior() {

        @Override
        public void behaveUpdate(EnreplacedyBulletBase bullet) {
            if (bullet.worldObj.isRemote)
                return;
            if (bullet.ticksExisted == 15) {
                bullet.setDead();
                for (int i = 0; i < 6; i++) {
                    EnreplacedyBulletBase nuke = new EnreplacedyBulletBase(bullet.worldObj, BulletConfigSyncingUtil.NUKE_SAFE);
                    nuke.setPosition(bullet.posX, bullet.posY, bullet.posZ);
                    double mod = 0.1D;
                    nuke.motionX = bullet.worldObj.rand.nextGaussian() * mod;
                    nuke.motionY = -0.1D;
                    nuke.motionZ = bullet.worldObj.rand.nextGaussian() * mod;
                    bullet.worldObj.spawnEnreplacedyInWorld(nuke);
                }
            }
        }
    };
    return bullet;
}

19 Source : GunEnergyFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getGasConfig() {
    BulletConfiguration bullet = getFlameConfig();
    bullet.ammo = ModItems.ammo_fuel_gas;
    bullet.wear = 1;
    bullet.spread = 0.05F;
    bullet.gravity = 0D;
    bullet.bulletsMin = 5;
    bullet.bulletsMax = 7;
    bullet.dmgMin = 0;
    bullet.dmgMax = 0;
    bullet.vPFX = "cloud";
    bullet.incendiary = 0;
    bullet.bImpact = BulletConfigFactory.getGasEffect(5, 60 * 20);
    return bullet;
}

19 Source : GunEnergyFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getFlameConfig() {
    BulletConfiguration bullet = new BulletConfiguration();
    bullet.ammo = ModItems.ammo_fuel;
    bullet.ammoCount = 100;
    bullet.velocity = 0.75F;
    bullet.spread = 0.025F;
    bullet.wear = 1;
    bullet.bulletsMin = 3;
    bullet.bulletsMax = 5;
    bullet.dmgMin = 2;
    bullet.dmgMax = 4;
    bullet.gravity = 0.01D;
    bullet.maxAge = 60;
    bullet.doesRicochet = false;
    bullet.doesPenetrate = true;
    bullet.doesBreakGlreplaced = false;
    bullet.style = BulletConfiguration.STYLE_NONE;
    bullet.plink = BulletConfiguration.PLINK_NONE;
    bullet.vPFX = "flame";
    bullet.incendiary = 10;
    bullet.bImpact = new IBulletImpactBehavior() {

        @Override
        public void behaveBlockHit(EnreplacedyBulletBase bullet, int x, int y, int z) {
            if (!bullet.worldObj.isRemote) {
                NBTTagCompound data = new NBTTagCompound();
                data.setString("type", "vanillaburst");
                data.setString("mode", "flame");
                data.setInteger("count", 15);
                data.setDouble("motion", 0.1D);
                PacketDispatcher.wrapper.sendToAllAround(new AuxParticlePacketNT(data, bullet.posX, bullet.posY, bullet.posZ), new TargetPoint(bullet.dimension, bullet.posX, bullet.posY, bullet.posZ, 50));
            }
        }
    };
    return bullet;
}

19 Source : GunEnergyFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getNapalmConfig() {
    BulletConfiguration bullet = getFlameConfig();
    bullet.ammo = ModItems.ammo_fuel_napalm;
    bullet.wear = 2;
    bullet.dmgMin = 4;
    bullet.dmgMax = 6;
    bullet.maxAge = 200;
    return bullet;
}

19 Source : GunEnergyFactory.java
with GNU General Public License v3.0
from HbmMods

public static BulletConfiguration getPhosphorusConfig() {
    BulletConfiguration bullet = getFlameConfig();
    bullet.ammo = ModItems.ammo_fuel_phosphorus;
    bullet.wear = 2;
    bullet.spread = 0.0F;
    bullet.bulletsMin = 1;
    bullet.bulletsMax = 1;
    bullet.dmgMin = 4;
    bullet.dmgMax = 6;
    bullet.maxAge = 200;
    bullet.vPFX = "smoke";
    bullet.bImpact = BulletConfigFactory.getPhosphorousEffect(5, 60 * 20, 25, 0.25);
    return bullet;
}

See More Examples