Class Box

java.lang.Object
net.minecraft.util.math.Box

public class Box extends Object
Mappings:
Namespace Name
official bhb
intermediary net/minecraft/class_231
named net/minecraft/util/math/Box
  • Field Details

    • minX

      public final double minX
      Mappings:
      Namespace Name Mixin selector
      official a Lbhb;a:D
      intermediary field_13256 Lnet/minecraft/class_231;field_13256:D
      named minX Lnet/minecraft/util/math/Box;minX:D
    • minY

      public final double minY
      Mappings:
      Namespace Name Mixin selector
      official b Lbhb;b:D
      intermediary field_13257 Lnet/minecraft/class_231;field_13257:D
      named minY Lnet/minecraft/util/math/Box;minY:D
    • minZ

      public final double minZ
      Mappings:
      Namespace Name Mixin selector
      official c Lbhb;c:D
      intermediary field_13258 Lnet/minecraft/class_231;field_13258:D
      named minZ Lnet/minecraft/util/math/Box;minZ:D
    • maxX

      public final double maxX
      Mappings:
      Namespace Name Mixin selector
      official d Lbhb;d:D
      intermediary field_13259 Lnet/minecraft/class_231;field_13259:D
      named maxX Lnet/minecraft/util/math/Box;maxX:D
    • maxY

      public final double maxY
      Mappings:
      Namespace Name Mixin selector
      official e Lbhb;e:D
      intermediary field_13260 Lnet/minecraft/class_231;field_13260:D
      named maxY Lnet/minecraft/util/math/Box;maxY:D
    • maxZ

      public final double maxZ
      Mappings:
      Namespace Name Mixin selector
      official f Lbhb;f:D
      intermediary field_13261 Lnet/minecraft/class_231;field_13261:D
      named maxZ Lnet/minecraft/util/math/Box;maxZ:D
  • Constructor Details

    • Box

      public Box(double minX, double minY, double minZ, double maxX, double maxY, double maxZ)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbhb;<init>(DDDDDD)V
      intermediary <init> Lnet/minecraft/class_231;<init>(DDDDDD)V
      named <init> Lnet/minecraft/util/math/Box;<init>(DDDDDD)V
    • Box

      public Box(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbhb;<init>(Let;)V
      intermediary <init> Lnet/minecraft/class_231;<init>(Lnet/minecraft/class_2552;)V
      named <init> Lnet/minecraft/util/math/Box;<init>(Lnet/minecraft/util/math/BlockPos;)V
    • Box

      public Box(BlockPos pos1, BlockPos pos2)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbhb;<init>(Let;Let;)V
      intermediary <init> Lnet/minecraft/class_231;<init>(Lnet/minecraft/class_2552;Lnet/minecraft/class_2552;)V
      named <init> Lnet/minecraft/util/math/Box;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)V
    • Box

      @Environment(CLIENT) public Box(Vec3d vec1, Vec3d vec2)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbhb;<init>(Lbhe;Lbhe;)V
      intermediary <init> Lnet/minecraft/class_231;<init>(Lnet/minecraft/class_236;Lnet/minecraft/class_236;)V
      named <init> Lnet/minecraft/util/math/Box;<init>(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)V
  • Method Details

    • withMaxY

      public Box withMaxY(double maxY)
      Mappings:
      Namespace Name Mixin selector
      official e Lbhb;e(D)Lbhb;
      intermediary method_12120 Lnet/minecraft/class_231;method_12120(D)Lnet/minecraft/class_231;
      named withMaxY Lnet/minecraft/util/math/Box;withMaxY(D)Lnet/minecraft/util/math/Box;
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Lbhb;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_231;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/util/math/Box;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Mappings:
      Namespace Name Mixin selector
      official hashCode Lbhb;hashCode()I
      intermediary hashCode Lnet/minecraft/class_231;hashCode()I
      named hashCode Lnet/minecraft/util/math/Box;hashCode()I
    • shrink

      public Box shrink(double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official a Lbhb;a(DDD)Lbhb;
      intermediary method_13831 Lnet/minecraft/class_231;method_13831(DDD)Lnet/minecraft/class_231;
      named shrink Lnet/minecraft/util/math/Box;shrink(DDD)Lnet/minecraft/util/math/Box;
    • stretch

      public Box stretch(double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official b Lbhb;b(DDD)Lbhb;
      intermediary method_580 Lnet/minecraft/class_231;method_580(DDD)Lnet/minecraft/class_231;
      named stretch Lnet/minecraft/util/math/Box;stretch(DDD)Lnet/minecraft/util/math/Box;
    • expand

      public Box expand(double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official c Lbhb;c(DDD)Lbhb;
      intermediary method_587 Lnet/minecraft/class_231;method_587(DDD)Lnet/minecraft/class_231;
      named expand Lnet/minecraft/util/math/Box;expand(DDD)Lnet/minecraft/util/math/Box;
    • expand

      public Box expand(double value)
      Mappings:
      Namespace Name Mixin selector
      official g Lbhb;g(D)Lbhb;
      intermediary method_12121 Lnet/minecraft/class_231;method_12121(D)Lnet/minecraft/class_231;
      named expand Lnet/minecraft/util/math/Box;expand(D)Lnet/minecraft/util/math/Box;
    • intersection

      public Box intersection(Box box)
      Mappings:
      Namespace Name Mixin selector
      official a Lbhb;a(Lbhb;)Lbhb;
      intermediary method_13832 Lnet/minecraft/class_231;method_13832(Lnet/minecraft/class_231;)Lnet/minecraft/class_231;
      named intersection Lnet/minecraft/util/math/Box;intersection(Lnet/minecraft/util/math/Box;)Lnet/minecraft/util/math/Box;
    • union

      public Box union(Box box)
      Mappings:
      Namespace Name Mixin selector
      official b Lbhb;b(Lbhb;)Lbhb;
      intermediary method_5556 Lnet/minecraft/class_231;method_5556(Lnet/minecraft/class_231;)Lnet/minecraft/class_231;
      named union Lnet/minecraft/util/math/Box;union(Lnet/minecraft/util/math/Box;)Lnet/minecraft/util/math/Box;
    • offset

      public Box offset(double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official d Lbhb;d(DDD)Lbhb;
      intermediary method_596 Lnet/minecraft/class_231;method_596(DDD)Lnet/minecraft/class_231;
      named offset Lnet/minecraft/util/math/Box;offset(DDD)Lnet/minecraft/util/math/Box;
    • offset

      public Box offset(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lbhb;a(Let;)Lbhb;
      intermediary method_12113 Lnet/minecraft/class_231;method_12113(Lnet/minecraft/class_2552;)Lnet/minecraft/class_231;
      named offset Lnet/minecraft/util/math/Box;offset(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
    • offset

      public Box offset(Vec3d ved)
      Mappings:
      Namespace Name Mixin selector
      official a Lbhb;a(Lbhe;)Lbhb;
      intermediary method_13833 Lnet/minecraft/class_231;method_13833(Lnet/minecraft/class_236;)Lnet/minecraft/class_231;
      named offset Lnet/minecraft/util/math/Box;offset(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Box;
    • method_583

      public double method_583(Box box, double double2)
      Mappings:
      Namespace Name Mixin selector
      official a Lbhb;a(Lbhb;D)D
      intermediary method_583 Lnet/minecraft/class_231;method_583(Lnet/minecraft/class_231;D)D
      named method_583 Lnet/minecraft/util/math/Box;method_583(Lnet/minecraft/util/math/Box;D)D
    • method_589

      public double method_589(Box box, double double2)
      Mappings:
      Namespace Name Mixin selector
      official b Lbhb;b(Lbhb;D)D
      intermediary method_589 Lnet/minecraft/class_231;method_589(Lnet/minecraft/class_231;D)D
      named method_589 Lnet/minecraft/util/math/Box;method_589(Lnet/minecraft/util/math/Box;D)D
    • method_594

      public double method_594(Box box, double double2)
      Mappings:
      Namespace Name Mixin selector
      official c Lbhb;c(Lbhb;D)D
      intermediary method_594 Lnet/minecraft/class_231;method_594(Lnet/minecraft/class_231;D)D
      named method_594 Lnet/minecraft/util/math/Box;method_594(Lnet/minecraft/util/math/Box;D)D
    • intersects

      public boolean intersects(Box box)
      Mappings:
      Namespace Name Mixin selector
      official c Lbhb;c(Lbhb;)Z
      intermediary method_12115 Lnet/minecraft/class_231;method_12115(Lnet/minecraft/class_231;)Z
      named intersects Lnet/minecraft/util/math/Box;intersects(Lnet/minecraft/util/math/Box;)Z
    • intersects

      public boolean intersects(double minX, double minY, double minZ, double maxX, double maxY, double maxZ)
      Mappings:
      Namespace Name Mixin selector
      official a Lbhb;a(DDDDDD)Z
      intermediary method_12110 Lnet/minecraft/class_231;method_12110(DDDDDD)Z
      named intersects Lnet/minecraft/util/math/Box;intersects(DDDDDD)Z
    • intersects

      @Environment(CLIENT) public boolean intersects(Vec3d vec1, Vec3d vec2)
      Mappings:
      Namespace Name Mixin selector
      official a Lbhb;a(Lbhe;Lbhe;)Z
      intermediary method_13403 Lnet/minecraft/class_231;method_13403(Lnet/minecraft/class_236;Lnet/minecraft/class_236;)Z
      named intersects Lnet/minecraft/util/math/Box;intersects(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Z
    • contains

      public boolean contains(Vec3d vec)
      Mappings:
      Namespace Name Mixin selector
      official b Lbhb;b(Lbhe;)Z
      intermediary method_584 Lnet/minecraft/class_231;method_584(Lnet/minecraft/class_236;)Z
      named contains Lnet/minecraft/util/math/Box;contains(Lnet/minecraft/util/math/Vec3d;)Z
    • getAverage

      public double getAverage()
      Mappings:
      Namespace Name Mixin selector
      official a Lbhb;a()D
      intermediary method_586 Lnet/minecraft/class_231;method_586()D
      named getAverage Lnet/minecraft/util/math/Box;getAverage()D
    • contract

      public Box contract(double value)
      Mappings:
      Namespace Name Mixin selector
      official h Lbhb;h(D)Lbhb;
      intermediary method_12122 Lnet/minecraft/class_231;method_12122(D)Lnet/minecraft/class_231;
      named contract Lnet/minecraft/util/math/Box;contract(D)Lnet/minecraft/util/math/Box;
    • method_585

      @Nullable public BlockHitResult method_585(Vec3d vec1, Vec3d vec2)
      Mappings:
      Namespace Name Mixin selector
      official b Lbhb;b(Lbhe;Lbhe;)Lbhc;
      intermediary method_585 Lnet/minecraft/class_231;method_585(Lnet/minecraft/class_236;Lnet/minecraft/class_236;)Lnet/minecraft/class_234;
      named method_585 Lnet/minecraft/util/math/Box;method_585(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/hit/BlockHitResult;
    • method_12112

      boolean method_12112(Vec3d vec3d, @Nullable Vec3d vec3d2, Vec3d vec3d3)
      Mappings:
      Namespace Name Mixin selector
      official a Lbhb;a(Lbhe;Lbhe;Lbhe;)Z
      intermediary method_12112 Lnet/minecraft/class_231;method_12112(Lnet/minecraft/class_236;Lnet/minecraft/class_236;Lnet/minecraft/class_236;)Z
      named method_12112 Lnet/minecraft/util/math/Box;method_12112(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Z
    • method_12111

      @Nullable Vec3d method_12111(double double2, Vec3d vec3d, Vec3d vec3d2)
      Mappings:
      Namespace Name Mixin selector
      official a Lbhb;a(DLbhe;Lbhe;)Lbhe;
      intermediary method_12111 Lnet/minecraft/class_231;method_12111(DLnet/minecraft/class_236;Lnet/minecraft/class_236;)Lnet/minecraft/class_236;
      named method_12111 Lnet/minecraft/util/math/Box;method_12111(DLnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Vec3d;
    • method_12114

      @Nullable Vec3d method_12114(double double2, Vec3d vec3d, Vec3d vec3d2)
      Mappings:
      Namespace Name Mixin selector
      official b Lbhb;b(DLbhe;Lbhe;)Lbhe;
      intermediary method_12114 Lnet/minecraft/class_231;method_12114(DLnet/minecraft/class_236;Lnet/minecraft/class_236;)Lnet/minecraft/class_236;
      named method_12114 Lnet/minecraft/util/math/Box;method_12114(DLnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Vec3d;
    • method_12117

      @Nullable Vec3d method_12117(double double2, Vec3d vec3d, Vec3d vec3d2)
      Mappings:
      Namespace Name Mixin selector
      official c Lbhb;c(DLbhe;Lbhe;)Lbhe;
      intermediary method_12117 Lnet/minecraft/class_231;method_12117(DLnet/minecraft/class_236;Lnet/minecraft/class_236;)Lnet/minecraft/class_236;
      named method_12117 Lnet/minecraft/util/math/Box;method_12117(DLnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Vec3d;
    • intersectsYZ

      public boolean intersectsYZ(Vec3d vec)
      Mappings:
      Namespace Name Mixin selector
      official c Lbhb;c(Lbhe;)Z
      intermediary method_12116 Lnet/minecraft/class_231;method_12116(Lnet/minecraft/class_236;)Z
      named intersectsYZ Lnet/minecraft/util/math/Box;intersectsYZ(Lnet/minecraft/util/math/Vec3d;)Z
    • intersectsXZ

      public boolean intersectsXZ(Vec3d vec)
      Mappings:
      Namespace Name Mixin selector
      official d Lbhb;d(Lbhe;)Z
      intermediary method_12118 Lnet/minecraft/class_231;method_12118(Lnet/minecraft/class_236;)Z
      named intersectsXZ Lnet/minecraft/util/math/Box;intersectsXZ(Lnet/minecraft/util/math/Vec3d;)Z
    • intersectsXY

      public boolean intersectsXY(Vec3d vec)
      Mappings:
      Namespace Name Mixin selector
      official e Lbhb;e(Lbhe;)Z
      intermediary method_12119 Lnet/minecraft/class_231;method_12119(Lnet/minecraft/class_236;)Z
      named intersectsXY Lnet/minecraft/util/math/Box;intersectsXY(Lnet/minecraft/util/math/Vec3d;)Z
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Mappings:
      Namespace Name Mixin selector
      official toString Lbhb;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_231;toString()Ljava/lang/String;
      named toString Lnet/minecraft/util/math/Box;toString()Ljava/lang/String;
    • isInvalid

      @Environment(CLIENT) public boolean isInvalid()
      Mappings:
      Namespace Name Mixin selector
      official b Lbhb;b()Z
      intermediary method_9343 Lnet/minecraft/class_231;method_9343()Z
      named isInvalid Lnet/minecraft/util/math/Box;isInvalid()Z
    • getCenter

      @Environment(CLIENT) public Vec3d getCenter()
      Mappings:
      Namespace Name Mixin selector
      official c Lbhb;c()Lbhe;
      intermediary method_13404 Lnet/minecraft/class_231;method_13404()Lnet/minecraft/class_236;
      named getCenter Lnet/minecraft/util/math/Box;getCenter()Lnet/minecraft/util/math/Vec3d;