Uses of Record Class
net.minecraft.client.gui.ScreenRect
Package
Description
-
Uses of ScreenRect in net.minecraft.client.gui
Modifier and TypeMethodDescriptionScreenRect.add
(NavigationDirection direction) Returns a new rect of the same dimensions with the position incremented.static ScreenRect
ScreenRect.empty()
Returns an empty rect.ScreenRect.getBorder
(NavigationDirection direction) Returns a rect representing the border of this rect in the givendirection
.default ScreenRect
Element.getNavigationFocus()
ScreenRect.intersection
(ScreenRect other) Returns the rect that intersects withother
, ornull
if they do not intersect.static ScreenRect
ScreenRect.of
(NavigationAxis axis, int sameAxisCoord, int otherAxisCoord, int sameAxisLength, int otherAxisLength) Returns a new rect.DrawContext.ScissorStack.pop()
DrawContext.ScissorStack.push
(ScreenRect rect) Modifier and TypeMethodDescriptionprivate @Nullable GuiNavigationPath
ParentElement.computeChildPath
(ScreenRect focus, NavigationDirection direction, @Nullable Element focused, GuiNavigation navigation) private @Nullable GuiNavigationPath
ParentElement.computeInitialChildPath
(ScreenRect focus, NavigationDirection direction, @Nullable Element focused, GuiNavigation navigation) ScreenRect.intersection
(ScreenRect other) Returns the rect that intersects withother
, ornull
if they do not intersect.boolean
ScreenRect.overlaps
(ScreenRect other) Returns whether this rect overlaps withrect
in both axes.boolean
ScreenRect.overlaps
(ScreenRect other, NavigationAxis axis) Returns whether this rect overlaps withrect
inaxis
.DrawContext.ScissorStack.push
(ScreenRect rect) private void
DrawContext.setScissor
(@Nullable ScreenRect rect) -
Uses of ScreenRect in net.minecraft.client.gui.screen
-
Uses of ScreenRect in net.minecraft.client.gui.tab
Modifier and TypeMethodDescriptionvoid
GridScreenTab.refreshGrid
(ScreenRect tabArea) void
Tab.refreshGrid
(ScreenRect tabArea) void
TabManager.setTabArea
(ScreenRect tabArea) -
Uses of ScreenRect in net.minecraft.client.gui.widget
Modifier and TypeMethodDescriptionClickableWidget.getNavigationFocus()
EntryListWidget.getNavigationFocus()
TabNavigationWidget.getNavigationFocus()
default ScreenRect
Widget.getNavigationFocus()
Modifier and TypeMethodDescriptionstatic void
SimplePositioningWidget.setPos
(Widget widget, ScreenRect rect) static void
SimplePositioningWidget.setPos
(Widget widget, ScreenRect rect, float relativeX, float relativeY)