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>blocksBetweenOnAxis(net.minecraft.core.BlockPos p1, net.minecraft.core.BlockPos p2, net.minecraft.core.Direction.Axis axis) static Set<net.minecraft.core.BlockPos>blocksIn(net.minecraft.world.level.levelgen.structure.BoundingBox cube) static Set<net.minecraft.core.BlockPos>blocksIn(net.minecraft.world.level.levelgen.structure.BoundingBox cube, Predicate<net.minecraft.core.BlockPos> inclusion) 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 Set<net.minecraft.core.BlockPos>getBoundingBoxFrame(net.minecraft.world.level.levelgen.structure.BoundingBox box) static Set<net.minecraft.core.BlockPos>getEdge(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 net.minecraft.world.level.levelgen.structure.BoundingBoxgetSlice(net.minecraft.core.BlockPos center, int halfSize, int offset, net.minecraft.core.Direction.Axis axis) static Set<net.minecraft.core.BlockPos>getSliceBlocks(net.minecraft.core.BlockPos center, int halfSize, int offset, net.minecraft.core.Direction.Axis axis, Predicate<net.minecraft.core.BlockPos> include) 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) -
getBoundingBoxFrame
public static Set<net.minecraft.core.BlockPos> getBoundingBoxFrame(net.minecraft.world.level.levelgen.structure.BoundingBox box) -
getEdge
public static Set<net.minecraft.core.BlockPos> getEdge(net.minecraft.core.BlockPos a, net.minecraft.core.BlockPos b) -
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) -
blocksIn
public static Set<net.minecraft.core.BlockPos> blocksIn(net.minecraft.world.level.levelgen.structure.BoundingBox cube) -
blocksIn
-
blocksOnAxis
public static int blocksOnAxis(net.minecraft.world.level.levelgen.structure.BoundingBox box, net.minecraft.core.Direction.Axis axis) -
getSlice
public static net.minecraft.world.level.levelgen.structure.BoundingBox getSlice(net.minecraft.core.BlockPos center, int halfSize, int offset, net.minecraft.core.Direction.Axis axis) -
getSliceBlocks
-