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

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


  @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

    this.m_id = this.m_manager.getNextFreeID(this.m_id);

    if(this.m_type.isNamed())
    {
      if(this.m_name == null)
        throw new NoNameException("Tried to spawn a named entity without name");

      created = this.m_manager.createNamedEntity(this.m_type, this.m_id, this.m_name);
    }
    else
      created = this.m_manager.createEntity(this.m_type, this.m_id);
View Full Code Here

  public RemoteEntity create()
  {
    RemoteEntity created;

    if(this.m_type == null)
      throw new NoTypeException();

    this.m_id = this.m_manager.getNextFreeID(this.m_id);

    if(this.m_type.isNamed())
    {
View Full Code Here

  @Deprecated
  public DesireSwell(RemoteEntity inEntity, int inMinDistance, int inMaxDistance)
  {
    super(inEntity);
    if(!(this.getEntityHandle() instanceof EntityCreeper))
      throw new NotACreeperException();

    this.m_creeper = (EntityCreeper)this.getEntityHandle();
    this.m_type = DesireType.PRIMAL_INSTINCT;
    this.m_minDistance = inMinDistance;
    this.m_minDistanceSqr = inMinDistance * inMinDistance;
 
View Full Code Here

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

    this.m_creeper = (EntityCreeper)this.getEntityHandle();
  }
View Full Code Here

  @Deprecated
  public DesirePlay(RemoteEntity inEntity)
  {
    super(inEntity);
    if(!(this.getEntityHandle() instanceof EntityVillager))
      throw new NotAVillagerException();

    this.m_villager = (EntityVillager)this.getEntityHandle();
    this.m_type = DesireType.PRIMAL_INSTINCT;
  }
View Full Code Here

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

    this.m_villager = (EntityVillager)this.getEntityHandle();
  }
View Full Code Here

  @Deprecated
  public DesireMakeLove(RemoteEntity inEntity)
  {
    super(inEntity);
    if(!(this.getEntityHandle() instanceof EntityVillager))
      throw new NotAVillagerException();

    this.m_villager = (EntityVillager)this.getEntityHandle();
    this.m_type = DesireType.FULL_CONCENTRATION;
  }
View Full Code Here

TOP

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

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.