Package net.minecraft.util.math
Class ChunkSectionPos
java.lang.Object
net.minecraft.util.math.Vec3i
net.minecraft.util.math.ChunkSectionPos
- All Implemented Interfaces:
Comparable<Vec3i>
public class ChunkSectionPos extends Vec3i
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description privateChunkSectionPos(int x, int y, int z) -
Method Summary
Modifier and Type Method Description longasLong()static longasLong(int x, int y, int z)static ChunkSectionPosfrom(int x, int y, int z)static ChunkSectionPosfrom(long packed)static ChunkSectionPosfrom(Entity entity)static ChunkSectionPosfrom(BlockPos pos)static ChunkSectionPosfrom(ChunkPos chunkPos, int y)static longfromGlobalPos(long globalLong)BlockPosgetCenterPos()static intgetLocalCoord(int coord)intgetMaxX()intgetMaxY()intgetMaxZ()BlockPosgetMinPos()intgetMinX()intgetMinY()intgetMinZ()static shortgetPackedLocalPos(BlockPos pos)static intgetSectionCoord(int coord)intgetSectionX()intgetSectionY()intgetSectionZ()static intgetWorldCoord(int chunkCoord)static intgetX(long packed)static intgetY(long packed)static intgetZ(long packed)static longoffset(long packed, int x, int y, int z)static longoffset(long packed, Direction direction)static Stream<ChunkSectionPos>stream(int minX, int minY, int minZ, int maxX, int maxY, int maxZ)static Stream<ChunkSectionPos>stream(ChunkPos center, int radius)static Stream<ChunkSectionPos>stream(ChunkSectionPos center, int radius)Stream<BlockPos>streamBlocks()ChunkPostoChunkPos()static longwithZeroZ(long pos)Methods inherited from class net.minecraft.util.math.Vec3i
compareTo, crossProduct, down, down, equals, getManhattanDistance, getSquaredDistance, getSquaredDistance, getSquaredDistance, getX, getY, getZ, hashCode, isWithinDistance, isWithinDistance, offset, setX, setY, setZ, toShortString, toString
-
Constructor Details
-
ChunkSectionPos
private ChunkSectionPos(int x, int y, int z)
-
-
Method Details
-
from
-
from
-
from
-
from
-
from
-
offset
-
offset
public static long offset(long packed, int x, int y, int z) -
getSectionCoord
public static int getSectionCoord(int coord) -
getLocalCoord
public static int getLocalCoord(int coord) -
getPackedLocalPos
-
getWorldCoord
public static int getWorldCoord(int chunkCoord) -
getX
public static int getX(long packed) -
getY
public static int getY(long packed) -
getZ
public static int getZ(long packed) -
getSectionX
public int getSectionX() -
getSectionY
public int getSectionY() -
getSectionZ
public int getSectionZ() -
getMinX
public int getMinX() -
getMinY
public int getMinY() -
getMinZ
public int getMinZ() -
getMaxX
public int getMaxX() -
getMaxY
public int getMaxY() -
getMaxZ
public int getMaxZ() -
fromGlobalPos
public static long fromGlobalPos(long globalLong) -
withZeroZ
public static long withZeroZ(long pos) -
getMinPos
-
getCenterPos
-
toChunkPos
-
asLong
public static long asLong(int x, int y, int z) -
asLong
public long asLong() -
streamBlocks
-
stream
-
stream
-
stream
public static Stream<ChunkSectionPos> stream(int minX, int minY, int minZ, int maxX, int maxY, int maxZ)
-