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

      private SectionPos(int x, int y, int z)
  • Method Details

    • of

      public static SectionPos of(int x, int y, int z)
    • of

      public static SectionPos of(BlockPos pos)
    • of

      public static SectionPos of(ChunkPos pos, int sectionY)
    • of

      public static SectionPos of(EntityAccess entity)
    • of

      public static SectionPos of(Position pos)
    • of

      public static SectionPos of(long sectionNode)
    • bottomOf

      public static SectionPos bottomOf(ChunkAccess chunk)
    • offset

      public static long offset(long sectionNode, Direction offset)
    • offset

      public static long offset(long sectionNode, int stepX, int stepY, int stepZ)
    • 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 blockCoord)
    • sectionRelativePos

      public static short sectionRelativePos(BlockPos pos)
    • sectionRelativeX

      public static int sectionRelativeX(short relative)
    • sectionRelativeY

      public static int sectionRelativeY(short relative)
    • sectionRelativeZ

      public static int sectionRelativeZ(short relative)
    • relativeToBlockX

      public int relativeToBlockX(short relative)
    • relativeToBlockY

      public int relativeToBlockY(short relative)
    • relativeToBlockZ

      public int relativeToBlockZ(short relative)
    • relativeToBlockPos

      public BlockPos relativeToBlockPos(short relative)
    • sectionToBlockCoord

      public static int sectionToBlockCoord(int sectionCoord)
    • sectionToBlockCoord

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

      public static int x(long sectionNode)
    • y

      public static int y(long sectionNode)
    • z

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

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

      public static long getZeroNode(long sectionNode)
    • sectionToChunk

      public static long sectionToChunk(long sectionNode)
    • origin

      public BlockPos origin()
    • center

      public BlockPos center()
    • chunk

      public ChunkPos chunk()
    • asLong

      public static long asLong(BlockPos pos)
    • asLong

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

      public long asLong()
    • offset

      public SectionPos offset(int x, int y, int z)
      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 center, int radius, int minSection, int maxSection)
    • betweenClosedStream

      public static Stream<SectionPos> betweenClosedStream(int minX, int minY, int minZ, int maxX, int maxY, int maxZ)
    • aroundAndAtBlockPos

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

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

      public static void aroundAndAtBlockPos(int blockX, int blockY, int blockZ, it.unimi.dsi.fastutil.longs.LongConsumer sectionConsumer)