Class AreaUtil

java.lang.Object
de.z0rdak.yawp.util.AreaUtil

public final class AreaUtil extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    blockPosStr(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 int
    blocksOnAxis(net.minecraft.world.level.levelgen.structure.BoundingBox box, net.minecraft.core.Direction.Axis axis)
     
    static double
    distance(net.minecraft.core.BlockPos a, net.minecraft.core.BlockPos b)
     
    static int
    distanceManhattan(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.BlockPos
    getHigherPos(net.minecraft.core.BlockPos pos1, net.minecraft.core.BlockPos pos2)
     
    static net.minecraft.core.BlockPos
    getLowerPos(net.minecraft.core.BlockPos pos1, net.minecraft.core.BlockPos pos2)
     
    static net.minecraft.world.level.levelgen.structure.BoundingBox
    getSlice(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 double
    length(net.minecraft.core.BlockPos a)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static String blockPosStr(net.minecraft.core.BlockPos pos)
    • 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

      public static Set<net.minecraft.core.BlockPos> blocksIn(net.minecraft.world.level.levelgen.structure.BoundingBox cube, Predicate<net.minecraft.core.BlockPos> inclusion)
    • 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

      public 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)