Package net.xun.lib.common.api.util
Class BlockPosUtils
java.lang.Object
net.xun.lib.common.api.util.BlockPosUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<net.minecraft.core.BlockPos> getDisc(net.minecraft.core.BlockPos center, int radius) static List<net.minecraft.core.BlockPos> getHollowCube(net.minecraft.core.BlockPos center, int radius) static List<net.minecraft.core.BlockPos> getSphere(net.minecraft.core.BlockPos center, int radius) static List<net.minecraft.core.BlockPos> getSquare(net.minecraft.core.BlockPos center, int radius) static booleanisWithinCube(net.minecraft.core.BlockPos pos, net.minecraft.core.BlockPos center, int radius) static booleanisWithinSphere(net.minecraft.core.BlockPos a, net.minecraft.core.BlockPos b, double radius) static net.minecraft.core.BlockPosmove(net.minecraft.core.BlockPos pos, net.minecraft.core.Direction dir, int steps)
-
Constructor Details
-
BlockPosUtils
public BlockPosUtils()
-
-
Method Details
-
getDisc
public static List<net.minecraft.core.BlockPos> getDisc(net.minecraft.core.BlockPos center, int radius) -
getSquare
public static List<net.minecraft.core.BlockPos> getSquare(net.minecraft.core.BlockPos center, int radius) -
getSphere
public static List<net.minecraft.core.BlockPos> getSphere(net.minecraft.core.BlockPos center, int radius) -
getHollowCube
public static List<net.minecraft.core.BlockPos> getHollowCube(net.minecraft.core.BlockPos center, int radius) -
isWithinSphere
public static boolean isWithinSphere(net.minecraft.core.BlockPos a, net.minecraft.core.BlockPos b, double radius) -
isWithinCube
public static boolean isWithinCube(net.minecraft.core.BlockPos pos, net.minecraft.core.BlockPos center, int radius) -
move
public static net.minecraft.core.BlockPos move(net.minecraft.core.BlockPos pos, net.minecraft.core.Direction dir, int steps)
-