public final class VecHelper extends Object
Modifier and Type | Field and Description |
---|---|
static net.minecraft.util.Vec3 |
VEC3_ORIGIN |
Constructor and Description |
---|
VecHelper() |
Modifier and Type | Method and Description |
---|---|
static boolean |
inBounds(double x,
double y,
double z,
com.flowpowered.math.vector.Vector3i min,
com.flowpowered.math.vector.Vector3i max) |
static boolean |
inBounds(int x,
int y,
int z,
com.flowpowered.math.vector.Vector3i min,
com.flowpowered.math.vector.Vector3i max) |
static boolean |
inBounds(int x,
int y,
com.flowpowered.math.vector.Vector2i min,
com.flowpowered.math.vector.Vector2i max) |
static net.minecraft.util.BlockPos |
toBlockPos(com.flowpowered.math.vector.Vector3d vector) |
static net.minecraft.util.BlockPos |
toBlockPos(com.flowpowered.math.vector.Vector3i vector) |
static net.minecraft.world.ChunkCoordIntPair |
toChunkCoordIntPair(com.flowpowered.math.vector.Vector3i vector) |
static net.minecraft.util.Rotations |
toRotation(com.flowpowered.math.vector.Vector3d vector) |
static com.flowpowered.math.vector.Vector3i |
toVector(net.minecraft.util.BlockPos pos) |
static com.flowpowered.math.vector.Vector3i |
toVector(net.minecraft.world.ChunkCoordIntPair chunk) |
static com.flowpowered.math.vector.Vector3d |
toVector(net.minecraft.util.Rotations rotation) |
static com.flowpowered.math.vector.Vector3d |
toVector(net.minecraft.util.Vec3 vector) |
static com.flowpowered.math.vector.Vector3i |
toVector(net.minecraft.util.Vec3i vector) |
static net.minecraft.util.Vec3 |
toVector(com.flowpowered.math.vector.Vector3d vector) |
static net.minecraft.util.Vec3i |
toVector(com.flowpowered.math.vector.Vector3i vector) |
static com.flowpowered.math.vector.Vector3d |
toVector3d(net.minecraft.util.BlockPos pos) |
public static net.minecraft.util.BlockPos toBlockPos(com.flowpowered.math.vector.Vector3d vector)
public static net.minecraft.util.BlockPos toBlockPos(com.flowpowered.math.vector.Vector3i vector)
public static com.flowpowered.math.vector.Vector3i toVector(net.minecraft.util.BlockPos pos)
public static com.flowpowered.math.vector.Vector3d toVector3d(net.minecraft.util.BlockPos pos)
public static com.flowpowered.math.vector.Vector3d toVector(net.minecraft.util.Rotations rotation)
public static com.flowpowered.math.vector.Vector3i toVector(net.minecraft.util.Vec3i vector)
public static net.minecraft.util.Vec3i toVector(com.flowpowered.math.vector.Vector3i vector)
public static com.flowpowered.math.vector.Vector3i toVector(net.minecraft.world.ChunkCoordIntPair chunk)
public static net.minecraft.world.ChunkCoordIntPair toChunkCoordIntPair(com.flowpowered.math.vector.Vector3i vector)
public static com.flowpowered.math.vector.Vector3d toVector(net.minecraft.util.Vec3 vector)
public static net.minecraft.util.Vec3 toVector(com.flowpowered.math.vector.Vector3d vector)
public static net.minecraft.util.Rotations toRotation(com.flowpowered.math.vector.Vector3d vector)
public static boolean inBounds(int x, int y, com.flowpowered.math.vector.Vector2i min, com.flowpowered.math.vector.Vector2i max)
public static boolean inBounds(int x, int y, int z, com.flowpowered.math.vector.Vector3i min, com.flowpowered.math.vector.Vector3i max)
public static boolean inBounds(double x, double y, double z, com.flowpowered.math.vector.Vector3i min, com.flowpowered.math.vector.Vector3i max)