Class Rect2i

java.lang.Object
net.minecraft.client.util.Rect2i

@Environment(CLIENT)
public class Rect2i
extends Object
  • Field Details

    • x

      private int x
    • y

      private int y
    • width

      private int width
    • height

      private int height
  • Constructor Details

    • Rect2i

      public Rect2i​(int x, int y, int width, int height)
  • Method Details

    • getX

      public int getX()
    • getY

      public int getY()
    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • contains

      public boolean contains​(int x, int y)