Uses of Record Class
net.minecraft.client.gui.ScreenRect
Packages that use ScreenRect
Package
Description
-
Uses of ScreenRect in net.minecraft.client.gui
Fields in net.minecraft.client.gui declared as ScreenRectFields in net.minecraft.client.gui with type parameters of type ScreenRectMethods in net.minecraft.client.gui that return ScreenRectModifier 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) Methods in net.minecraft.client.gui with parameters of type ScreenRectModifier 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
Methods in net.minecraft.client.gui.screen that return ScreenRect -
Uses of ScreenRect in net.minecraft.client.gui.tab
Fields in net.minecraft.client.gui.tab declared as ScreenRectMethods in net.minecraft.client.gui.tab with parameters of type ScreenRectModifier and TypeMethodDescriptionvoid
GridScreenTab.refreshGrid
(ScreenRect tabArea) void
Tab.refreshGrid
(ScreenRect tabArea) void
TabManager.setTabArea
(ScreenRect tabArea) -
Uses of ScreenRect in net.minecraft.client.gui.tooltip
Fields in net.minecraft.client.gui.tooltip declared as ScreenRectModifier and TypeFieldDescriptionprivate final ScreenRect
FocusedTooltipPositioner.focus
private final ScreenRect
WidgetTooltipPositioner.focus
Methods in net.minecraft.client.gui.tooltip with parameters of type ScreenRectModifier and TypeMethodDescriptionprotected TooltipPositioner
Tooltip.createPositioner
(boolean hovered, boolean focused, ScreenRect focus) void
Tooltip.render
(boolean hovered, boolean focused, ScreenRect focus) Constructors in net.minecraft.client.gui.tooltip with parameters of type ScreenRectModifierConstructorDescription -
Uses of ScreenRect in net.minecraft.client.gui.widget
Methods in net.minecraft.client.gui.widget that return ScreenRectModifier and TypeMethodDescriptionClickableWidget.getNavigationFocus()
TabNavigationWidget.getNavigationFocus()
default ScreenRect
Widget.getNavigationFocus()
Methods in net.minecraft.client.gui.widget with parameters of type ScreenRectModifier and TypeMethodDescriptionstatic void
SimplePositioningWidget.setPos
(Widget widget, ScreenRect rect) static void
SimplePositioningWidget.setPos
(Widget widget, ScreenRect rect, float relativeX, float relativeY)