Package net.minecraft.util.math
Class SectionPos
- java.lang.Object
-
- net.minecraft.util.math.vector.Vector3i
-
- net.minecraft.util.math.SectionPos
-
-
Constructor Summary
Constructors Modifier Constructor Description private
SectionPos(int p_i50794_1_, int p_i50794_2_, int p_i50794_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.stream.Stream<SectionPos>
aroundChunk(ChunkPos p_229421_0_, int p_229421_1_)
long
asLong()
static long
asLong(int p_218166_0_, int p_218166_1_, int p_218166_2_)
static java.util.stream.Stream<SectionPos>
betweenClosedStream(int p_218168_0_, int p_218168_1_, int p_218168_2_, int p_218168_3_, int p_218168_4_, int p_218168_5_)
java.util.stream.Stream<BlockPos>
blocksInside()
static long
blockToSection(long p_218162_0_)
static int
blockToSectionCoord(int p_218159_0_)
BlockPos
center()
ChunkPos
chunk()
static java.util.stream.Stream<SectionPos>
cube(SectionPos p_218158_0_, int p_218158_1_)
static long
getZeroNode(long p_218169_0_)
int
maxBlockX()
int
maxBlockY()
int
maxBlockZ()
int
minBlockX()
int
minBlockY()
int
minBlockZ()
static SectionPos
of(int p_218154_0_, int p_218154_1_, int p_218154_2_)
static SectionPos
of(long p_218170_0_)
static SectionPos
of(Entity p_218157_0_)
static SectionPos
of(BlockPos p_218167_0_)
static SectionPos
of(ChunkPos p_218156_0_, int p_218156_1_)
static long
offset(long p_218174_0_, int p_218174_2_, int p_218174_3_, int p_218174_4_)
static long
offset(long p_218172_0_, Direction p_218172_2_)
BlockPos
origin()
BlockPos
relativeToBlockPos(short p_243647_1_)
int
relativeToBlockX(short p_243644_1_)
int
relativeToBlockY(short p_243645_1_)
int
relativeToBlockZ(short p_243646_1_)
static int
sectionRelative(int p_218171_0_)
static short
sectionRelativePos(BlockPos p_218150_0_)
static int
sectionRelativeX(short p_243641_0_)
static int
sectionRelativeY(short p_243642_0_)
static int
sectionRelativeZ(short p_243643_0_)
static int
sectionToBlockCoord(int p_218142_0_)
int
x()
static int
x(long p_218173_0_)
int
y()
static int
y(long p_218144_0_)
int
z()
static int
z(long p_218153_0_)
-
-
-
Method Detail
-
of
public static SectionPos of(int p_218154_0_, int p_218154_1_, int p_218154_2_)
-
of
public static SectionPos of(BlockPos p_218167_0_)
-
of
public static SectionPos of(ChunkPos p_218156_0_, int p_218156_1_)
-
of
public static SectionPos of(Entity p_218157_0_)
-
of
public static SectionPos of(long p_218170_0_)
-
offset
public static long offset(long p_218172_0_, Direction p_218172_2_)
-
offset
public static long offset(long p_218174_0_, int p_218174_2_, int p_218174_3_, int p_218174_4_)
-
blockToSectionCoord
public static int blockToSectionCoord(int p_218159_0_)
-
sectionRelative
public static int sectionRelative(int p_218171_0_)
-
sectionRelativePos
public static short sectionRelativePos(BlockPos p_218150_0_)
-
sectionRelativeX
public static int sectionRelativeX(short p_243641_0_)
-
sectionRelativeY
public static int sectionRelativeY(short p_243642_0_)
-
sectionRelativeZ
public static int sectionRelativeZ(short p_243643_0_)
-
relativeToBlockX
public int relativeToBlockX(short p_243644_1_)
-
relativeToBlockY
public int relativeToBlockY(short p_243645_1_)
-
relativeToBlockZ
public int relativeToBlockZ(short p_243646_1_)
-
relativeToBlockPos
public BlockPos relativeToBlockPos(short p_243647_1_)
-
sectionToBlockCoord
public static int sectionToBlockCoord(int p_218142_0_)
-
x
public static int x(long p_218173_0_)
-
y
public static int y(long p_218144_0_)
-
z
public static int z(long p_218153_0_)
-
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_218162_0_)
-
getZeroNode
public static long getZeroNode(long p_218169_0_)
-
origin
public BlockPos origin()
-
center
public BlockPos center()
-
chunk
public ChunkPos chunk()
-
asLong
public static long asLong(int p_218166_0_, int p_218166_1_, int p_218166_2_)
-
asLong
public long asLong()
-
blocksInside
public java.util.stream.Stream<BlockPos> blocksInside()
-
cube
public static java.util.stream.Stream<SectionPos> cube(SectionPos p_218158_0_, int p_218158_1_)
-
aroundChunk
public static java.util.stream.Stream<SectionPos> aroundChunk(ChunkPos p_229421_0_, int p_229421_1_)
-
betweenClosedStream
public static java.util.stream.Stream<SectionPos> betweenClosedStream(int p_218168_0_, int p_218168_1_, int p_218168_2_, int p_218168_3_, int p_218168_4_, int p_218168_5_)
-
-