Package net.minecraft.entity.passive

Examples of net.minecraft.entity.passive.EntityMooshroom


   
    EntitySlime invisislime = (EntitySlime)MFRUtil.prepareMob(EntitySlime.class, world);
    invisislime.addPotionEffect(new PotionEffect(Potion.invisibility.id, 120 * 20));
    mobs.add(new RandomMob(invisislime, 5));
   
    EntityMooshroom invisishroom = (EntityMooshroom)MFRUtil.prepareMob(EntityMooshroom.class, world);
    invisishroom.addPotionEffect(new PotionEffect(Potion.invisibility.id, 120 * 20));
    mobs.add(new RandomMob(invisishroom, 5));
   
    EntitySkeleton skeleton1 = (EntitySkeleton)MFRUtil.prepareMob(EntitySkeleton.class, world);
    EntitySkeleton skeleton2 = (EntitySkeleton)MFRUtil.prepareMob(EntitySkeleton.class, world);
    EntitySkeleton skeleton3 = (EntitySkeleton)MFRUtil.prepareMob(EntitySkeleton.class, world);
View Full Code Here


    @Override
    public void onHackFinished(Entity entity, EntityPlayer player){
        if(!entity.worldObj.isRemote) {
            entity.setDead();
            EntityMooshroom entitycow = new EntityMooshroom(entity.worldObj);
            entitycow.setLocationAndAngles(entity.posX, entity.posY, entity.posZ, entity.rotationYaw, entity.rotationPitch);
            entitycow.setHealth(((EntityCow)entity).getHealth());
            entitycow.renderYawOffset = ((EntityCow)entity).renderYawOffset;
            entity.worldObj.spawnEntityInWorld(entitycow);
            entity.worldObj.spawnParticle("largeexplode", entity.posX, entity.posY + entity.height / 2.0F, entity.posZ, 0.0D, 0.0D, 0.0D);
        }
    }
View Full Code Here

TOP

Related Classes of net.minecraft.entity.passive.EntityMooshroom

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.