Package net.minecraft.util.math
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description boolean
contains(Vec3i vec)
static BlockBox
create(int x1, int y1, int z1, int x2, int y2, int z2)
static BlockBox
empty()
void
encompass(BlockBox region)
int
getBlockCountX()
int
getBlockCountY()
int
getBlockCountZ()
Vec3i
getCenter()
Vec3i
getDimensions()
static BlockBox
infinite()
boolean
intersects(BlockBox other)
boolean
intersectsXZ(int minX, int minZ, int maxX, int maxZ)
void
move(int dx, int dy, int dz)
void
move(Vec3i vec)
BlockBox
offset(int x, int y, int z)
static BlockBox
rotated(int x, int y, int z, int offsetX, int offsetY, int offsetZ, int sizeX, int sizeY, int sizeZ, Direction facing)
IntArrayTag
toNbt()
String
toString()
-
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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
-
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;
-