public class ChunkSectionPos extends Vec3i
field_25123, ZERO| Modifier | Constructor and Description |
|---|---|
private |
ChunkSectionPos(int x,
int y,
int z) |
| Modifier and Type | Method and Description |
|---|---|
long |
asLong() |
static long |
asLong(int x,
int y,
int z) |
static ChunkSectionPos |
from(BlockPos pos) |
static ChunkSectionPos |
from(ChunkPos chunkPos,
int y) |
static ChunkSectionPos |
from(Entity entity) |
static ChunkSectionPos |
from(int x,
int y,
int z) |
static ChunkSectionPos |
from(long packed) |
static long |
fromBlockPos(long blockPos) |
static int |
getBlockCoord(int sectionCoord) |
BlockPos |
getCenterPos() |
static int |
getLocalCoord(int coord) |
int |
getMaxX() |
int |
getMaxY() |
int |
getMaxZ() |
BlockPos |
getMinPos() |
int |
getMinX() |
int |
getMinY() |
int |
getMinZ() |
static short |
getPackedLocalPos(BlockPos pos) |
static int |
getSectionCoord(int coord) |
int |
getSectionX() |
int |
getSectionY() |
int |
getSectionZ() |
static int |
getX(long packed) |
static int |
getY(long packed) |
static int |
getZ(long packed) |
static int |
method_30551(short short2) |
static int |
method_30552(short short2) |
static int |
method_30553(short short2) |
int |
method_30554(short short2) |
int |
method_30555(short short2) |
int |
method_30556(short short2) |
BlockPos |
method_30557(short short2) |
static long |
offset(long packed,
Direction direction) |
static long |
offset(long packed,
int x,
int y,
int z) |
static Stream<ChunkSectionPos> |
stream(ChunkPos center,
int radius) |
static Stream<ChunkSectionPos> |
stream(ChunkSectionPos center,
int radius) |
static Stream<ChunkSectionPos> |
stream(int minX,
int minY,
int minZ,
int maxX,
int maxY,
int maxZ) |
Stream<BlockPos> |
streamBlocks() |
ChunkPos |
toChunkPos() |
static long |
withZeroZ(long pos) |
compareTo, crossProduct, down, down, equals, getManhattanDistance, getSquaredDistance, getSquaredDistance, getSquaredDistance, getX, getY, getZ, hashCode, isWithinDistance, isWithinDistance, method_30558, offset, setX, setY, setZ, toShortString, toStringpublic static ChunkSectionPos from(int x, int y, int z)
public static ChunkSectionPos from(BlockPos pos)
public static ChunkSectionPos from(ChunkPos chunkPos, int y)
public static ChunkSectionPos from(Entity entity)
public static ChunkSectionPos from(long packed)
public static long offset(long packed,
Direction direction)
public static long offset(long packed,
int x,
int y,
int z)
public static int getSectionCoord(int coord)
public static int getLocalCoord(int coord)
public static short getPackedLocalPos(BlockPos pos)
public static int method_30551(short short2)
public static int method_30552(short short2)
public static int method_30553(short short2)
public int method_30554(short short2)
public int method_30555(short short2)
public int method_30556(short short2)
public BlockPos method_30557(short short2)
public static int getBlockCoord(int sectionCoord)
public static int getX(long packed)
public static int getY(long packed)
public static int getZ(long packed)
public int getSectionX()
public int getSectionY()
public int getSectionZ()
public int getMinX()
public int getMinY()
public int getMinZ()
public int getMaxX()
public int getMaxY()
public int getMaxZ()
public static long fromBlockPos(long blockPos)
public static long withZeroZ(long pos)
public BlockPos getMinPos()
public BlockPos getCenterPos()
public ChunkPos toChunkPos()
public static long asLong(int x,
int y,
int z)
public long asLong()
public static Stream<ChunkSectionPos> stream(ChunkSectionPos center, int radius)
public static Stream<ChunkSectionPos> stream(ChunkPos center, int radius)
public static Stream<ChunkSectionPos> stream(int minX, int minY, int minZ, int maxX, int maxY, int maxZ)