This page talks about AbstractMoveableScreen.
The AbstractMoveableScreenarrow-up-right class extends the Screen class and provides additional functionality for creating moveable screens in Minecraft Fabric.
AbstractMoveableScreen
Screen
dynamicutil: The DynamicUtil instance used by this screen.
dynamicutil
DynamicUtil
mc: The MinecraftClient instance.
mc
MinecraftClient
selectedWidget: The currently selected widget.
selectedWidget
dragStartX, dragStartY: The starting position of a drag operation.
dragStartX
dragStartY
List<contextMenu>: The List of context menu that are currently being displayed.
List<contextMenu>
colorPicker: The color picker that is currently displayed.
colorPicker
sliderWigdet: The widget that is currently being edited by the slider.
sliderWigdet
List<Slider>: The List of sliders.
List<Slider>
mouseHandler: The mouse handler for this screen.
mouseHandler
dragHandler: The drag handler for this screen.
dragHandler
gridSize: The size of each grid cell in pixels.
gridSize
ShouldPause: Whether to pause if the screen is opened or not.
ShouldPause
ShouldBeAffectedByResize: Whether the stuff drawn on screen should be affected by screen resize or not.
ShouldBeAffectedByResize
WidgetX: X position of the selected widget.
WidgetX
WidgetY: Y position of the selected widget.
WidgetY
Constructs an AbstractMoveableScreen object with the given title and dynamicutil instance.
Handles mouse dragging on this screen. This method updates the position of the selected widget while dragging.
Handles mouse release events on this screen. This method stops dragging or scaling the selected widget.
Handles mouse clicks on this screen. This method starts dragging a widget if it was clicked.
Renders this screen and its widgets on the screen.
Sets the size of each grid cell in pixels.
Sets whether to pause if the screen is opened or not.
Sets whether the stuff drawn on screen should be affected by screen resize or not.
Resizes this screen. If ShouldBeAffectedByResize is true, this method calls the superclass's implementation of this method.
Returns whether to pause if the screen is opened or not.
An abstract method that must be implemented by subclasses to handle right-clicks on widgets.
An abstract method that must be implemented by subclasses to display a context menu for a widget at the given position.