Package net.minecraft.entity.monster

Examples of net.minecraft.entity.monster.EntitySkeleton


   
    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);
    EntitySkeleton skeleton4 = (EntitySkeleton)MFRUtil.prepareMob(EntitySkeleton.class, world);
    skeleton4.mountEntity(skeleton3);
    skeleton3.mountEntity(skeleton2);
    skeleton2.mountEntity(skeleton1);
    mobs.add(new RandomMob(skeleton1, 2));
   
    EntityBlaze blazeJockey = (EntityBlaze)MFRUtil.prepareMob(EntityBlaze.class, world);
View Full Code Here


                  entity = new EntityWitch(worldObj);
               
                break;
              }
              case 1 : {
                entity = new EntitySkeleton(worldObj);
                ((EntitySkeleton) entity).setCurrentItemOrArmor(0, new ItemStack(Items.bow));
                if(worldObj.rand.nextInt(8) == 0) {
                  ((EntitySkeleton) entity).setSkeletonType(1);
                  ((EntitySkeleton) entity).setCurrentItemOrArmor(0, new ItemStack(Items.stone_sword));
                }
View Full Code Here

    @Override
    public boolean entityHasAbility(EntityLivingBase living)
    {
        if (living instanceof EntitySkeleton)
        {
            EntitySkeleton skele = (EntitySkeleton) living;
            if (skele.getSkeletonType() != 1)
            {
                return false;
            }
        }
        return true;
View Full Code Here

   
    boolean fireproof = true;
   
    if(info != null && info.nextState.entInstance instanceof EntitySkeleton)
    {
      EntitySkeleton skele = (EntitySkeleton)info.nextState.entInstance;
      if(skele.getSkeletonType() != 1)
      {
        fireproof = false;
      }
    }
   
View Full Code Here

  @Override
  public boolean entityHasAbility(EntityLivingBase living)
  {
    if(living instanceof EntitySkeleton)
    {
      EntitySkeleton skele = (EntitySkeleton)living;
      if(skele.getSkeletonType() != 1)
      {
        return false;
      }
    }
    return true;
View Full Code Here

  @Override
  public boolean entityHasAbility(EntityLivingBase living)
  {
    if (living instanceof EntitySkeleton)
    {
      EntitySkeleton skele = (EntitySkeleton) living;
      if (skele.getSkeletonType() != 1)
      {
        return false;
      }
    }
    return true;
View Full Code Here

          itemSkull.stackTagCompound.setString("SkullOwner", thePlayer.getCommandSenderName());
        }
      }
    } else if (event.recentlyHit || !mobPvEOnly) {
      if (event.entity instanceof EntitySkeleton) {
        EntitySkeleton theEntity = (EntitySkeleton) event.entity;

        if (theEntity.getSkeletonType() == 0 && skeletonEnabled && randPerc < skeletonChance) {
          itemSkull = new ItemStack(Items.skull, 1, 0);
        } else if (theEntity.getSkeletonType() == 1 && witherSkeletonEnabled && randPerc < witherSkeletonChance) {
          itemSkull = new ItemStack(Items.skull, 1, 1);
        }
      } else if (event.entity instanceof EntityZombie && zombieEnabled && randPerc < zombieChance) {
        itemSkull = new ItemStack(Items.skull, 1, 2);
      } else if (event.entity instanceof EntityCreeper && creeperEnabled && randPerc < creeperChance) {
View Full Code Here

            mob.setLocationAndAngles(x, y, z, rand.nextFloat() * 360.0F, 0.0F);

            if (worldObj.checkNoEntityCollision(mob.boundingBox) && worldObj.getCollidingBoundingBoxes(mob, mob.boundingBox).isEmpty() && !worldObj.isAnyLiquid(mob.boundingBox)) {

                if (mob instanceof EntitySkeleton) {
                    EntitySkeleton skel = (EntitySkeleton) mob;
                    if (rand.nextInt(4) == 0) {
                        skel.tasks.addTask(4, new EntityAIAttackOnCollide(skel, EntityPlayer.class, 0.25F, false));
                        skel.setSkeletonType(1);
                        skel.setCurrentItemOrArmor(0, new ItemStack(Items.stone_sword));
                    } else {
                        skel.tasks.addTask(4, new EntityAIArrowAttack(skel, 0.25F, 60, 10.0F));
                        skel.setCurrentItemOrArmor(0, new ItemStack(Items.bow));
                    }

                    mob.setCurrentItemOrArmor(4, new ItemStack(this.rand.nextFloat() < 0.25F ? Blocks.lit_pumpkin : Blocks.pumpkin));
                } else if (living != null)
                    living.onSpawnWithEgg(null);
View Full Code Here

TOP

Related Classes of net.minecraft.entity.monster.EntitySkeleton

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.