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>
- Mappings:
Namespace Name named net/minecraft/util/math/ChunkSectionPosintermediary net/minecraft/class_4076official kk
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intprivate static final intprivate static final intprivate static final intprivate static final longprivate static final longprivate static final longprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(int int2, int int3, int int4) Returns another Vec3i whose coordinates have the parameter x, y, and z added to the coordinates of this vector.longasLong()static longasLong(int x, int y, int z) static voidforEachChunkSectionAround(int x, int y, int z, LongConsumer consumer) Performs an action for each chunk section enclosing a block position adjacent to(x, y, z).static voidforEachChunkSectionAround(long pos, LongConsumer consumer) static voidforEachChunkSectionAround(BlockPos pos, LongConsumer consumer) static ChunkSectionPosfrom(int x, int y, int z) Creates a chunk section position from its x-, y- and z-coordinates.static ChunkSectionPosfrom(long packed) Creates a chunk section position from its packed representation.static ChunkSectionPosstatic ChunkSectionPosCreates a chunk section position from a chunk position and the y-coordinate of the vertical section.static ChunkSectionPosstatic ChunkSectionPosstatic ChunkSectionPosfrom(EntityLike entity) static longfromBlockPos(long blockPos) Gets the packed chunk section coordinate for a given packedBlockPos.static intgetBlockCoord(int sectionCoord) Converts the given chunk section coordinate to the world coordinate system.static intgetLocalCoord(int coord) Converts a world coordinate to the local coordinate system (0-15) of its corresponding chunk section.intgetMaxX()intgetMaxY()intgetMaxZ()intgetMinX()intgetMinY()intgetMinZ()static intgetOffsetPos(int chunkCoord, int offset) static intgetSectionCoord(double coord) static intgetSectionCoord(int coord) Converts a world coordinate to the corresponding chunk-section coordinate.static intgetSectionCoordFloored(double coord) intintintstatic longoffset(long packed, int x, int y, int z) Offsets a packed chunk section position by the given offsets.static longOffsets a packed chunk section position in the given direction.static shortReturns the local position of the given block position relative to its respective chunk section, packed into a short.static Stream<ChunkSectionPos> stream(int minX, int minY, int minZ, int maxX, int maxY, int maxZ) static Stream<ChunkSectionPos> static Stream<ChunkSectionPos> stream(ChunkSectionPos center, int radius) static longunpackBlockPos(short packedLocalPos) Gets the world position of the given local position within this chunk section.intunpackBlockX(short packedLocalPos) Gets the world x-coordinate of the given local position within this chunk section.intunpackBlockY(short packedLocalPos) Gets the world y-coordinate of the given local position within this chunk section.intunpackBlockZ(short packedLocalPos) Gets the world z-coordinate of the given local position within this chunk section.static intunpackLocalX(short packedLocalPos) Gets the local x-coordinate from the given packed local position.static intunpackLocalY(short packedLocalPos) Gets the local y-coordinate from the given packed local position.static intunpackLocalZ(short packedLocalPos) Gets the local z-coordinate from the given packed local position.static intunpackX(long packed) Gets the chunk section x-coordinate from the given packed chunk section coordinate.static intunpackY(long packed) Gets the chunk section y-coordinate from the given packed chunk section coordinate.static intunpackZ(long packed) Gets the chunk section z-coordinate from the given packed chunk section coordinate.static longwithZeroY(int x, int z) static longwithZeroY(long pos) Gets the packed chunk section coordinate at y=0 for the same chunk as the given packed chunk section coordinate.Methods inherited from class net.minecraft.util.math.Vec3i
add, compareTo, createOffsetCodec, crossProduct, down, down, east, east, equals, getChebyshevDistance, getComponentAlongAxis, getManhattanDistance, getSquaredDistance, getSquaredDistance, getSquaredDistance, getSquaredDistanceFromCenter, getX, getY, getZ, hashCode, isWithinDistance, isWithinDistance, multiply, north, north, offset, offset, offset, setX, setY, setZ, south, south, subtract, toShortString, toString, up, up, west, west
-
Field Details
-
field_33096
public static final int field_33096- See Also:
- Mappings:
Namespace Name Mixin selector named field_33096Lnet/minecraft/util/math/ChunkSectionPos;field_33096:Iintermediary field_33096Lnet/minecraft/class_4076;field_33096:Iofficial aLkk;a:I
-
field_33097
public static final int field_33097- See Also:
- Mappings:
Namespace Name Mixin selector named field_33097Lnet/minecraft/util/math/ChunkSectionPos;field_33097:Iintermediary field_33097Lnet/minecraft/class_4076;field_33097:Iofficial bLkk;b:I
-
field_33100
public static final int field_33100- See Also:
- Mappings:
Namespace Name Mixin selector named field_33100Lnet/minecraft/util/math/ChunkSectionPos;field_33100:Iintermediary field_33100Lnet/minecraft/class_4076;field_33100:Iofficial cLkk;c:I
-
field_33098
public static final int field_33098- See Also:
- Mappings:
Namespace Name Mixin selector named field_33098Lnet/minecraft/util/math/ChunkSectionPos;field_33098:Iintermediary field_33098Lnet/minecraft/class_4076;field_33098:Iofficial dLkk;d:I
-
field_33099
public static final int field_33099- See Also:
- Mappings:
Namespace Name Mixin selector named field_33099Lnet/minecraft/util/math/ChunkSectionPos;field_33099:Iintermediary field_33099Lnet/minecraft/class_4076;field_33099:Iofficial eLkk;e:I
-
field_33101
private static final int field_33101- See Also:
- Mappings:
Namespace Name Mixin selector named field_33101Lnet/minecraft/util/math/ChunkSectionPos;field_33101:Iintermediary field_33101Lnet/minecraft/class_4076;field_33101:Iofficial fLkk;f:I
-
field_33102
private static final int field_33102- See Also:
- Mappings:
Namespace Name Mixin selector named field_33102Lnet/minecraft/util/math/ChunkSectionPos;field_33102:Iintermediary field_33102Lnet/minecraft/class_4076;field_33102:Iofficial iLkk;i:I
-
field_33103
private static final int field_33103- See Also:
- Mappings:
Namespace Name Mixin selector named field_33103Lnet/minecraft/util/math/ChunkSectionPos;field_33103:Iintermediary field_33103Lnet/minecraft/class_4076;field_33103:Iofficial jLkk;j:I
-
field_33104
private static final long field_33104- See Also:
- Mappings:
Namespace Name Mixin selector named field_33104Lnet/minecraft/util/math/ChunkSectionPos;field_33104:Jintermediary field_33104Lnet/minecraft/class_4076;field_33104:Jofficial kLkk;k:J
-
field_33105
private static final long field_33105- See Also:
- Mappings:
Namespace Name Mixin selector named field_33105Lnet/minecraft/util/math/ChunkSectionPos;field_33105:Jintermediary field_33105Lnet/minecraft/class_4076;field_33105:Jofficial lLkk;l:J
-
field_33106
private static final long field_33106- See Also:
- Mappings:
Namespace Name Mixin selector named field_33106Lnet/minecraft/util/math/ChunkSectionPos;field_33106:Jintermediary field_33106Lnet/minecraft/class_4076;field_33106:Jofficial mLkk;m:J
-
field_33107
private static final int field_33107- See Also:
- Mappings:
Namespace Name Mixin selector named field_33107Lnet/minecraft/util/math/ChunkSectionPos;field_33107:Iintermediary field_33107Lnet/minecraft/class_4076;field_33107:Iofficial nLkk;n:I
-
field_33108
private static final int field_33108- See Also:
- Mappings:
Namespace Name Mixin selector named field_33108Lnet/minecraft/util/math/ChunkSectionPos;field_33108:Iintermediary field_33108Lnet/minecraft/class_4076;field_33108:Iofficial oLkk;o:I
-
field_33109
private static final int field_33109- See Also:
- Mappings:
Namespace Name Mixin selector named field_33109Lnet/minecraft/util/math/ChunkSectionPos;field_33109:Iintermediary field_33109Lnet/minecraft/class_4076;field_33109:Iofficial pLkk;p:I
-
field_33110
private static final int field_33110- See Also:
- Mappings:
Namespace Name Mixin selector named field_33110Lnet/minecraft/util/math/ChunkSectionPos;field_33110:Iintermediary field_33110Lnet/minecraft/class_4076;field_33110:Iofficial qLkk;q:I
-
field_33111
private static final int field_33111- See Also:
- Mappings:
Namespace Name Mixin selector named field_33111Lnet/minecraft/util/math/ChunkSectionPos;field_33111:Iintermediary field_33111Lnet/minecraft/class_4076;field_33111:Iofficial rLkk;r:I
-
field_33112
private static final int field_33112- See Also:
- Mappings:
Namespace Name Mixin selector named field_33112Lnet/minecraft/util/math/ChunkSectionPos;field_33112:Iintermediary field_33112Lnet/minecraft/class_4076;field_33112:Iofficial sLkk;s:I
-
-
Constructor Details
-
ChunkSectionPos
ChunkSectionPos(int x, int y, int z) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/util/math/Vec3i;<init>(III)Vintermediary <init>Lnet/minecraft/class_2382;<init>(III)Vofficial <init>Lkm;<init>(III)V
-
-
Method Details
-
from
Creates a chunk section position from its x-, y- and z-coordinates.- Mappings:
Namespace Name Mixin selector named fromLnet/minecraft/util/math/ChunkSectionPos;from(III)Lnet/minecraft/util/math/ChunkSectionPos;intermediary method_18676Lnet/minecraft/class_4076;method_18676(III)Lnet/minecraft/class_4076;official aLkk;a(III)Lkk;
-
from
- Mappings:
Namespace Name Mixin selector named fromLnet/minecraft/util/math/ChunkSectionPos;from(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/ChunkSectionPos;intermediary method_18682Lnet/minecraft/class_4076;method_18682(Lnet/minecraft/class_2338;)Lnet/minecraft/class_4076;official aLkk;a(Lji;)Lkk;
-
from
Creates a chunk section position from a chunk position and the y-coordinate of the vertical section.- Mappings:
Namespace Name Mixin selector named fromLnet/minecraft/util/math/ChunkSectionPos;from(Lnet/minecraft/util/math/ChunkPos;I)Lnet/minecraft/util/math/ChunkSectionPos;intermediary method_18681Lnet/minecraft/class_4076;method_18681(Lnet/minecraft/class_1923;I)Lnet/minecraft/class_4076;official aLkk;a(Ldfp;I)Lkk;
-
from
- Mappings:
Namespace Name Mixin selector named fromLnet/minecraft/util/math/ChunkSectionPos;from(Lnet/minecraft/world/entity/EntityLike;)Lnet/minecraft/util/math/ChunkSectionPos;intermediary method_42614Lnet/minecraft/class_4076;method_42614(Lnet/minecraft/class_5568;)Lnet/minecraft/class_4076;official aLkk;a(Lebb;)Lkk;
-
from
- Mappings:
Namespace Name Mixin selector named fromLnet/minecraft/util/math/ChunkSectionPos;from(Lnet/minecraft/util/math/Position;)Lnet/minecraft/util/math/ChunkSectionPos;intermediary method_18680Lnet/minecraft/class_4076;method_18680(Lnet/minecraft/class_2374;)Lnet/minecraft/class_4076;official aLkk;a(Lkb;)Lkk;
-
from
Creates a chunk section position from its packed representation.- See Also:
- Mappings:
Namespace Name Mixin selector named fromLnet/minecraft/util/math/ChunkSectionPos;from(J)Lnet/minecraft/util/math/ChunkSectionPos;intermediary method_18677Lnet/minecraft/class_4076;method_18677(J)Lnet/minecraft/class_4076;official aLkk;a(J)Lkk;
-
from
- Mappings:
Namespace Name Mixin selector named fromLnet/minecraft/util/math/ChunkSectionPos;from(Lnet/minecraft/world/chunk/Chunk;)Lnet/minecraft/util/math/ChunkSectionPos;intermediary method_33705Lnet/minecraft/class_4076;method_33705(Lnet/minecraft/class_2791;)Lnet/minecraft/class_4076;official aLkk;a(Ldyt;)Lkk;
-
offset
Offsets a packed chunk section position in the given direction.- See Also:
- Mappings:
Namespace Name Mixin selector named offsetLnet/minecraft/util/math/ChunkSectionPos;offset(JLnet/minecraft/util/math/Direction;)Jintermediary method_18679Lnet/minecraft/class_4076;method_18679(JLnet/minecraft/class_2350;)Jofficial aLkk;a(JLjn;)J
-
offset
public static long offset(long packed, int x, int y, int z) Offsets a packed chunk section position by the given offsets.- See Also:
- Mappings:
Namespace Name Mixin selector named offsetLnet/minecraft/util/math/ChunkSectionPos;offset(JIII)Jintermediary method_18678Lnet/minecraft/class_4076;method_18678(JIII)Jofficial aLkk;a(JIII)J
-
getSectionCoord
public static int getSectionCoord(double coord) - Mappings:
Namespace Name Mixin selector named getSectionCoordLnet/minecraft/util/math/ChunkSectionPos;getSectionCoord(D)Iintermediary method_32204Lnet/minecraft/class_4076;method_32204(D)Iofficial aLkk;a(D)I
-
getSectionCoord
public static int getSectionCoord(int coord) Converts a world coordinate to the corresponding chunk-section coordinate.- Implementation Note:
- This implementation returns
coord / 16. - Mappings:
Namespace Name Mixin selector named getSectionCoordLnet/minecraft/util/math/ChunkSectionPos;getSectionCoord(I)Iintermediary method_18675Lnet/minecraft/class_4076;method_18675(I)Iofficial aLkk;a(I)I
-
getSectionCoordFloored
public static int getSectionCoordFloored(double coord) - Mappings:
Namespace Name Mixin selector named getSectionCoordFlooredLnet/minecraft/util/math/ChunkSectionPos;getSectionCoordFloored(D)Iintermediary method_42615Lnet/minecraft/class_4076;method_42615(D)Iofficial bLkk;b(D)I
-
getLocalCoord
public static int getLocalCoord(int coord) Converts a world coordinate to the local coordinate system (0-15) of its corresponding chunk section.- Mappings:
Namespace Name Mixin selector named getLocalCoordLnet/minecraft/util/math/ChunkSectionPos;getLocalCoord(I)Iintermediary method_18684Lnet/minecraft/class_4076;method_18684(I)Iofficial bLkk;b(I)I
-
packLocal
Returns the local position of the given block position relative to its respective chunk section, packed into a short.- Mappings:
Namespace Name Mixin selector named packLocalLnet/minecraft/util/math/ChunkSectionPos;packLocal(Lnet/minecraft/util/math/BlockPos;)Sintermediary method_19454Lnet/minecraft/class_4076;method_19454(Lnet/minecraft/class_2338;)Sofficial bLkk;b(Lji;)S
-
unpackLocalX
public static int unpackLocalX(short packedLocalPos) Gets the local x-coordinate from the given packed local position.- See Also:
- Mappings:
Namespace Name Mixin selector named unpackLocalXLnet/minecraft/util/math/ChunkSectionPos;unpackLocalX(S)Iintermediary method_30551Lnet/minecraft/class_4076;method_30551(S)Iofficial aLkk;a(S)I
-
unpackLocalY
public static int unpackLocalY(short packedLocalPos) Gets the local y-coordinate from the given packed local position.- See Also:
- Mappings:
Namespace Name Mixin selector named unpackLocalYLnet/minecraft/util/math/ChunkSectionPos;unpackLocalY(S)Iintermediary method_30552Lnet/minecraft/class_4076;method_30552(S)Iofficial bLkk;b(S)I
-
unpackLocalZ
public static int unpackLocalZ(short packedLocalPos) Gets the local z-coordinate from the given packed local position.- See Also:
- Mappings:
Namespace Name Mixin selector named unpackLocalZLnet/minecraft/util/math/ChunkSectionPos;unpackLocalZ(S)Iintermediary method_30553Lnet/minecraft/class_4076;method_30553(S)Iofficial cLkk;c(S)I
-
unpackBlockX
public int unpackBlockX(short packedLocalPos) Gets the world x-coordinate of the given local position within this chunk section.- See Also:
- Mappings:
Namespace Name Mixin selector named unpackBlockXLnet/minecraft/util/math/ChunkSectionPos;unpackBlockX(S)Iintermediary method_30554Lnet/minecraft/class_4076;method_30554(S)Iofficial dLkk;d(S)I
-
unpackBlockY
public int unpackBlockY(short packedLocalPos) Gets the world y-coordinate of the given local position within this chunk section.- See Also:
- Mappings:
Namespace Name Mixin selector named unpackBlockYLnet/minecraft/util/math/ChunkSectionPos;unpackBlockY(S)Iintermediary method_30555Lnet/minecraft/class_4076;method_30555(S)Iofficial eLkk;e(S)I
-
unpackBlockZ
public int unpackBlockZ(short packedLocalPos) Gets the world z-coordinate of the given local position within this chunk section.- See Also:
- Mappings:
Namespace Name Mixin selector named unpackBlockZLnet/minecraft/util/math/ChunkSectionPos;unpackBlockZ(S)Iintermediary method_30556Lnet/minecraft/class_4076;method_30556(S)Iofficial fLkk;f(S)I
-
unpackBlockPos
Gets the world position of the given local position within this chunk section.- See Also:
- Mappings:
Namespace Name Mixin selector named unpackBlockPosLnet/minecraft/util/math/ChunkSectionPos;unpackBlockPos(S)Lnet/minecraft/util/math/BlockPos;intermediary method_30557Lnet/minecraft/class_4076;method_30557(S)Lnet/minecraft/class_2338;official gLkk;g(S)Lji;
-
getBlockCoord
public static int getBlockCoord(int sectionCoord) Converts the given chunk section coordinate to the world coordinate system. The returned coordinate will always be at the origin of the chunk section in world space.- Mappings:
Namespace Name Mixin selector named getBlockCoordLnet/minecraft/util/math/ChunkSectionPos;getBlockCoord(I)Iintermediary method_18688Lnet/minecraft/class_4076;method_18688(I)Iofficial cLkk;c(I)I
-
getOffsetPos
public static int getOffsetPos(int chunkCoord, int offset) - Mappings:
Namespace Name Mixin selector named getOffsetPosLnet/minecraft/util/math/ChunkSectionPos;getOffsetPos(II)Iintermediary method_32205Lnet/minecraft/class_4076;method_32205(II)Iofficial aLkk;a(II)I
-
unpackX
public static int unpackX(long packed) Gets the chunk section x-coordinate from the given packed chunk section coordinate.- See Also:
- Mappings:
Namespace Name Mixin selector named unpackXLnet/minecraft/util/math/ChunkSectionPos;unpackX(J)Iintermediary method_18686Lnet/minecraft/class_4076;method_18686(J)Iofficial bLkk;b(J)I
-
unpackY
public static int unpackY(long packed) Gets the chunk section y-coordinate from the given packed chunk section coordinate.- See Also:
- Mappings:
Namespace Name Mixin selector named unpackYLnet/minecraft/util/math/ChunkSectionPos;unpackY(J)Iintermediary method_18689Lnet/minecraft/class_4076;method_18689(J)Iofficial cLkk;c(J)I
-
unpackZ
public static int unpackZ(long packed) Gets the chunk section z-coordinate from the given packed chunk section coordinate.- See Also:
- Mappings:
Namespace Name Mixin selector named unpackZLnet/minecraft/util/math/ChunkSectionPos;unpackZ(J)Iintermediary method_18690Lnet/minecraft/class_4076;method_18690(J)Iofficial dLkk;d(J)I
-
getSectionX
public int getSectionX()- Mappings:
Namespace Name Mixin selector named getSectionXLnet/minecraft/util/math/ChunkSectionPos;getSectionX()Iintermediary method_18674Lnet/minecraft/class_4076;method_18674()Iofficial aLkk;a()I
-
getSectionY
public int getSectionY()- Mappings:
Namespace Name Mixin selector named getSectionYLnet/minecraft/util/math/ChunkSectionPos;getSectionY()Iintermediary method_18683Lnet/minecraft/class_4076;method_18683()Iofficial bLkk;b()I
-
getSectionZ
public int getSectionZ()- Mappings:
Namespace Name Mixin selector named getSectionZLnet/minecraft/util/math/ChunkSectionPos;getSectionZ()Iintermediary method_18687Lnet/minecraft/class_4076;method_18687()Iofficial cLkk;c()I
-
getMinX
public int getMinX()- Mappings:
Namespace Name Mixin selector named getMinXLnet/minecraft/util/math/ChunkSectionPos;getMinX()Iintermediary method_19527Lnet/minecraft/class_4076;method_19527()Iofficial dLkk;d()I
-
getMinY
public int getMinY()- Mappings:
Namespace Name Mixin selector named getMinYLnet/minecraft/util/math/ChunkSectionPos;getMinY()Iintermediary method_19528Lnet/minecraft/class_4076;method_19528()Iofficial eLkk;e()I
-
getMinZ
public int getMinZ()- Mappings:
Namespace Name Mixin selector named getMinZLnet/minecraft/util/math/ChunkSectionPos;getMinZ()Iintermediary method_19529Lnet/minecraft/class_4076;method_19529()Iofficial fLkk;f()I
-
getMaxX
public int getMaxX()- Mappings:
Namespace Name Mixin selector named getMaxXLnet/minecraft/util/math/ChunkSectionPos;getMaxX()Iintermediary method_19530Lnet/minecraft/class_4076;method_19530()Iofficial gLkk;g()I
-
getMaxY
public int getMaxY()- Mappings:
Namespace Name Mixin selector named getMaxYLnet/minecraft/util/math/ChunkSectionPos;getMaxY()Iintermediary method_19531Lnet/minecraft/class_4076;method_19531()Iofficial hLkk;h()I
-
getMaxZ
public int getMaxZ()- Mappings:
Namespace Name Mixin selector named getMaxZLnet/minecraft/util/math/ChunkSectionPos;getMaxZ()Iintermediary method_19532Lnet/minecraft/class_4076;method_19532()Iofficial iLkk;i()I
-
fromBlockPos
public static long fromBlockPos(long blockPos) Gets the packed chunk section coordinate for a given packedBlockPos.- See Also:
- Mappings:
Namespace Name Mixin selector named fromBlockPosLnet/minecraft/util/math/ChunkSectionPos;fromBlockPos(J)Jintermediary method_18691Lnet/minecraft/class_4076;method_18691(J)Jofficial eLkk;e(J)J
-
withZeroY
public static long withZeroY(int x, int z) - Mappings:
Namespace Name Mixin selector named withZeroYLnet/minecraft/util/math/ChunkSectionPos;withZeroY(II)Jintermediary method_51687Lnet/minecraft/class_4076;method_51687(II)Jofficial bLkk;b(II)J
-
withZeroY
public static long withZeroY(long pos) Gets the packed chunk section coordinate at y=0 for the same chunk as the given packed chunk section coordinate.- See Also:
- Mappings:
Namespace Name Mixin selector named withZeroYLnet/minecraft/util/math/ChunkSectionPos;withZeroY(J)Jintermediary method_18693Lnet/minecraft/class_4076;method_18693(J)Jofficial fLkk;f(J)J
-
getMinPos
- Mappings:
Namespace Name Mixin selector named getMinPosLnet/minecraft/util/math/ChunkSectionPos;getMinPos()Lnet/minecraft/util/math/BlockPos;intermediary method_19767Lnet/minecraft/class_4076;method_19767()Lnet/minecraft/class_2338;official jLkk;j()Lji;
-
getCenterPos
- Mappings:
Namespace Name Mixin selector named getCenterPosLnet/minecraft/util/math/ChunkSectionPos;getCenterPos()Lnet/minecraft/util/math/BlockPos;intermediary method_19768Lnet/minecraft/class_4076;method_19768()Lnet/minecraft/class_2338;official kLkk;k()Lji;
-
toChunkPos
- Mappings:
Namespace Name Mixin selector named toChunkPosLnet/minecraft/util/math/ChunkSectionPos;toChunkPos()Lnet/minecraft/util/math/ChunkPos;intermediary method_18692Lnet/minecraft/class_4076;method_18692()Lnet/minecraft/class_1923;official rLkk;r()Ldfp;
-
toLong
- Mappings:
Namespace Name Mixin selector named toLongLnet/minecraft/util/math/ChunkSectionPos;toLong(Lnet/minecraft/util/math/BlockPos;)Jintermediary method_33706Lnet/minecraft/class_4076;method_33706(Lnet/minecraft/class_2338;)Jofficial cLkk;c(Lji;)J
-
asLong
public static long asLong(int x, int y, int z) - Mappings:
Namespace Name Mixin selector named asLongLnet/minecraft/util/math/ChunkSectionPos;asLong(III)Jintermediary method_18685Lnet/minecraft/class_4076;method_18685(III)Jofficial bLkk;b(III)J
-
asLong
public long asLong()- Mappings:
Namespace Name Mixin selector named asLongLnet/minecraft/util/math/ChunkSectionPos;asLong()Jintermediary method_18694Lnet/minecraft/class_4076;method_18694()Jofficial sLkk;s()J
-
add
Description copied from class:Vec3iReturns another Vec3i whose coordinates have the parameter x, y, and z added to the coordinates of this vector.This method always returns an immutable object.
- Overrides:
addin classVec3i- Returns:
- another Vec3i whose coordinates have the parameter x, y, and z added to the coordinates of this vector
- Mappings:
Namespace Name Mixin selector named addLnet/minecraft/util/math/ChunkSectionPos;add(III)Lnet/minecraft/util/math/ChunkSectionPos;intermediary method_34591Lnet/minecraft/class_4076;method_34591(III)Lnet/minecraft/class_4076;official dLkk;d(III)Lkk;
-
streamBlocks
- Mappings:
Namespace Name Mixin selector named streamBlocksLnet/minecraft/util/math/ChunkSectionPos;streamBlocks()Ljava/util/stream/Stream;intermediary method_19533Lnet/minecraft/class_4076;method_19533()Ljava/util/stream/Stream;official tLkk;t()Ljava/util/stream/Stream;
-
stream
- Mappings:
Namespace Name Mixin selector named streamLnet/minecraft/util/math/ChunkSectionPos;stream(Lnet/minecraft/util/math/ChunkSectionPos;I)Ljava/util/stream/Stream;intermediary method_20439Lnet/minecraft/class_4076;method_20439(Lnet/minecraft/class_4076;I)Ljava/util/stream/Stream;official aLkk;a(Lkk;I)Ljava/util/stream/Stream;
-
stream
- Mappings:
Namespace Name Mixin selector named streamLnet/minecraft/util/math/ChunkSectionPos;stream(Lnet/minecraft/util/math/ChunkPos;III)Ljava/util/stream/Stream;intermediary method_22446Lnet/minecraft/class_4076;method_22446(Lnet/minecraft/class_1923;III)Ljava/util/stream/Stream;official aLkk;a(Ldfp;III)Ljava/util/stream/Stream;
-
stream
public static Stream<ChunkSectionPos> stream(int minX, int minY, int minZ, int maxX, int maxY, int maxZ) - Mappings:
Namespace Name Mixin selector named streamLnet/minecraft/util/math/ChunkSectionPos;stream(IIIIII)Ljava/util/stream/Stream;intermediary method_20438Lnet/minecraft/class_4076;method_20438(IIIIII)Ljava/util/stream/Stream;official aLkk;a(IIIIII)Ljava/util/stream/Stream;
-
forEachChunkSectionAround
- Mappings:
Namespace Name Mixin selector named forEachChunkSectionAroundLnet/minecraft/util/math/ChunkSectionPos;forEachChunkSectionAround(Lnet/minecraft/util/math/BlockPos;Lit/unimi/dsi/fastutil/longs/LongConsumer;)Vintermediary method_39491Lnet/minecraft/class_4076;method_39491(Lnet/minecraft/class_2338;Lit/unimi/dsi/fastutil/longs/LongConsumer;)Vofficial aLkk;a(Lji;Lit/unimi/dsi/fastutil/longs/LongConsumer;)V
-
forEachChunkSectionAround
- Mappings:
Namespace Name Mixin selector named forEachChunkSectionAroundLnet/minecraft/util/math/ChunkSectionPos;forEachChunkSectionAround(JLit/unimi/dsi/fastutil/longs/LongConsumer;)Vintermediary method_39490Lnet/minecraft/class_4076;method_39490(JLit/unimi/dsi/fastutil/longs/LongConsumer;)Vofficial aLkk;a(JLit/unimi/dsi/fastutil/longs/LongConsumer;)V
-
forEachChunkSectionAround
Performs an action for each chunk section enclosing a block position adjacent to(x, y, z).- Parameters:
consumer- the consumer that takes the chunk section position as a long- Mappings:
Namespace Name Mixin selector named forEachChunkSectionAroundLnet/minecraft/util/math/ChunkSectionPos;forEachChunkSectionAround(IIILit/unimi/dsi/fastutil/longs/LongConsumer;)Vintermediary method_39489Lnet/minecraft/class_4076;method_39489(IIILit/unimi/dsi/fastutil/longs/LongConsumer;)Vofficial aLkk;a(IIILit/unimi/dsi/fastutil/longs/LongConsumer;)V
-