Interface IImage

All Known Implementing Classes:
Image

public interface IImage
Interface for graphics objects that can be rendered.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    draw(net.minecraft.client.gui.GuiComponent gui, com.mojang.blaze3d.vertex.PoseStack matrixStack, int x, int y)
    Draw this image.
    void
    drawWithColor(net.minecraft.client.gui.GuiComponent gui, com.mojang.blaze3d.vertex.PoseStack matrixStack, int x, int y, float r, float g, float b, float a)
    Draw this image.
    default void
    drawWorld(net.minecraft.client.renderer.texture.TextureManager textureManager, com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.renderer.MultiBufferSource renderTypeBuffer, int combinedLight, int combinedOverlay, float x2, float y2)
    Draw the image in the world.
    default void
    drawWorld(net.minecraft.client.renderer.texture.TextureManager textureManager, com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.renderer.MultiBufferSource renderTypeBuffer, int combinedLight, int combinedOverlay, float x1, float x2, float y1, float y2)
    Draw the image in the world.
    default void
    drawWorld(net.minecraft.client.renderer.texture.TextureManager textureManager, com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.renderer.MultiBufferSource renderTypeBuffer, int combinedLight, int combinedOverlay, float x1, float x2, float y1, float y2, float z)
    Draw the image in the world.
    default void
    drawWorldWithAlpha(net.minecraft.client.renderer.texture.TextureManager textureManager, com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.renderer.MultiBufferSource renderTypeBuffer, int combinedLight, int combinedOverlay, float x2, float y2, float alpha)
    Draw the image in the world.
    default void
    drawWorldWithAlpha(net.minecraft.client.renderer.texture.TextureManager textureManager, com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.renderer.MultiBufferSource renderTypeBuffer, int combinedLight, int combinedOverlay, float x1, float x2, float y1, float y2, float alpha)
    Draw the image in the world.
    void
    drawWorldWithAlpha(net.minecraft.client.renderer.texture.TextureManager textureManager, com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.renderer.MultiBufferSource renderTypeBuffer, int combinedLight, int combinedOverlay, float x1, float x2, float y1, float y2, float z, float alpha)
    Draw the image in the world.
    int
     
    int
     
  • Method Details

    • draw

      void draw(net.minecraft.client.gui.GuiComponent gui, com.mojang.blaze3d.vertex.PoseStack matrixStack, int x, int y)
      Draw this image.
      Parameters:
      gui - The gui helper object.
      matrixStack - The matrix stack.
      x - The x position.
      y - The y position.
    • drawWithColor

      void drawWithColor(net.minecraft.client.gui.GuiComponent gui, com.mojang.blaze3d.vertex.PoseStack matrixStack, int x, int y, float r, float g, float b, float a)
      Draw this image.
      Parameters:
      gui - The gui helper object.
      matrixStack - The matrix stack.
      x - The x position.
      y - The y position.
      r - Red
      g - Green
      b - Blue
      a - Alpha
    • drawWorld

      default void drawWorld(net.minecraft.client.renderer.texture.TextureManager textureManager, com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.renderer.MultiBufferSource renderTypeBuffer, int combinedLight, int combinedOverlay, float x1, float x2, float y1, float y2, float z)
      Draw the image in the world.
      Parameters:
      textureManager - The texture manager.
      matrixStack - The matrix stack
      renderTypeBuffer - The render type buffer
      combinedLight - The combined light
      combinedOverlay - The combined overlay
      x1 - Start X
      x2 - End X
      y1 - Start Y
      y2 - End Y
      z - Z
    • drawWorld

      default void drawWorld(net.minecraft.client.renderer.texture.TextureManager textureManager, com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.renderer.MultiBufferSource renderTypeBuffer, int combinedLight, int combinedOverlay, float x1, float x2, float y1, float y2)
      Draw the image in the world.
      Parameters:
      textureManager - The texture manager.
      matrixStack - The matrix stack
      renderTypeBuffer - The render type buffer
      combinedLight - The combined light
      combinedOverlay - The combined overlay
      x1 - Start X
      x2 - End X
      y1 - Start Y
      y2 - End Y
    • drawWorld

      default void drawWorld(net.minecraft.client.renderer.texture.TextureManager textureManager, com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.renderer.MultiBufferSource renderTypeBuffer, int combinedLight, int combinedOverlay, float x2, float y2)
      Draw the image in the world.
      Parameters:
      textureManager - The texture manager.
      matrixStack - The matrix stack
      renderTypeBuffer - The render type buffer
      combinedLight - The combined light
      combinedOverlay - The combined overlay
      x2 - End X
      y2 - End Y
    • drawWorldWithAlpha

      default void drawWorldWithAlpha(net.minecraft.client.renderer.texture.TextureManager textureManager, com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.renderer.MultiBufferSource renderTypeBuffer, int combinedLight, int combinedOverlay, float x1, float x2, float y1, float y2, float alpha)
      Draw the image in the world.
      Parameters:
      textureManager - The texture manager.
      matrixStack - The matrix stack
      renderTypeBuffer - The render type buffer
      combinedLight - The combined light
      combinedOverlay - The combined overlay
      x1 - Start X
      x2 - End X
      y1 - Start Y
      y2 - End Y
      alpha - The alpha to render with
    • drawWorldWithAlpha

      default void drawWorldWithAlpha(net.minecraft.client.renderer.texture.TextureManager textureManager, com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.renderer.MultiBufferSource renderTypeBuffer, int combinedLight, int combinedOverlay, float x2, float y2, float alpha)
      Draw the image in the world.
      Parameters:
      textureManager - The texture manager.
      matrixStack - The matrix stack
      renderTypeBuffer - The render type buffer
      combinedLight - The combined light
      combinedOverlay - The combined overlay
      x2 - End X
      y2 - End Y
      alpha - The alpha to render with
    • drawWorldWithAlpha

      void drawWorldWithAlpha(net.minecraft.client.renderer.texture.TextureManager textureManager, com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.renderer.MultiBufferSource renderTypeBuffer, int combinedLight, int combinedOverlay, float x1, float x2, float y1, float y2, float z, float alpha)
      Draw the image in the world.
      Parameters:
      textureManager - The texture manager.
      matrixStack - The matrix stack
      renderTypeBuffer - The render type buffer
      combinedLight - The combined light
      combinedOverlay - The combined overlay
      x1 - Start X
      x2 - End X
      y1 - Start Y
      y2 - End Y
      z - Z
      alpha - The alpha to render with
    • getWidth

      int getWidth()
      Returns:
      The width in pixels.
    • getHeight

      int getHeight()
      Returns:
      The height in pixels.