Class BlockBox

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

public class BlockBox
extends Object
Mappings:
Namespace Name
official cwn
intermediary net/minecraft/class_3341
named net/minecraft/util/math/BlockBox
  • Field Details

    • minX

      public int minX
      Mappings:
      Namespace Name Mixin selector
      official a Lcwn;a:I
      intermediary field_14381 Lnet/minecraft/class_3341;field_14381:I
      named minX Lnet/minecraft/util/math/BlockBox;minX:I
    • minY

      public int minY
      Mappings:
      Namespace Name Mixin selector
      official b Lcwn;b:I
      intermediary field_14380 Lnet/minecraft/class_3341;field_14380:I
      named minY Lnet/minecraft/util/math/BlockBox;minY:I
    • minZ

      public int minZ
      Mappings:
      Namespace Name Mixin selector
      official c Lcwn;c:I
      intermediary field_14379 Lnet/minecraft/class_3341;field_14379:I
      named minZ Lnet/minecraft/util/math/BlockBox;minZ:I
    • maxX

      public int maxX
      Mappings:
      Namespace Name Mixin selector
      official d Lcwn;d:I
      intermediary field_14378 Lnet/minecraft/class_3341;field_14378:I
      named maxX Lnet/minecraft/util/math/BlockBox;maxX:I
    • maxY

      public int maxY
      Mappings:
      Namespace Name Mixin selector
      official e Lcwn;e:I
      intermediary field_14377 Lnet/minecraft/class_3341;field_14377:I
      named maxY Lnet/minecraft/util/math/BlockBox;maxY:I
    • maxZ

      public int maxZ
      Mappings:
      Namespace Name Mixin selector
      official f Lcwn;f:I
      intermediary field_14376 Lnet/minecraft/class_3341;field_14376:I
      named maxZ Lnet/minecraft/util/math/BlockBox;maxZ:I
  • Constructor Details

    • BlockBox

      public BlockBox()
    • BlockBox

      public BlockBox​(int[] data)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcwn;<init>([I)V
      intermediary <init> Lnet/minecraft/class_3341;<init>([I)V
      named <init> Lnet/minecraft/util/math/BlockBox;<init>([I)V
    • BlockBox

      public BlockBox​(int minX, int minY, int minZ, int maxX, int maxY, int maxZ)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcwn;<init>(IIIIII)V
      intermediary <init> Lnet/minecraft/class_3341;<init>(IIIIII)V
      named <init> Lnet/minecraft/util/math/BlockBox;<init>(IIIIII)V
    • BlockBox

      public BlockBox​(Vec3i v1, Vec3i v2)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcwn;<init>(Lgs;Lgs;)V
      intermediary <init> Lnet/minecraft/class_3341;<init>(Lnet/minecraft/class_2382;Lnet/minecraft/class_2382;)V
      named <init> Lnet/minecraft/util/math/BlockBox;<init>(Lnet/minecraft/util/math/Vec3i;Lnet/minecraft/util/math/Vec3i;)V
  • Method Details

    • empty

      public static BlockBox empty()
      Mappings:
      Namespace Name Mixin selector
      official a Lcwn;a()Lcwn;
      intermediary method_14665 Lnet/minecraft/class_3341;method_14665()Lnet/minecraft/class_3341;
      named empty Lnet/minecraft/util/math/BlockBox;empty()Lnet/minecraft/util/math/BlockBox;
    • infinite

      public static BlockBox infinite()
      Mappings:
      Namespace Name Mixin selector
      official b Lcwn;b()Lcwn;
      intermediary method_27234 Lnet/minecraft/class_3341;method_27234()Lnet/minecraft/class_3341;
      named infinite Lnet/minecraft/util/math/BlockBox;infinite()Lnet/minecraft/util/math/BlockBox;
    • rotated

      public static BlockBox rotated​(int x, int y, int z, int offsetX, int offsetY, int offsetZ, int sizeX, int sizeY, int sizeZ, Direction facing)
      Mappings:
      Namespace Name Mixin selector
      official a Lcwn;a(IIIIIIIIILgc;)Lcwn;
      intermediary method_14667 Lnet/minecraft/class_3341;method_14667(IIIIIIIIILnet/minecraft/class_2350;)Lnet/minecraft/class_3341;
      named rotated Lnet/minecraft/util/math/BlockBox;rotated(IIIIIIIIILnet/minecraft/util/math/Direction;)Lnet/minecraft/util/math/BlockBox;
    • create

      public static BlockBox create​(int x1, int y1, int z1, int x2, int y2, int z2)
      Mappings:
      Namespace Name Mixin selector
      official a Lcwn;a(IIIIII)Lcwn;
      intermediary method_14666 Lnet/minecraft/class_3341;method_14666(IIIIII)Lnet/minecraft/class_3341;
      named create Lnet/minecraft/util/math/BlockBox;create(IIIIII)Lnet/minecraft/util/math/BlockBox;
    • intersects

      public boolean intersects​(BlockBox other)
      Mappings:
      Namespace Name Mixin selector
      official b Lcwn;b(Lcwn;)Z
      intermediary method_14657 Lnet/minecraft/class_3341;method_14657(Lnet/minecraft/class_3341;)Z
      named intersects Lnet/minecraft/util/math/BlockBox;intersects(Lnet/minecraft/util/math/BlockBox;)Z
    • intersectsXZ

      public boolean intersectsXZ​(int minX, int minZ, int maxX, int maxZ)
      Mappings:
      Namespace Name Mixin selector
      official a Lcwn;a(IIII)Z
      intermediary method_14669 Lnet/minecraft/class_3341;method_14669(IIII)Z
      named intersectsXZ Lnet/minecraft/util/math/BlockBox;intersectsXZ(IIII)Z
    • encompass

      public void encompass​(BlockBox region)
      Mappings:
      Namespace Name Mixin selector
      official c Lcwn;c(Lcwn;)V
      intermediary method_14668 Lnet/minecraft/class_3341;method_14668(Lnet/minecraft/class_3341;)V
      named encompass Lnet/minecraft/util/math/BlockBox;encompass(Lnet/minecraft/util/math/BlockBox;)V
    • move

      public void move​(int dx, int dy, int dz)
      Mappings:
      Namespace Name Mixin selector
      official a Lcwn;a(III)V
      intermediary method_14661 Lnet/minecraft/class_3341;method_14661(III)V
      named move Lnet/minecraft/util/math/BlockBox;move(III)V
    • offset

      public BlockBox offset​(int x, int y, int z)
      Mappings:
      Namespace Name Mixin selector
      official b Lcwn;b(III)Lcwn;
      intermediary method_19311 Lnet/minecraft/class_3341;method_19311(III)Lnet/minecraft/class_3341;
      named offset Lnet/minecraft/util/math/BlockBox;offset(III)Lnet/minecraft/util/math/BlockBox;
    • move

      public void move​(Vec3i vec)
      Mappings:
      Namespace Name Mixin selector
      official a Lcwn;a(Lgs;)V
      intermediary method_29299 Lnet/minecraft/class_3341;method_29299(Lnet/minecraft/class_2382;)V
      named move Lnet/minecraft/util/math/BlockBox;move(Lnet/minecraft/util/math/Vec3i;)V
    • contains

      public boolean contains​(Vec3i vec)
      Mappings:
      Namespace Name Mixin selector
      official b Lcwn;b(Lgs;)Z
      intermediary method_14662 Lnet/minecraft/class_3341;method_14662(Lnet/minecraft/class_2382;)Z
      named contains Lnet/minecraft/util/math/BlockBox;contains(Lnet/minecraft/util/math/Vec3i;)Z
    • getDimensions

      public Vec3i getDimensions()
      Mappings:
      Namespace Name Mixin selector
      official c Lcwn;c()Lgs;
      intermediary method_14659 Lnet/minecraft/class_3341;method_14659()Lnet/minecraft/class_2382;
      named getDimensions Lnet/minecraft/util/math/BlockBox;getDimensions()Lnet/minecraft/util/math/Vec3i;
    • getBlockCountX

      public int getBlockCountX()
      Mappings:
      Namespace Name Mixin selector
      official d Lcwn;d()I
      intermediary method_14660 Lnet/minecraft/class_3341;method_14660()I
      named getBlockCountX Lnet/minecraft/util/math/BlockBox;getBlockCountX()I
    • getBlockCountY

      public int getBlockCountY()
      Mappings:
      Namespace Name Mixin selector
      official e Lcwn;e()I
      intermediary method_14663 Lnet/minecraft/class_3341;method_14663()I
      named getBlockCountY Lnet/minecraft/util/math/BlockBox;getBlockCountY()I
    • getBlockCountZ

      public int getBlockCountZ()
      Mappings:
      Namespace Name Mixin selector
      official f Lcwn;f()I
      intermediary method_14664 Lnet/minecraft/class_3341;method_14664()I
      named getBlockCountZ Lnet/minecraft/util/math/BlockBox;getBlockCountZ()I
    • getCenter

      public Vec3i getCenter()
      Implementation Note:
      Biased toward the minimum bound corner of the box.
      Mappings:
      Namespace Name Mixin selector
      official g Lcwn;g()Lgs;
      intermediary method_22874 Lnet/minecraft/class_3341;method_22874()Lnet/minecraft/class_2382;
      named getCenter Lnet/minecraft/util/math/BlockBox;getCenter()Lnet/minecraft/util/math/Vec3i;
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Mappings:
      Namespace Name Mixin selector
      official toString Lcwn;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_3341;toString()Ljava/lang/String;
      named toString Lnet/minecraft/util/math/BlockBox;toString()Ljava/lang/String;
    • toNbt

      public IntArrayTag toNbt()
      Mappings:
      Namespace Name Mixin selector
      official h Lcwn;h()Lmu;
      intermediary method_14658 Lnet/minecraft/class_3341;method_14658()Lnet/minecraft/class_2495;
      named toNbt Lnet/minecraft/util/math/BlockBox;toNbt()Lnet/minecraft/nbt/IntArrayTag;