Interface DrawCallbacks


  • public interface DrawCallbacks
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void animate​(Texture texture, int diff)  
      void draw​(int overlayColor)
      Called when a frame should be drawn.
      void draw​(Renderable renderable, int orientation, int pitchSin, int pitchCos, int yawSin, int yawCos, int x, int y, int z, long hash)  
      boolean drawFace​(Model model, int face)  
      void drawScene​(int cameraX, int cameraY, int cameraZ, int cameraPitch, int cameraYaw, int plane)
      Called before the scene is drawn
      void drawSceneModel​(int orientation, int pitchSin, int pitchCos, int yawSin, int yawCos, int x, int y, int z, SceneTileModel model, int tileZ, int tileX, int tileY, int zoom, int centerX, int centerY)  
      void drawScenePaint​(int orientation, int pitchSin, int pitchCos, int yawSin, int yawCos, int x, int y, int z, SceneTilePaint paint, int tileZ, int tileX, int tileY, int zoom, int centerX, int centerY)  
      void postDrawScene()
      Called after the scene has been drawn
    • Method Detail

      • draw

        void draw​(Renderable renderable,
                  int orientation,
                  int pitchSin,
                  int pitchCos,
                  int yawSin,
                  int yawCos,
                  int x,
                  int y,
                  int z,
                  long hash)
      • drawScenePaint

        void drawScenePaint​(int orientation,
                            int pitchSin,
                            int pitchCos,
                            int yawSin,
                            int yawCos,
                            int x,
                            int y,
                            int z,
                            SceneTilePaint paint,
                            int tileZ,
                            int tileX,
                            int tileY,
                            int zoom,
                            int centerX,
                            int centerY)
      • drawSceneModel

        void drawSceneModel​(int orientation,
                            int pitchSin,
                            int pitchCos,
                            int yawSin,
                            int yawCos,
                            int x,
                            int y,
                            int z,
                            SceneTileModel model,
                            int tileZ,
                            int tileX,
                            int tileY,
                            int zoom,
                            int centerX,
                            int centerY)
      • draw

        void draw​(int overlayColor)
        Called when a frame should be drawn.
        Parameters:
        overlayColor - Color of full-viewport overlays, if any
      • drawFace

        boolean drawFace​(Model model,
                         int face)
      • drawScene

        void drawScene​(int cameraX,
                       int cameraY,
                       int cameraZ,
                       int cameraPitch,
                       int cameraYaw,
                       int plane)
        Called before the scene is drawn
        Parameters:
        cameraX -
        cameraY -
        cameraZ -
        cameraPitch -
        cameraYaw -
        plane -
      • postDrawScene

        void postDrawScene()
        Called after the scene has been drawn
      • animate

        void animate​(Texture texture,
                     int diff)