Examples of Wolf


Examples of org.bukkit.entity.Wolf

      } else if (type.equalsIgnoreCase("tamed")){
        Tameable tame = (Tameable) entity1;
        tame.setTamed(true);
      } else if (type.equalsIgnoreCase("angry")){
        if (toSpawn == EntityType.WOLF){
          Wolf wolf = (Wolf) entity1;
          wolf.setAngry(true);
        }
       
        if (toSpawn == EntityType.PIG_ZOMBIE){
          PigZombie pigzombie = (PigZombie) entity1;
          pigzombie.setAngry(true);
View Full Code Here

Examples of org.bukkit.entity.Wolf

          } else if (type.equalsIgnoreCase("tamed")){
            Tameable tame = (Tameable) entity1;
            tame.setTamed(true);
          } else if (type.equalsIgnoreCase("angry")){
            if (toSpawn == EntityType.WOLF){
              Wolf wolf = (Wolf) entity1;
              wolf.setAngry(true);
            }
           
             if (toSpawn == EntityType.PIG_ZOMBIE){
               PigZombie pigzombie = (PigZombie) entity1;
               pigzombie.setAngry(true);
View Full Code Here

Examples of org.bukkit.entity.Wolf

          tame.setTamed(true);
          tame.setOwner((AnimalTamer) player);
        }
       
        if (type.equalsIgnoreCase("angry")){
          Wolf wolf = (Wolf) entity;
          wolf.setAngry(true);
        }
       
        if (type.equalsIgnoreCase("charged")){
          Creeper creep = (Creeper) entity;
          creep.setPowered(true);
View Full Code Here

Examples of org.bukkit.entity.Wolf

        for (Entity e : entities)
        {
            if (!(e instanceof Wolf))
                continue;
           
            Wolf w = (Wolf) e;           
            if (w.isTamed() && w.getOwner() != null && w.getOwner().equals(p))
                w.setSitting(true);
        }
    }
View Full Code Here

Examples of org.bukkit.entity.Wolf

        if (dense) world.playEffect(location.add(0, 1, 0), Effect.POTION_BREAK, 0);
    }

    public void playHeartEffect() {
        Location location = npc.getBukkitEntity().getLocation();
        Wolf tempWolf = world.spawn(location, Wolf.class);
        ((CraftWolf) tempWolf).getHandle().setInvisible(true);
        tempWolf.playEffect(EntityEffect.WOLF_HEARTS);
        if (dense) tempWolf.playEffect(EntityEffect.WOLF_HEARTS);
        tempWolf.remove();
    }
View Full Code Here

Examples of org.bukkit.entity.Wolf

            Tameable pet = (Tameable) livingEntity;
            AnimalTamer owner = pet.getOwner();

            if (Taming.canPreventDamage(pet, owner)) {
                Player player = (Player) owner;
                Wolf wolf = (Wolf) pet;

                TamingManager tamingManager = UserManager.getPlayer(player).getTamingManager();

                switch (cause) {
                    case CONTACT:
View Full Code Here

Examples of org.bukkit.entity.Wolf

                }
            }
        }

        else if (entityType == EntityType.WOLF) {
            Wolf wolf = (Wolf) damager;
            AnimalTamer tamer = wolf.getOwner();

            if (tamer != null && tamer instanceof Player && SkillType.TAMING.shouldProcess(target)) {
                Player master = (Player) tamer;

                if (!Misc.isNPCEntity(master) && SkillType.TAMING.getPermissions(master)) {
View Full Code Here

Examples of org.bukkit.entity.Wolf

        for (Entity entity : player.getNearbyEntities(range, range, range)) {
            if (entity.getType() != EntityType.WOLF) {
                continue;
            }

            Wolf wolf = (Wolf) entity;

            if (!wolf.isTamed() || (wolf.getOwner() != player) || wolf.isSitting()) {
                continue;
            }

            wolf.setTarget(target);
        }
    }
View Full Code Here

Examples of org.bukkit.entity.Wolf

      if (!townblock.getTown().isPVP() && !world.isForcePVP() && !townblock.getPermissions().pvp) {
        if (bp != null && (ap != null || a instanceof Arrow || a instanceof ThrownPotion))
          return true;

        if (b instanceof Wolf) {
          Wolf wolf = (Wolf) b;
          if (wolf.isTamed() && !wolf.getOwner().equals((AnimalTamer) a)) {
            return true;
          }
        }

        if (b instanceof Animals) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.