Examples of MateFeature


Examples of de.kumpelblase2.remoteentities.api.features.MateFeature

  @Override
  public boolean shouldExecute()
  {
    if(this.getRemoteEntity().getFeatures().hasFeature(MateFeature.class))
    {
      MateFeature feature = this.getRemoteEntity().getFeatures().getFeature(MateFeature.class);
      if(!feature.isAffected())
        return false;
      else
      {
        this.m_mate = this.getNextAnimal();
        return this.m_mate != null;
View Full Code Here

Examples of de.kumpelblase2.remoteentities.api.features.MateFeature

    {
      EntityLiving mate = (EntityLiving)it.next();
      double currentRange;
      if(this.getRemoteEntity().getFeatures().hasFeature(MateFeature.class))
      {
        MateFeature feature = this.getRemoteEntity().getFeatures().getFeature(MateFeature.class);
        if(feature.isPossiblePartner((LivingEntity)mate.getBukkitEntity()) && (currentRange = entity.e(mate)) < nearestRange)
        {
          nearest = mate;
          nearestRange = currentRange;
        }
      }
View Full Code Here

Examples of de.kumpelblase2.remoteentities.api.features.MateFeature

  protected EntityLiving createChild()
  {
    LivingEntity baby = null;
    if(this.getRemoteEntity().getFeatures().hasFeature(MateFeature.class))
    {
      MateFeature feature = this.getRemoteEntity().getFeatures().getFeature(MateFeature.class);
      baby = feature.makeBaby();
    }
    else if(this.getEntityHandle() instanceof EntityAnimal)
      baby = (LivingEntity)((EntityAnimal)this.getEntityHandle()).createChild((EntityAnimal)this.m_mate).getBukkitEntity();

    if(baby != null)
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.