Class Rect2i

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

public class Rect2i extends Object
  • Field Details

    • xPos

      private int xPos
    • yPos

      private int yPos
    • width

      private int width
    • height

      private int height
  • Constructor Details

    • Rect2i

      public Rect2i(int xPos, int yPos, int width, int height)
  • Method Details

    • intersect

      public Rect2i intersect(Rect2i other)
    • getX

      public int getX()
    • getY

      public int getY()
    • setX

      public void setX(int xPos)
    • setY

      public void setY(int yPos)
    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • setWidth

      public void setWidth(int width)
    • setHeight

      public void setHeight(int height)
    • setPosition

      public void setPosition(int xPos, int yPos)
    • contains

      public boolean contains(int x, int y)