Class BlockFace

java.lang.Object
com.petrolpark.util.Pair<net.minecraft.core.BlockPos,net.minecraft.core.Direction>
com.petrolpark.util.BlockFace

public class BlockFace extends Pair<net.minecraft.core.BlockPos,net.minecraft.core.Direction>
  • Constructor Details

    • BlockFace

      public BlockFace(net.minecraft.core.BlockPos first, net.minecraft.core.Direction second)
  • Method Details

    • of

      public static BlockFace of(net.minecraft.core.BlockPos pos, net.minecraft.core.Direction face)
    • getPos

      public net.minecraft.core.BlockPos getPos()
    • getFace

      public net.minecraft.core.Direction getFace()
    • getConnectedPos

      public net.minecraft.core.BlockPos getConnectedPos()
    • getOpposite

      public BlockFace getOpposite()
    • getCenter

      public net.minecraft.world.phys.Vec3 getCenter()