Package de.kumpelblase2.remoteentities.api.thinking.goals

Examples of de.kumpelblase2.remoteentities.api.thinking.goals.DesireFollowCarrotStick


    return this.m_remoteEntity.getSound(EntitySound.DEATH);
  }

  public static DesireItem[] getDefaultMovementDesires()
  {
    return new DesireItem[] { new DesireItem(new DesireRangedAttack(RemoteProjectileType.SMALL_FIREBALL, 20), 1) };
  }
View Full Code Here


  }

  public static DesireItem[] getDefaultTargetingDesires()
  {
    return new DesireItem[] {
        new DesireItem(new DesireFindAttackingTarget(64, true, true), 1),
        new DesireItem(new DesireFindNearestTarget(EntityHuman.class, 64, true, 0), 2)
    };
  }
View Full Code Here

  public static DesireItem[] getDefaultMovementDesires()
  {
    try
    {
      return new DesireItem[] {
          new DesireItem(new DesireSwim(), 0),
          new DesireItem(new DesireAvoidSpecific(8f, 0.6D, 0.6D, EntityZombie.class), 1),
          new DesireItem(new DesireTradeWithPlayer(), 1),
          new DesireItem(new DesireLookAtTrader(8), 1),
          new DesireItem(new DesireMoveIndoors(), 2),
          new DesireItem(new DesireRestrictOpenDoor(), 3),
          new DesireItem(new DesireOpenDoor(true, false), 4),
          new DesireItem(new DesireMoveTowardsRestriction(), 5),
          new DesireItem(new DesireMakeLove(), 6),
          new DesireItem(new DesireAcceptFlower(), 7),
          new DesireItem(new DesirePlay(0.32D), 8),
          new DesireItem(new DesireInteract(EntityHuman.class, 3, 1f), 9),
          new DesireItem(new DesireInteract(EntityVillager.class, 5, 0.2f), 9),
          new DesireItem(new DesireWanderAround(), 9),
          new DesireItem(new DesireLookAtNearest(EntityInsentient.class, 8), 10)
      };
    }
    catch(Exception e)
    {
      e.printStackTrace();
View Full Code Here

  public static DesireItem[] getDefaultMovementDesires()
  {
    try
    {
      return new DesireItem[] {
          new DesireItem(new DesireSwim(), 0),
          new DesireItem(new DesirePanic(1.25D), 1),
          new DesireItem(new DesireFollowCarrotStick(0.3f), 2),
          new DesireItem(new DesireBreed(), 3),
          new DesireItem(new DesireTempt(Item.b(Items.CARROT), false, 1.2D), 4),
          new DesireItem(new DesireTempt(Item.b(Items.CARROT_STICK), false, 1.2D), 4),
          new DesireItem(new DesireFollowParent(), 5),
          new DesireItem(new DesireWanderAround(), 6),
          new DesireItem(new DesireLookAtNearest(EntityHuman.class, 6), 7),
          new DesireItem(new DesireLookRandomly(), 8)
      };
    }
    catch(Exception e)
    {
      e.printStackTrace();
View Full Code Here

  public static DesireItem[] getDefaultMovementDesires()
  {
    try
    {
      return new DesireItem[] {
          new DesireItem(new DesireSwim(), 1),
          new DesireItem(new DesirePanic(1.4D), 1),
          new DesireItem(new DesireBreed(), 2),
          new DesireItem(new DesireTempt(Item.b(Items.SEEDS), false), 3),
          new DesireItem(new DesireFollowParent(1.1D), 4),
          new DesireItem(new DesireWanderAround(), 5),
          new DesireItem(new DesireLookAtNearest(EntityHuman.class, 6), 6),
          new DesireItem(new DesireLookRandomly(), 7)
      };
    }
    catch(Exception e)
    {
      e.printStackTrace();
View Full Code Here

  public static DesireItem[] getDefaultMovementDesires()
  {
    try
    {
      return new DesireItem[] {
          new DesireItem(new DesireSwim(), 0),
          new DesireItem(new DesirePanic(1.2D), 1),
          new DesireItem(new DesireTameByRiding(1.2D), 1),
          new DesireItem(new DesireBreed(), 2),
          new DesireItem(new DesireFollowParent(), 4),
          new DesireItem(new DesireWanderAround(), 6),
          new DesireItem(new DesireLookAtNearest(EntityHuman.class, 6), 7),
          new DesireItem(new DesireLookRandomly(), 8)
      };
    }
    catch(Exception e)
    {
      e.printStackTrace();
View Full Code Here

  {
    RemoteEntity entity = npcManager.createNamedEntity(RemoteEntityType.Human, inEvent.getPlayer().getLocation(), "test");
    TamingFeature feature = new RemoteTamingFeature(entity);
    feature.tame(inEvent.getPlayer());
    entity.getFeatures().addFeature(feature);
    entity.getMind().addMovementDesire(new DesireFollowTamer(entity, 5, 15), entity.getMind().getHighestMovementPriority() + 1);
  }
View Full Code Here

  @Override
  public void onAdd(RemoteEntity inEntity)
  {
    super.onAdd(inEntity);
    this.m_selector = new EntitySelectorViewable(this.getEntityHandle());
  }
View Full Code Here

  @Override
  public void onAdd(RemoteEntity inEntity)
  {
    super.onAdd(inEntity);
    this.m_selector = new EntitySelectorViewable(this.getEntityHandle());
  }
View Full Code Here

      this.location = new LocationData(inEntity.getBukkitEntity().getLocation());
    else
    {
      if(inEntity instanceof RemoteBaseEntity)
      {
        RemoteBaseEntity base = (RemoteBaseEntity)inEntity;
        if(base.getUnloadedLocation() != null)
          this.location = new LocationData(base.getUnloadedLocation());
        else
          this.location = new LocationData();
      }
      else
        this.location = new LocationData();
View Full Code Here

TOP

Related Classes of de.kumpelblase2.remoteentities.api.thinking.goals.DesireFollowCarrotStick

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.