Package de.kumpelblase2.remoteentities.nms

Examples of de.kumpelblase2.remoteentities.nms.PathfinderGoalSelectorHelper


    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

  {
    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

  @Deprecated
  public DesireFollowParent(RemoteEntity inEntity)
  {
    super(inEntity);
    if(!(this.getEntityHandle() instanceof EntityAnimal))
      throw new CantBreedException();

    this.m_animal = (EntityAnimal)this.getEntityHandle();
  }
View Full Code Here

  @Override
  public void onAdd(RemoteEntity inEntity)
  {
    super.onAdd(inEntity);
    if(!(this.getEntityHandle() instanceof EntityAnimal))
      throw new CantBreedException();

    this.m_animal = (EntityAnimal)this.getEntityHandle();
  }
View Full Code Here

   * @throws NoNameException  when trying to spawn a named entity. Use EntityManager#createNamedEntity(RemoteEntityType, Location, String, boolean) instead.
   */
  public RemoteEntity createEntity(RemoteEntityType inType, Location inLocation, boolean inSetupGoals)
  {
    if(inType.isNamed())
      throw new NoNameException("Tried to spawn a named entity without name");

    Integer id = this.getNextFreeID();
    RemoteEntity entity = this.createEntity(inType, id);
    if(entity == null)
      return null;
View Full Code Here

TOP

Related Classes of de.kumpelblase2.remoteentities.nms.PathfinderGoalSelectorHelper

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.