Class BlockPosUtils

java.lang.Object
net.xun.lib.common.api.util.BlockPosUtils

public class BlockPosUtils extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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 boolean
    isWithinCube(net.minecraft.core.BlockPos pos, net.minecraft.core.BlockPos center, int radius)
     
    static boolean
    isWithinSphere(net.minecraft.core.BlockPos a, net.minecraft.core.BlockPos b, double radius)
     
    static net.minecraft.core.BlockPos
    move(net.minecraft.core.BlockPos pos, net.minecraft.core.Direction dir, int steps)
     

    Methods inherited from class java.lang.Object

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