Class SectionPos

java.lang.Object
net.minecraft.core.Vec3i
net.minecraft.core.SectionPos
All Implemented Interfaces:
Comparable<Vec3i>

public class SectionPos extends Vec3i
  • Field Details

  • Constructor Details

    • SectionPos

      SectionPos(int pX, int pY, int pZ)
  • Method Details

    • of

      public static SectionPos of(int pChunkX, int pChunkY, int pChunkZ)
    • of

      public static SectionPos of(BlockPos pPos)
    • of

      public static SectionPos of(ChunkPos pChunkPos, int pY)
    • of

      public static SectionPos of(EntityAccess pEntity)
    • of

      public static SectionPos of(Position pPosition)
    • of

      public static SectionPos of(long pPacked)
    • bottomOf

      public static SectionPos bottomOf(ChunkAccess pChunk)
    • offset

      public static long offset(long pPacked, Direction pDirection)
    • offset

      public static long offset(long pPacked, int pDx, int pDy, int pDz)
    • posToSectionCoord

      public static int posToSectionCoord(double pPos)
    • blockToSectionCoord

      public static int blockToSectionCoord(int pBlockCoord)
    • blockToSectionCoord

      public static int blockToSectionCoord(double pCoord)
    • sectionRelative

      public static int sectionRelative(int pRel)
    • sectionRelativePos

      public static short sectionRelativePos(BlockPos pPos)
    • sectionRelativeX

      public static int sectionRelativeX(short pX)
    • sectionRelativeY

      public static int sectionRelativeY(short pY)
    • sectionRelativeZ

      public static int sectionRelativeZ(short pZ)
    • relativeToBlockX

      public int relativeToBlockX(short pX)
    • relativeToBlockY

      public int relativeToBlockY(short pY)
    • relativeToBlockZ

      public int relativeToBlockZ(short pZ)
    • relativeToBlockPos

      public BlockPos relativeToBlockPos(short pPos)
    • sectionToBlockCoord

      public static int sectionToBlockCoord(int pSectionCoord)
    • sectionToBlockCoord

      public static int sectionToBlockCoord(int pPos, int pOffset)
    • x

      public static int x(long pPacked)
    • y

      public static int y(long pPacked)
    • z

      public static int z(long pPacked)
    • x

      public int x()
    • y

      public int y()
    • z

      public int z()
    • minBlockX

      public int minBlockX()
    • minBlockY

      public int minBlockY()
    • minBlockZ

      public int minBlockZ()
    • maxBlockX

      public int maxBlockX()
    • maxBlockY

      public int maxBlockY()
    • maxBlockZ

      public int maxBlockZ()
    • blockToSection

      public static long blockToSection(long pLevelPos)
    • getZeroNode

      public static long getZeroNode(int pX, int pZ)
    • getZeroNode

      public static long getZeroNode(long pPos)
    • origin

      public BlockPos origin()
    • center

      public BlockPos center()
    • chunk

      public ChunkPos chunk()
    • asLong

      public static long asLong(BlockPos pBlockPos)
    • asLong

      public static long asLong(int pX, int pY, int pZ)
    • asLong

      public long asLong()
    • offset

      public SectionPos offset(int pDx, int pDy, int pDz)
      Overrides:
      offset in class Vec3i
    • blocksInside

      public Stream<BlockPos> blocksInside()
    • cube

      public static Stream<SectionPos> cube(SectionPos pCenter, int pRadius)
    • aroundChunk

      public static Stream<SectionPos> aroundChunk(ChunkPos pChunkPos, int pX, int pY, int pZ)
    • betweenClosedStream

      public static Stream<SectionPos> betweenClosedStream(int pX1, int pY1, int pZ1, int pX2, int pY2, int pZ2)
    • aroundAndAtBlockPos

      public static void aroundAndAtBlockPos(BlockPos p_194643_, it.unimi.dsi.fastutil.longs.LongConsumer p_194644_)
    • aroundAndAtBlockPos

      public static void aroundAndAtBlockPos(long p_194640_, it.unimi.dsi.fastutil.longs.LongConsumer p_194641_)
    • aroundAndAtBlockPos

      public static void aroundAndAtBlockPos(int p_194635_, int p_194636_, int p_194637_, it.unimi.dsi.fastutil.longs.LongConsumer p_194638_)