Examples of Ocelot


Examples of org.bukkit.entity.Ocelot

    } else {
      entity1 = target.getWorld().spawn(target.getEyeLocation(), toSpawn.getEntityClass());
    }
   
    if (toSpawn == EntityType.OCELOT){
      final Ocelot ocelot = (Ocelot) entity1;
      Random random = new Random();
      int i = random.nextInt(Ocelot.Type.values().length);
      ocelot.setCatType(Ocelot.Type.values()[i]);
    }
   
    if (type != null){
      if (type.equalsIgnoreCase("fire")){
        entity1.setFireTicks(40);
View Full Code Here

Examples of org.bukkit.entity.Ocelot

        } else {
          entity1 = p.getWorld().spawn(p.getEyeLocation(), toSpawn.getEntityClass());
        }
       
        if (toSpawn == EntityType.OCELOT){
          final Ocelot ocelot = (Ocelot) entity1;
          Random random = new Random();
          int i = random.nextInt(Ocelot.Type.values().length);
          ocelot.setCatType(Ocelot.Type.values()[i]);
        }
       
        if (type != null){
          if (type.equalsIgnoreCase("fire")){
            entity1.setFireTicks(40);
View Full Code Here

Examples of org.bukkit.entity.Ocelot

          creep.setPowered(true);
        }
       
        if (type.startsWith("ocelottype:")){
          type = type.replaceFirst("ocelottype:", "");
          Ocelot oce = (Ocelot) entity;
          if (!type.startsWith("wild")){
            oce.setTamed(true);
            oce.setOwner((AnimalTamer) player);
          }
         
          oce.setCatType(ClosestMatches.catType(type).get(0));
        }
       
        if (type.startsWith("sheepcolor:")){
          type = type.split(":")[1];
          Sheep sheep = (Sheep) entity;
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.