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 p_123162_, int p_123163_, int p_123164_)
  • Method Details

    • of

      public static SectionPos of(int p_123174_, int p_123175_, int p_123176_)
    • of

      public static SectionPos of(BlockPos p_123200_)
    • of

      public static SectionPos of(ChunkPos p_123197_, int p_123198_)
    • of

      public static SectionPos of(Entity p_123195_)
    • of

      public static SectionPos of(long p_123185_)
    • bottomOf

      public static SectionPos bottomOf(ChunkAccess p_175563_)
    • offset

      public static long offset(long p_123192_, Direction p_123193_)
    • offset

      public static long offset(long p_123187_, int p_123188_, int p_123189_, int p_123190_)
    • posToSectionCoord

      public static int posToSectionCoord(double p_175553_)
    • blockToSectionCoord

      public static int blockToSectionCoord(int p_123172_)
    • sectionRelative

      public static int sectionRelative(int p_123208_)
    • sectionRelativePos

      public static short sectionRelativePos(BlockPos p_123219_)
    • sectionRelativeX

      public static int sectionRelativeX(short p_123205_)
    • sectionRelativeY

      public static int sectionRelativeY(short p_123221_)
    • sectionRelativeZ

      public static int sectionRelativeZ(short p_123228_)
    • relativeToBlockX

      public int relativeToBlockX(short p_123233_)
    • relativeToBlockY

      public int relativeToBlockY(short p_123238_)
    • relativeToBlockZ

      public int relativeToBlockZ(short p_123243_)
    • relativeToBlockPos

      public BlockPos relativeToBlockPos(short p_123246_)
    • sectionToBlockCoord

      public static int sectionToBlockCoord(int p_123224_)
    • sectionToBlockCoord

      public static int sectionToBlockCoord(int p_175555_, int p_175556_)
    • x

      public static int x(long p_123214_)
    • y

      public static int y(long p_123226_)
    • z

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

      public static long getZeroNode(long p_123241_)
    • origin

      public BlockPos origin()
    • center

      public BlockPos center()
    • chunk

      public ChunkPos chunk()
    • asLong

      public static long asLong(BlockPos p_175569_)
    • asLong

      public static long asLong(int p_123210_, int p_123211_, int p_123212_)
    • asLong

      public long asLong()
    • offset

      public SectionPos offset(int p_175571_, int p_175572_, int p_175573_)
      Overrides:
      offset in class Vec3i
    • blocksInside

      public Stream<BlockPos> blocksInside()
    • cube

      public static Stream<SectionPos> cube(SectionPos p_123202_, int p_123203_)
    • aroundChunk

      public static Stream<SectionPos> aroundChunk(ChunkPos p_175558_, int p_175559_, int p_175560_, int p_175561_)
    • betweenClosedStream

      public static Stream<SectionPos> betweenClosedStream(int p_123178_, int p_123179_, int p_123180_, int p_123181_, int p_123182_, int p_123183_)