Package net.minecraft.entity.projectile

Examples of net.minecraft.entity.projectile.EntityPotion


            if (!par1World.isRemote)
            {
                if (triggerer instanceof EntityLivingBase)
                {
                    par1World.spawnEntityInWorld(new EntityPotion(par1World, (EntityLivingBase) triggerer, par5ItemStack));
                }
                else
                {
                    par1World.spawnEntityInWorld(new EntityPotion(par1World, par2, par3, par4, par5ItemStack));
                }
            }
        }
        else
        {
View Full Code Here


        }
    }

    private void checkPotions(World world){
        for(int i = potionEntities.size() - 1; i >= 0; i--) {
            EntityPotion potion = potionEntities.get(i);
            if(potion != null) {
                if(potion.isDead) {
                    if(world.rand.nextInt(4) == 0) tryToPlant(world, potion, Blockss.potionPlant, 1);
                    potionEntities.remove(i);
                }
View Full Code Here

                EntityTNTPrimed tnt = new EntityTNTPrimed(worldObj);
                tnt.fuse = 80;
                return tnt;
            } else if(item == Items.experience_bottle) return new EntityExpBottle(worldObj);
            else if(item == Items.potionitem) {
                EntityPotion potion = new EntityPotion(worldObj);
                potion.setPotionDamage(inventory[0].getItemDamage());
                return potion;
            } else if(item == Items.arrow) return new EntityArrow(worldObj);
            else if(item == Items.egg) return new EntityEgg(worldObj);
            // else if(itemID == Item.fireballCharge) return new
            // EntitySmallFireball(worldObj);
View Full Code Here

TOP

Related Classes of net.minecraft.entity.projectile.EntityPotion

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.