public class UIImage extends UIComponent<UIImage>
ITransformable.Alpha, ITransformable.Brightness, ITransformable.Color, ITransformable.Position<T>, ITransformable.Rotate, ITransformable.Scale, ITransformable.Size<T>, ITransformable.Translate| Constructor and Description |
|---|
UIImage(MalisisGui gui,
GuiTexture texture,
Icon 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. |
Icon |
getIcon()
|
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,
Icon icon)
Sets the icon for this
UIImage to be used with the specified GuiTexture. |
UIImage |
setIcon(Icon 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, attachData, componentX, componentY, draw, fireEvent, getAlpha, getAnchor, getComponentAt, getData, getGui, getHeight, getIconProvider, 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, self, setAlpha, setAnchor, setDisabled, setFocused, setHovered, setName, setParent, setPosition, setPosition, setTooltip, setTooltip, setVisible, setZIndex, toString, unregisterpublic UIImage(MalisisGui gui, GuiTexture texture, Icon 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(Icon icon)
UIImage.icon - the iconpublic UIImage setIcon(GuiTexture texture, Icon 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 Icon getIcon()
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>