Examples of IMwDataProvider


Examples of mapwriter.api.IMwDataProvider

      }

      else if (button == 2) {
        Point blockPoint = this.mapMode.screenXYtoBlockXZ(this.mapView, x, y);
 
        IMwDataProvider provider = MwAPI.getCurrentDataProvider();
          if (provider != null)         
            provider.onMiddleClick(this.mapView.getDimension(), blockPoint.x, blockPoint.y, this.mapView);
      }
     
      this.viewXStart = this.mapView.getX();
    this.viewZStart = this.mapView.getZ();
    //this.viewSizeStart = this.mapManager.getViewSize();
View Full Code Here

Examples of mapwriter.api.IMwDataProvider

        
         /*if (this.mw.markerManager.selectedMarker != null) {
           s += ", current marker: " + this.mw.markerManager.selectedMarker.name;
         }*/
      
       IMwDataProvider provider = MwAPI.getCurrentDataProvider();
       if (provider != null)      
         s += provider.getStatusString(this.mapView.getDimension(), bX, bY, bZ);
      
         drawRect(10, this.height - 21, this.width - 20, this.height - 6, 0x80000000);
         this.drawCenteredString(this.fontRendererObj,
             s, this.width / 2, this.height - 18, 0xffffff);
    }
View Full Code Here

Examples of mapwriter.api.IMwDataProvider

        );
      }
    }
   
    // draw ProfMobius chunk overlay
    IMwDataProvider provider = this.drawOverlay();
   
    // overlay onDraw event
    if (provider != null) {
      GL11.glPushMatrix();     
      provider.onDraw(this.mapView, this.mapMode);
      GL11.glPopMatrix();     
    }
   
    if (this.mapMode.circular) {
      Render.disableStencil();
View Full Code Here

Examples of mapwriter.api.IMwDataProvider

  }
 
  private IMwDataProvider drawOverlay() {
    // draw overlays from registered providers
        //for (IMwDataProvider provider : MwAPI.getDataProviders())
    IMwDataProvider provider = MwAPI.getCurrentDataProvider();
    if (provider != null) {
      ArrayList<IMwChunkOverlay> overlays = provider.getChunksOverlay(
          this.mapView.getDimension(),
          this.mapView.getX(), this.mapView.getZ(),
          this.mapView.getMinX(), this.mapView.getMinZ(),
          this.mapView.getMaxX(), this.mapView.getMaxZ()
      );
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.