public class UIImage extends UIComponent<UIImage>
ITransformable.Alpha, ITransformable.Brightness, ITransformable.Color, ITransformable.Position<T>, ITransformable.Rotate, ITransformable.Scale, ITransformable.Size<T>, ITransformable.Translate| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.util.ResourceLocation |
BLOCKS_TEXTURE
ResourceLocation for Block textures. |
static net.minecraft.util.ResourceLocation |
ITEMS_TEXTURE
ResourceLocation for Item textures. |
| Constructor and Description |
|---|
UIImage(MalisisGui gui,
GuiTexture texture,
net.minecraft.util.IIcon icon)
Instantiates a new
UIImage. |
UIImage(MalisisGui gui,
net.minecraft.item.ItemStack itemStack)
Instantiates a new
UIImage. |
| Modifier and Type | Method and Description |
|---|---|
void |
drawBackground(GuiRenderer renderer,
int mouseX,
int mouseY,
float partialTick)
Called first when drawing this
UIComponent. |
void |
drawForeground(GuiRenderer renderer,
int mouseX,
int mouseY,
float partialTick)
Called last when drawing this
UIComponent. |
net.minecraft.util.IIcon |
getIcon()
Gets the
IIcon for this UIImage. |
net.minecraft.item.ItemStack |
getItemStack()
Gets the
ItemStack for this UIImage. |
java.lang.String |
getPropertyString()
Gets the property string.
|
GuiTexture |
getTexture()
Gets the
GuiTexture for this UIImage. |
UIImage |
setIcon(GuiTexture texture,
net.minecraft.util.IIcon icon)
Sets the icon for this
UIImage to be used with the specified GuiTexture. |
UIImage |
setIcon(net.minecraft.util.IIcon icon)
Sets the icon for this
UIImage. |
UIImage |
setItemStack(net.minecraft.item.ItemStack itemStack)
Sets the
ItemStack to render. |
UIImage |
setSize(int width,
int height)
Sets the size for this
UIImage. |
addControlComponent, componentX, componentY, draw, fireEvent, getAlpha, getAnchor, getComponentAt, getGui, getHeight, getName, getParent, getRawHeight, getRawWidth, getRenderer, getTooltip, getWidth, getX, getY, getZIndex, isDisabled, isFocused, isHovered, isInsideBounds, isRelativeHeight, isRelativeWidth, isVisible, onAddedToScreen, onButtonPress, onButtonRelease, onClick, onDoubleClick, onDrag, onKeyTyped, onMouseMove, onRightClick, onScrollWheel, parentX, parentY, register, relativeX, relativeY, removeAllControlComponents, removeControlComponent, screenX, screenY, setAlpha, setAnchor, setDisabled, setFocused, setHovered, setName, setParent, setPosition, setPosition, setTooltip, setTooltip, setVisible, setZIndex, toString, unregisterpublic static final net.minecraft.util.ResourceLocation BLOCKS_TEXTURE
ResourceLocation for Block textures.public static final net.minecraft.util.ResourceLocation ITEMS_TEXTURE
ResourceLocation for Item textures.public UIImage(MalisisGui gui, GuiTexture texture, net.minecraft.util.IIcon icon)
UIImage.gui - the guitexture - the textureicon - the iconpublic UIImage(MalisisGui gui, net.minecraft.item.ItemStack itemStack)
UIImage.gui - the guiitemStack - the item stackpublic UIImage setIcon(net.minecraft.util.IIcon icon)
UIImage.icon - the iconpublic UIImage setIcon(GuiTexture texture, net.minecraft.util.IIcon icon)
UIImage to be used with the specified GuiTexture.texture - the textureicon - the iconpublic UIImage setItemStack(net.minecraft.item.ItemStack itemStack)
ItemStack to render.itemStack - the item stackpublic net.minecraft.util.IIcon getIcon()
IIcon for this UIImage.public GuiTexture getTexture()
GuiTexture for this UIImage.public net.minecraft.item.ItemStack getItemStack()
ItemStack for this UIImage.public UIImage setSize(int width, int height)
setSize in interface ITransformable.Size<UIImage>setSize in class UIComponent<UIImage>width - the widthheight - the heightpublic void drawBackground(GuiRenderer renderer, int mouseX, int mouseY, float partialTick)
UIComponentUIComponent.drawBackground in class UIComponent<UIImage>renderer - the renderermouseX - the mouse xmouseY - the mouse ypartialTick - the partial tickpublic void drawForeground(GuiRenderer renderer, int mouseX, int mouseY, float partialTick)
UIComponentUIComponent.drawForeground in class UIComponent<UIImage>renderer - the renderermouseX - the mouse xmouseY - the mouse ypartialTick - the partial tickpublic java.lang.String getPropertyString()
UIComponentgetPropertyString in class UIComponent<UIImage>