Class Rect2i

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

@Environment(CLIENT) public class Rect2i extends Object
Mappings:
Namespace Name
official enm
intermediary net/minecraft/class_768
named net/minecraft/client/util/math/Rect2i
  • Field Details

    • x

      private int x
      Mappings:
      Namespace Name Mixin selector
      official a Lenm;a:I
      intermediary field_4145 Lnet/minecraft/class_768;field_4145:I
      named x Lnet/minecraft/client/util/math/Rect2i;x:I
    • y

      private int y
      Mappings:
      Namespace Name Mixin selector
      official b Lenm;b:I
      intermediary field_4144 Lnet/minecraft/class_768;field_4144:I
      named y Lnet/minecraft/client/util/math/Rect2i;y:I
    • width

      private int width
      Mappings:
      Namespace Name Mixin selector
      official c Lenm;c:I
      intermediary field_4143 Lnet/minecraft/class_768;field_4143:I
      named width Lnet/minecraft/client/util/math/Rect2i;width:I
    • height

      private int height
      Mappings:
      Namespace Name Mixin selector
      official d Lenm;d:I
      intermediary field_4142 Lnet/minecraft/class_768;field_4142:I
      named height Lnet/minecraft/client/util/math/Rect2i;height:I
  • Constructor Details

    • Rect2i

      public Rect2i(int x, int y, int width, int height)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lenm;<init>(IIII)V
      intermediary <init> Lnet/minecraft/class_768;<init>(IIII)V
      named <init> Lnet/minecraft/client/util/math/Rect2i;<init>(IIII)V
  • Method Details

    • intersection

      public Rect2i intersection(Rect2i rect)
      Mappings:
      Namespace Name Mixin selector
      official a Lenm;a(Lenm;)Lenm;
      intermediary method_35780 Lnet/minecraft/class_768;method_35780(Lnet/minecraft/class_768;)Lnet/minecraft/class_768;
      named intersection Lnet/minecraft/client/util/math/Rect2i;intersection(Lnet/minecraft/client/util/math/Rect2i;)Lnet/minecraft/client/util/math/Rect2i;
    • getX

      public int getX()
      Mappings:
      Namespace Name Mixin selector
      official a Lenm;a()I
      intermediary method_3321 Lnet/minecraft/class_768;method_3321()I
      named getX Lnet/minecraft/client/util/math/Rect2i;getX()I
    • getY

      public int getY()
      Mappings:
      Namespace Name Mixin selector
      official b Lenm;b()I
      intermediary method_3322 Lnet/minecraft/class_768;method_3322()I
      named getY Lnet/minecraft/client/util/math/Rect2i;getY()I
    • setX

      public void setX(int x)
      Mappings:
      Namespace Name Mixin selector
      official a Lenm;a(I)V
      intermediary method_35778 Lnet/minecraft/class_768;method_35778(I)V
      named setX Lnet/minecraft/client/util/math/Rect2i;setX(I)V
    • setY

      public void setY(int y)
      Mappings:
      Namespace Name Mixin selector
      official b Lenm;b(I)V
      intermediary method_35781 Lnet/minecraft/class_768;method_35781(I)V
      named setY Lnet/minecraft/client/util/math/Rect2i;setY(I)V
    • getWidth

      public int getWidth()
      Mappings:
      Namespace Name Mixin selector
      official c Lenm;c()I
      intermediary method_3319 Lnet/minecraft/class_768;method_3319()I
      named getWidth Lnet/minecraft/client/util/math/Rect2i;getWidth()I
    • getHeight

      public int getHeight()
      Mappings:
      Namespace Name Mixin selector
      official d Lenm;d()I
      intermediary method_3320 Lnet/minecraft/class_768;method_3320()I
      named getHeight Lnet/minecraft/client/util/math/Rect2i;getHeight()I
    • setWidth

      public void setWidth(int width)
      Mappings:
      Namespace Name Mixin selector
      official c Lenm;c(I)V
      intermediary method_35782 Lnet/minecraft/class_768;method_35782(I)V
      named setWidth Lnet/minecraft/client/util/math/Rect2i;setWidth(I)V
    • setHeight

      public void setHeight(int height)
      Mappings:
      Namespace Name Mixin selector
      official d Lenm;d(I)V
      intermediary method_35783 Lnet/minecraft/class_768;method_35783(I)V
      named setHeight Lnet/minecraft/client/util/math/Rect2i;setHeight(I)V
    • setStartPos

      public void setStartPos(int x, int y)
      Mappings:
      Namespace Name Mixin selector
      official a Lenm;a(II)V
      intermediary method_35779 Lnet/minecraft/class_768;method_35779(II)V
      named setStartPos Lnet/minecraft/client/util/math/Rect2i;setStartPos(II)V
    • contains

      public boolean contains(int x, int y)
      Mappings:
      Namespace Name Mixin selector
      official b Lenm;b(II)Z
      intermediary method_3318 Lnet/minecraft/class_768;method_3318(II)Z
      named contains Lnet/minecraft/client/util/math/Rect2i;contains(II)Z