Package net.notcoded.codelib.util.pos
Class PositionUtil
java.lang.Object
net.notcoded.codelib.util.pos.PositionUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisBetween(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.
-
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.
-