public class BitLocation extends java.lang.Object implements IBitLocation
Modifier and Type | Field and Description |
---|---|
int |
bitX |
int |
bitY |
int |
bitZ |
net.minecraft.util.math.BlockPos |
blockPos |
Constructor and Description |
---|
BitLocation(net.minecraft.util.math.BlockPos pos,
int x,
int y,
int z) |
BitLocation(net.minecraft.util.math.RayTraceResult mop,
boolean absHit,
BitOperation type) |
Modifier and Type | Method and Description |
---|---|
int |
getBitX()
get Bit X coordinate.
|
int |
getBitY()
get Bit Y coordinate.
|
int |
getBitZ()
get Bit Z coordinate.
|
net.minecraft.util.math.BlockPos |
getBlockPos()
Get block position that the bit is inside.
|
static BitLocation |
max(BitLocation from,
BitLocation to) |
static BitLocation |
min(BitLocation from,
BitLocation to) |
int |
snapToValid(int x) |
@Nonnull public final net.minecraft.util.math.BlockPos blockPos
public final int bitX
public final int bitY
public final int bitZ
public BitLocation(net.minecraft.util.math.RayTraceResult mop, boolean absHit, BitOperation type)
public BitLocation(net.minecraft.util.math.BlockPos pos, int x, int y, int z)
public net.minecraft.util.math.BlockPos getBlockPos()
IBitLocation
getBlockPos
in interface IBitLocation
public int getBitX()
IBitLocation
getBitX
in interface IBitLocation
public int getBitY()
IBitLocation
getBitY
in interface IBitLocation
public int getBitZ()
IBitLocation
getBitZ
in interface IBitLocation
public int snapToValid(int x)
public static BitLocation min(BitLocation from, BitLocation to)
public static BitLocation max(BitLocation from, BitLocation to)