Package de.z0rdak.yawp.util
Class AreaUtil
java.lang.Object
de.z0rdak.yawp.util.AreaUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringblockPosStr(net.minecraft.core.BlockPos pos) static Set<net.minecraft.core.BlockPos> blocksBetween(net.minecraft.world.level.levelgen.structure.BoundingBox cube) static Set<net.minecraft.core.BlockPos> blocksBetweenOnAxis(net.minecraft.core.BlockPos p1, net.minecraft.core.BlockPos p2, net.minecraft.core.Direction.Axis axis) static intblocksOnAxis(net.minecraft.world.level.levelgen.structure.BoundingBox box, net.minecraft.core.Direction.Axis axis) static doubledistance(net.minecraft.core.BlockPos a, net.minecraft.core.BlockPos b) static intdistanceManhattan(net.minecraft.core.BlockPos a, net.minecraft.core.BlockPos b) static net.minecraft.core.BlockPosgetHigherPos(net.minecraft.core.BlockPos pos1, net.minecraft.core.BlockPos pos2) static net.minecraft.core.BlockPosgetLowerPos(net.minecraft.core.BlockPos pos1, net.minecraft.core.BlockPos pos2) static doublelength(net.minecraft.core.BlockPos a)
-
Method Details
-
distance
public static double distance(net.minecraft.core.BlockPos a, net.minecraft.core.BlockPos b) -
distanceManhattan
public static int distanceManhattan(net.minecraft.core.BlockPos a, net.minecraft.core.BlockPos b) -
length
public static double length(net.minecraft.core.BlockPos a) -
blockPosStr
-
getLowerPos
public static net.minecraft.core.BlockPos getLowerPos(net.minecraft.core.BlockPos pos1, net.minecraft.core.BlockPos pos2) -
getHigherPos
public static net.minecraft.core.BlockPos getHigherPos(net.minecraft.core.BlockPos pos1, net.minecraft.core.BlockPos pos2) -
blocksBetweenOnAxis
public static Set<net.minecraft.core.BlockPos> blocksBetweenOnAxis(net.minecraft.core.BlockPos p1, net.minecraft.core.BlockPos p2, net.minecraft.core.Direction.Axis axis) -
blocksBetween
public static Set<net.minecraft.core.BlockPos> blocksBetween(net.minecraft.world.level.levelgen.structure.BoundingBox cube) -
blocksOnAxis
public static int blocksOnAxis(net.minecraft.world.level.levelgen.structure.BoundingBox box, net.minecraft.core.Direction.Axis axis)
-