public abstract class Screen extends GuiComponent
onMouseMoved(…)). Everything that should be visible to the
player needs to be rendered to the currently active screen.ICON_FONT| Modifier | Constructor and Description |
|---|---|
protected |
Screen(java.lang.String screenName) |
| Modifier and Type | Method and Description |
|---|---|
void |
setX(double x)
Sets the GuiComponent's x coordinate.
|
void |
setY(double y)
Sets the GuiComponent's y coordinate.
|
drawTextShadow, getAppearance, getAppearanceDisabled, getAppearanceHovered, getBoundingBox, getClickConsumer, getComponentId, getComponents, getCurrentAppearance, getFont, getHeight, getHorizontalTextMargin, getHoverConsumer, getHoverSound, getLocation, getMouseDraggedConsumer, getMouseEnterConsumer, getMouseLeaveConsumer, getMouseMovedConsumer, getMousePressedConsumer, getMouseReleasedConsumer, getMouseWheelConsumer, getName, getShape, getTag, getText, getTextAlign, getTextAngle, getTextShadowColor, getTextToRender, getTextX, getTextY, getWidth, getX, getY, initializeComponents, isEnabled, isForwardMouseEvents, isHovered, isPressed, isSelected, isSuspended, isVisible, mouseClicked, mouseDragged, mouseEntered, mouseEventShouldBeForwarded, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, onClicked, onHovered, onMouseDragged, onMouseEnter, onMouseLeave, onMouseMoved, onMousePressed, onMouseReleased, onMouseWheelScrolled, onTextChanged, prepare, render, setDimension, setEnabled, setFont, setFontSize, setForwardMouseEvents, setHeight, setHorizontalTextMargin, setHovered, setHoverSound, setLocation, setLocation, setName, setSelected, setTag, setText, setTextAlign, setTextAngle, setTextShadow, setTextShadowColor, setTextX, setTextY, setVisible, setWidth, suspend, toggleSelectionpublic void setX(double x)
GuiComponentsetX in class GuiComponentx - the new x coordinatepublic void setY(double y)
GuiComponentsetY in class GuiComponenty - the new y coordinate