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