Ejemplo n.º 1
0
  public EntityAIDoorInteract(EntityLiving p_i1621_1_) {
    this.field_179507_b = BlockPos.ORIGIN;
    this.theEntity = p_i1621_1_;

    if (!(p_i1621_1_.getNavigator() instanceof PathNavigateGround)) {
      throw new IllegalArgumentException("Unsupported mob type for DoorInteractGoal");
    }
  }
 protected PathNavigate getNavigator() {
   if (entityHost.isRiding()) {
     Entity ent = entityHost.ridingEntity;
     if (ent instanceof EntityLiving) {
       return ((EntityLiving) ent).getNavigator();
     }
   }
   return entityHost.getNavigator();
 }