Class BlockPos

java.lang.Object
net.minecraft.core.Vec3i
net.minecraft.core.BlockPos
All Implemented Interfaces:
Comparable<Vec3i>
Direct Known Subclasses:
BlockPos.MutableBlockPos

@Immutable public class BlockPos extends Vec3i
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<BlockPos> CODEC
    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • ZERO

      public static final BlockPos ZERO
    • PACKED_X_LENGTH

      private static final int PACKED_X_LENGTH
    • PACKED_Z_LENGTH

      private static final int PACKED_Z_LENGTH
    • PACKED_Y_LENGTH

      public static final int PACKED_Y_LENGTH
    • PACKED_X_MASK

      private static final long PACKED_X_MASK
    • PACKED_Y_MASK

      private static final long PACKED_Y_MASK
    • PACKED_Z_MASK

      private static final long PACKED_Z_MASK
    • Y_OFFSET

      private static final int Y_OFFSET
      See Also:
    • Z_OFFSET

      private static final int Z_OFFSET
    • X_OFFSET

      private static final int X_OFFSET
  • Constructor Details

    • BlockPos

      public BlockPos(int p_121869_, int p_121870_, int p_121871_)
    • BlockPos

      public BlockPos(double p_121865_, double p_121866_, double p_121867_)
    • BlockPos

      public BlockPos(Vec3 p_121873_)
    • BlockPos

      public BlockPos(Position p_121875_)
    • BlockPos

      public BlockPos(Vec3i p_121877_)
  • Method Details