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, getFont, getHeight, getHorizontalTextMargin, getHoverConsumer, getHoverSound, getLocation, getMouseDraggedConsumer, getMouseEnterConsumer, getMouseLeaveConsumer, getMouseMovedConsumer, getMousePressedConsumer, getMouseReleasedConsumer, getMouseWheelConsumer, getName, 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, toggleSelection
public void setX(double x)
GuiComponent
setX
in class GuiComponent
x
- the new x coordinatepublic void setY(double y)
GuiComponent
setY
in class GuiComponent
y
- the new y coordinate