public class TankElement extends GuiElement
cropElement, cropHeight, cropWidth, cropX, cropY, height, parent, visible, width, xOffset, xPos, yOffset, yPos| Constructor and Description |
|---|
TankElement(int xPos,
int yPos,
Drawable background,
java.util.function.Supplier<net.minecraftforge.fluids.FluidTankInfo> tank) |
TankElement(int xPos,
int yPos,
Drawable background,
java.util.function.Supplier<net.minecraftforge.fluids.FluidTankInfo> tank,
Drawable overlay) |
TankElement(int xPos,
int yPos,
Drawable background,
java.util.function.Supplier<net.minecraftforge.fluids.FluidTankInfo> tank,
Drawable overlay,
int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
void |
drawElement(int mouseX,
int mouseY)
Draws the element itself at the current position.
|
java.util.List<java.lang.String> |
getTooltip(int mouseX,
int mouseY)
Returns the tooltip that this element provides at the given mouse position.
|
boolean |
hasTooltip() |
addEventHandler, addTooltip, addTooltip, addTooltip, clearTooltip, draw, getAbsoluteX, getAbsoluteY, getAlign, getCropElement, getCropHeight, getCropWidth, getCropX, getCropY, getHeight, getParent, getTooltip, getWidth, getWindow, getX, getY, hide, isCropped, isEnabled, isMouseOver, isMouseOver, isVisible, onCreation, onDeletion, onUpdateClient, receiveEvent, setAlign, setBounds, setCroppedZone, setHeight, setLocation, setOffset, setParent, setSize, setWidth, setXPosition, setYPosition, show, toString, updateClientdrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddEventHandler, addEventHandler, addSelfEventHandler, canFocus, canMouseOver, postEvent, postEventpublic TankElement(int xPos,
int yPos,
@Nullable
Drawable background,
java.util.function.Supplier<net.minecraftforge.fluids.FluidTankInfo> tank)
public TankElement(int xPos,
int yPos,
@Nullable
Drawable background,
java.util.function.Supplier<net.minecraftforge.fluids.FluidTankInfo> tank,
@Nullable
Drawable overlay)
public void drawElement(int mouseX,
int mouseY)
IGuiElementdrawElement in interface IGuiElementdrawElement in class GuiElementmouseX - The x position of the mouse relative to the parent of the element.mouseY - The y position of the mouse relative to the parent of the element.public java.util.List<java.lang.String> getTooltip(int mouseX,
int mouseY)
IGuiElementgetTooltip in interface IGuiElementgetTooltip in class GuiElementmouseX - The x position of the mouse relative to the parent of the element.mouseY - The y position of the mouse relative to the parent of the element.public boolean hasTooltip()
hasTooltip in interface IGuiElementhasTooltip in class GuiElement