Class PositionUtil

java.lang.Object
net.notcoded.codelib.util.pos.PositionUtil

public class PositionUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isBetween(net.minecraft.core.BlockPos corner1, net.minecraft.core.BlockPos corner2, net.minecraft.core.BlockPos between)
    Checks if the 2 block positions are in between one block position.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PositionUtil

      public PositionUtil()
  • Method Details

    • isBetween

      public static boolean isBetween(net.minecraft.core.BlockPos corner1, net.minecraft.core.BlockPos corner2, net.minecraft.core.BlockPos between)
      Checks if the 2 block positions are in between one block position.
      Parameters:
      corner1 - Corner 1.
      corner2 - Corner 2.
      between - Position that is in between.
      Returns:
      If the block position is in between the 2 corners.