Interface IImage
- All Known Implementing Classes:
Image
public interface IImage
Interface for graphics objects that can be rendered.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(net.minecraft.client.gui.GuiGraphics gui, int x, int y) Draw this image.voiddrawWithColor(net.minecraft.client.gui.GuiGraphics gui, int x, int y, float r, float g, float b, float a) Draw this image.default voiddrawWorld(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 voiddrawWorld(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 voiddrawWorld(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 voiddrawWorldWithAlpha(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 voiddrawWorldWithAlpha(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.voiddrawWorldWithAlpha(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.intintgetWidth()
-
Method Details
-
draw
void draw(net.minecraft.client.gui.GuiGraphics gui, int x, int y) Draw this image.- Parameters:
gui- The gui helper object.x- The x position.y- The y position.
-
drawWithColor
void drawWithColor(net.minecraft.client.gui.GuiGraphics gui, int x, int y, float r, float g, float b, float a) Draw this image.- Parameters:
gui- The gui helper object.x- The x position.y- The y position.r- Redg- Greenb- Bluea- 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 stackrenderTypeBuffer- The render type buffercombinedLight- The combined lightcombinedOverlay- The combined overlayx1- Start Xx2- End Xy1- Start Yy2- End Yz- 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 stackrenderTypeBuffer- The render type buffercombinedLight- The combined lightcombinedOverlay- The combined overlayx1- Start Xx2- End Xy1- Start Yy2- 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 stackrenderTypeBuffer- The render type buffercombinedLight- The combined lightcombinedOverlay- The combined overlayx2- End Xy2- 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 stackrenderTypeBuffer- The render type buffercombinedLight- The combined lightcombinedOverlay- The combined overlayx1- Start Xx2- End Xy1- Start Yy2- End Yalpha- 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 stackrenderTypeBuffer- The render type buffercombinedLight- The combined lightcombinedOverlay- The combined overlayx2- End Xy2- End Yalpha- 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 stackrenderTypeBuffer- The render type buffercombinedLight- The combined lightcombinedOverlay- The combined overlayx1- Start Xx2- End Xy1- Start Yy2- End Yz- Zalpha- The alpha to render with
-
getWidth
int getWidth()- Returns:
- The width in pixels.
-
getHeight
int getHeight()- Returns:
- The height in pixels.
-