public class GuiHelper
extends java.lang.Object
| Constructor and Description |
|---|
GuiHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
drawIconWithColor(int x,
int y,
int width,
int height,
float zLevel,
java.awt.Color color) |
static void |
drawIconWithoutColor(int x,
int y,
int width,
int height,
float zLevel) |
static void |
drawItemStack(net.minecraft.item.ItemStack stack,
int x,
int y) |
static void |
drawScaledItemStack(net.minecraft.item.ItemStack stack,
int x,
int y,
float scale) |
static void |
drawSizedIconWithColor(int x,
int y,
int width,
int height,
float zLevel,
java.awt.Color color) |
static void |
drawSizedIconWithoutColor(int x,
int y,
int width,
int height,
float zLevel) |
static java.util.List<java.lang.String> |
getTooltip(net.minecraft.item.ItemStack stack) |
static boolean |
isMouseBetween(int mouseX,
int mouseY,
int x,
int y,
int width,
int height) |
public static boolean isMouseBetween(int mouseX,
int mouseY,
int x,
int y,
int width,
int height)
mouseX - - Position of the mouse on the x-axiqmouseY - - Position of the mouse on the y-axisx - - Starting x for the rectangley - - Starting y for the rectanglewidth - - Width of the rectangleheight - - Height of the rectanglepublic static void drawItemStack(net.minecraft.item.ItemStack stack,
int x,
int y)
stack - - The itemstack to be drawnx - - The position on the x-axis to draw the itemstacky - - The position on the y-axis to draw the itemstackpublic static void drawScaledItemStack(net.minecraft.item.ItemStack stack,
int x,
int y,
float scale)
stack - - The itemstack to be drawnx - - The position on the x-axis to draw the itemstacky - - The position on the y-axis to draw the itemstackscale - - The scale with which to draw the itemstackpublic static void drawIconWithoutColor(int x,
int y,
int width,
int height,
float zLevel)
x - - The position on the x-axis to draw the icony - - The position on the y-axis to draw the iconwidth - - The width of the iconheight - - The height of the iconzLevel - -public static void drawIconWithColor(int x,
int y,
int width,
int height,
float zLevel,
java.awt.Color color)
x - - The position on the x-axis to draw the icony - - The position on the y-axis to draw the iconwidth - - The width of the iconheight - - The height of the iconzLevel - -color - - The color the icon will havepublic static void drawSizedIconWithoutColor(int x,
int y,
int width,
int height,
float zLevel)
x - - The position on the x-axis to draw the icony - - The position on the y-axis to draw the iconwidth - - The width of the iconheight - - The height of the iconzLevel - -public static void drawSizedIconWithColor(int x,
int y,
int width,
int height,
float zLevel,
java.awt.Color color)
x - - The position on the x-axis to draw the icony - - The position on the y-axis to draw the iconwidth - - The width of the iconheight - - The height of the iconzLevel - color - - The color the icon will havepublic static java.util.List<java.lang.String> getTooltip(net.minecraft.item.ItemStack stack)