Package net.minecraft.potion

Examples of net.minecraft.potion.PotionEffect


    public PotionEffect getPotionEffect()
    {
        if (potionID == Potion.heal.id || potionID == Potion.harm.id)
        {
            return (new PotionEffect(potionID, 1, concentration));
        }

        return (new PotionEffect(potionID, (int) (tickDuration * Math.pow(0.5f, concentration) * Math.pow(8.0f / 3.0f, durationFactor)), concentration));
    }
View Full Code Here


        }

        AxisAlignedBB bbBox = AxisAlignedBB.getBoundingBox(posX - radius, posY - radius, posZ - radius, posX + radius, posY + radius, posZ + radius);
        List<EntityLivingBase> entities = worldObj.getEntitiesWithinAABB(EntityLivingBase.class, bbBox);
        for(EntityLivingBase entity : entities) {
            entity.addPotionEffect(new PotionEffect(getPotionID(), 200));
        }
    }
View Full Code Here

TOP

Related Classes of net.minecraft.potion.PotionEffect

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.