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 x, int y, int z)
  • Method Details

    • of

      public static SectionPos of(int chunkX, int chunkY, int chunkZ)
    • of

      public static SectionPos of(BlockPos pos)
    • of

      public static SectionPos of(ChunkPos chunkPos, int y)
    • of

      public static SectionPos of(EntityAccess entity)
    • of

      public static SectionPos of(Position position)
    • of

      public static SectionPos of(long packed)
    • bottomOf

      public static SectionPos bottomOf(ChunkAccess chunk)
    • offset

      public static long offset(long packed, Direction direction)
    • offset

      public static long offset(long packed, int dx, int dy, int dz)
    • posToSectionCoord

      public static int posToSectionCoord(double pos)
    • blockToSectionCoord

      public static int blockToSectionCoord(int blockCoord)
    • blockToSectionCoord

      public static int blockToSectionCoord(double coord)
    • sectionRelative

      public static int sectionRelative(int rel)
    • sectionRelativePos

      public static short sectionRelativePos(BlockPos pos)
    • sectionRelativeX

      public static int sectionRelativeX(short x)
    • sectionRelativeY

      public static int sectionRelativeY(short y)
    • sectionRelativeZ

      public static int sectionRelativeZ(short z)
    • relativeToBlockX

      public int relativeToBlockX(short x)
    • relativeToBlockY

      public int relativeToBlockY(short y)
    • relativeToBlockZ

      public int relativeToBlockZ(short z)
    • relativeToBlockPos

      public BlockPos relativeToBlockPos(short pos)
    • sectionToBlockCoord

      public static int sectionToBlockCoord(int sectionCoord)
    • sectionToBlockCoord

      public static int sectionToBlockCoord(int pos, int offset)
    • x

      public static int x(long packed)
    • y

      public static int y(long packed)
    • z

      public static int z(long packed)
    • 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 levelPos)
    • getZeroNode

      public static long getZeroNode(int x, int z)
    • getZeroNode

      public static long getZeroNode(long pos)
    • origin

      public BlockPos origin()
    • center

      public BlockPos center()
    • chunk

      public ChunkPos chunk()
    • asLong

      public static long asLong(BlockPos blockPos)
    • asLong

      public static long asLong(int x, int y, int z)
    • asLong

      public long asLong()
    • offset

      public SectionPos offset(int dx, int dy, int dz)
      Overrides:
      offset in class Vec3i
    • blocksInside

      public Stream<BlockPos> blocksInside()
    • cube

      public static Stream<SectionPos> cube(SectionPos center, int radius)
    • aroundChunk

      public static Stream<SectionPos> aroundChunk(ChunkPos chunkPos, int x, int y, int z)
    • betweenClosedStream

      public static Stream<SectionPos> betweenClosedStream(int x1, int y1, int z1, int x2, int y2, int z2)
    • aroundAndAtBlockPos

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

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

      public static void aroundAndAtBlockPos(int x, int y, int z, it.unimi.dsi.fastutil.longs.LongConsumer consumer)