Search in sources :

Example 1 with EntityMinorDemonGruntGuardianWind

use of WayofTime.alchemicalWizardry.common.demonVillage.demonHoard.demon.EntityMinorDemonGruntGuardianWind in project BloodMagic by WayofTime.

the class DemonPacketMinorGrunt method summonDemons.

@Override
public int summonDemons(TEDemonPortal teDemonPortal, World world, int x, int y, int z, DemonType type, int tier, boolean spawnGuardian) {
    EntityMinorDemonGrunt entity;
    {
        switch(type) {
            case FIRE:
                if (spawnGuardian) {
                    entity = new EntityMinorDemonGruntGuardianFire(world);
                } else {
                    entity = new EntityMinorDemonGruntFire(world);
                }
                break;
            case ICE:
                if (spawnGuardian) {
                    entity = new EntityMinorDemonGruntGuardianIce(world);
                } else {
                    entity = new EntityMinorDemonGruntIce(world);
                }
                break;
            case EARTH:
                if (spawnGuardian) {
                    entity = new EntityMinorDemonGruntGuardianEarth(world);
                } else {
                    entity = new EntityMinorDemonGruntEarth(world);
                }
                break;
            case WIND:
                if (spawnGuardian) {
                    entity = new EntityMinorDemonGruntGuardianWind(world);
                } else {
                    entity = new EntityMinorDemonGruntWind(world);
                }
                break;
            case NORMAL:
            default:
                if (spawnGuardian) {
                    entity = new EntityMinorDemonGruntGuardian(world);
                } else {
                    entity = new EntityMinorDemonGrunt(world);
                }
                break;
        }
    }
    entity.setPosition(x, y, z);
    world.spawnEntityInWorld(entity);
    teDemonPortal.enthrallDemon(entity);
    entity.setAggro(true);
    entity.setDropCrystal(false);
    return spawnGuardian ? 3 : 1;
}
Also used : EntityMinorDemonGruntGuardianEarth(WayofTime.alchemicalWizardry.common.demonVillage.demonHoard.demon.EntityMinorDemonGruntGuardianEarth) EntityMinorDemonGruntIce(WayofTime.alchemicalWizardry.common.demonVillage.demonHoard.demon.EntityMinorDemonGruntIce) EntityMinorDemonGrunt(WayofTime.alchemicalWizardry.common.demonVillage.demonHoard.demon.EntityMinorDemonGrunt) EntityMinorDemonGruntWind(WayofTime.alchemicalWizardry.common.demonVillage.demonHoard.demon.EntityMinorDemonGruntWind) EntityMinorDemonGruntGuardianIce(WayofTime.alchemicalWizardry.common.demonVillage.demonHoard.demon.EntityMinorDemonGruntGuardianIce) EntityMinorDemonGruntEarth(WayofTime.alchemicalWizardry.common.demonVillage.demonHoard.demon.EntityMinorDemonGruntEarth) EntityMinorDemonGruntGuardian(WayofTime.alchemicalWizardry.common.demonVillage.demonHoard.demon.EntityMinorDemonGruntGuardian) EntityMinorDemonGruntGuardianWind(WayofTime.alchemicalWizardry.common.demonVillage.demonHoard.demon.EntityMinorDemonGruntGuardianWind) EntityMinorDemonGruntFire(WayofTime.alchemicalWizardry.common.demonVillage.demonHoard.demon.EntityMinorDemonGruntFire) EntityMinorDemonGruntGuardianFire(WayofTime.alchemicalWizardry.common.demonVillage.demonHoard.demon.EntityMinorDemonGruntGuardianFire)

Aggregations

EntityMinorDemonGrunt (WayofTime.alchemicalWizardry.common.demonVillage.demonHoard.demon.EntityMinorDemonGrunt)1 EntityMinorDemonGruntEarth (WayofTime.alchemicalWizardry.common.demonVillage.demonHoard.demon.EntityMinorDemonGruntEarth)1 EntityMinorDemonGruntFire (WayofTime.alchemicalWizardry.common.demonVillage.demonHoard.demon.EntityMinorDemonGruntFire)1 EntityMinorDemonGruntGuardian (WayofTime.alchemicalWizardry.common.demonVillage.demonHoard.demon.EntityMinorDemonGruntGuardian)1 EntityMinorDemonGruntGuardianEarth (WayofTime.alchemicalWizardry.common.demonVillage.demonHoard.demon.EntityMinorDemonGruntGuardianEarth)1 EntityMinorDemonGruntGuardianFire (WayofTime.alchemicalWizardry.common.demonVillage.demonHoard.demon.EntityMinorDemonGruntGuardianFire)1 EntityMinorDemonGruntGuardianIce (WayofTime.alchemicalWizardry.common.demonVillage.demonHoard.demon.EntityMinorDemonGruntGuardianIce)1 EntityMinorDemonGruntGuardianWind (WayofTime.alchemicalWizardry.common.demonVillage.demonHoard.demon.EntityMinorDemonGruntGuardianWind)1 EntityMinorDemonGruntIce (WayofTime.alchemicalWizardry.common.demonVillage.demonHoard.demon.EntityMinorDemonGruntIce)1 EntityMinorDemonGruntWind (WayofTime.alchemicalWizardry.common.demonVillage.demonHoard.demon.EntityMinorDemonGruntWind)1