net.minecraft.client.gui

public record ScreenRect

net.minecraft.client.gui.navigation.ScreenRectangle
net.minecraft.class_8030
net.minecraft.client.gui.ScreenRect

Field summary

Modifier and TypeField
private final ScreenPos
position
comp_1195
position
private final int
width
comp_1196
width
private final int
height
comp_1197
height
private static final ScreenRect
EMPTY
field_41835
EMPTY

Constructor summary

ModifierConstructor
public (int sameAxis, int otherAxis, int width, int height)
public (ScreenPos position, int width, int height)

Method summary

Modifier and TypeMethod
public static ScreenRect
empty()
method_48248()
empty()
public static ScreenRect
of(ScreenAxis primaryAxis, int primaryIndex, int secondaryIndex, int primaryLength, int secondaryLength)
method_48250(class_8027 arg0, int arg1, int arg2, int arg3, int arg4)
of(NavigationAxis axis, int sameAxisCoord, int otherAxisCoord, int sameAxisLength, int otherAxisLength)
public ScreenRect
step(ScreenDirection direction)
method_48251(class_8028 arg0)
add(NavigationDirection direction)
public int
getLength(ScreenAxis axis)
method_48249(class_8027 arg0)
getLength(NavigationAxis axis)
public int
getBoundInDirection(ScreenDirection direction)
method_48255(class_8028 arg0)
getBoundingCoordinate(NavigationDirection direction)
public ScreenRect
getBorder(ScreenDirection direction)
method_48256(class_8028 arg0)
getBorder(NavigationDirection direction)
public boolean
overlaps(ScreenRectangle other)
method_48252(class_8030 arg0)
overlaps(ScreenRect other)
public boolean
overlapsInAxis(ScreenRectangle other, ScreenAxis axis)
method_48253(class_8030 arg0, class_8027 arg1)
overlaps(ScreenRect other, NavigationAxis axis)
public int
getCenterInAxis(ScreenAxis axis)
method_48254(class_8027 arg0)
getCenter(NavigationAxis axis)
public ScreenRect
intersection(ScreenRectangle other)
method_49701(class_8030 arg0)
intersection(ScreenRect other)
public boolean
intersects(ScreenRectangle other)
method_71524(class_8030 arg0)
intersects(ScreenRect other)
public boolean
encompasses(ScreenRectangle other)
method_71525(class_8030 arg0)
contains(ScreenRect other)
public int
top()
method_49618()
getTop()
public int
bottom()
method_49619()
getBottom()
public int
left()
method_49620()
getLeft()
public int
right()
method_49621()
getRight()
public boolean
containsPoint(int x, int y)
method_58137(int arg0, int arg1)
contains(int x, int y)
public ScreenRect
transformAxisAligned(org.joml.Matrix3x2fc matrix)
method_65185(org.joml.Matrix3x2fc arg0)
transform(org.joml.Matrix3x2fc matrix)
public ScreenRect
transformMaxBounds(org.joml.Matrix3x2fc matrix)
method_71523(org.joml.Matrix3x2fc arg0)
transformEachVertex(org.joml.Matrix3x2fc matrix)
public ScreenPos
position()
comp_1195()
position()
public int
width()
comp_1196()
width()
public int
height()
comp_1197()
height()