Package com.minecolonies.core.util
Class MutableChunkPos
java.lang.Object
net.minecraft.world.level.ChunkPos
com.minecolonies.core.util.MutableChunkPos
public class MutableChunkPos
extends net.minecraft.world.level.ChunkPos
-
Field Summary
Fields inherited from class net.minecraft.world.level.ChunkPos
INVALID_CHUNK_POS, REGION_MAX_INDEX, REGION_SIZE, x, z, ZERO -
Constructor Summary
ConstructorsConstructorDescriptionMutableChunkPos(int x, int z) MutableChunkPos(long longIn) MutableChunkPos(net.minecraft.core.BlockPos pos) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidfrom(net.minecraft.world.level.ChunkPos chunkPos) intgetBlockX(int offset) intgetBlockZ(int offset) intgetChessboardDistance(MutableChunkPos chunkPosIn) intgetChessboardDistance(net.minecraft.world.level.ChunkPos chunkPosIn) intintintintintintintgetX()intgetZ()inthashCode()voidsetX(int x) voidsetZ(int z) net.minecraft.world.level.ChunkPoslongtoLong()toString()Methods inherited from class net.minecraft.world.level.ChunkPos
asLong, asLong, getBlockAt, getMaxBlockX, getMaxBlockZ, getMiddleBlockPosition, getMiddleBlockX, getMiddleBlockZ, getWorldPosition, getX, getZ, hash, maxFromRegion, minFromRegion, rangeClosed, rangeClosed
-
Constructor Details
-
MutableChunkPos
public MutableChunkPos(int x, int z) -
MutableChunkPos
public MutableChunkPos(net.minecraft.core.BlockPos pos) -
MutableChunkPos
public MutableChunkPos(long longIn)
-
-
Method Details
-
toLong
public long toLong()- Overrides:
toLongin classnet.minecraft.world.level.ChunkPos
-
hashCode
public int hashCode()- Overrides:
hashCodein classnet.minecraft.world.level.ChunkPos
-
equals
- Overrides:
equalsin classnet.minecraft.world.level.ChunkPos
-
getMinBlockX
public int getMinBlockX()- Overrides:
getMinBlockXin classnet.minecraft.world.level.ChunkPos
-
getMinBlockZ
public int getMinBlockZ()- Overrides:
getMinBlockZin classnet.minecraft.world.level.ChunkPos
-
getBlockX
public int getBlockX(int offset) - Overrides:
getBlockXin classnet.minecraft.world.level.ChunkPos
-
getBlockZ
public int getBlockZ(int offset) - Overrides:
getBlockZin classnet.minecraft.world.level.ChunkPos
-
getRegionX
public int getRegionX()- Overrides:
getRegionXin classnet.minecraft.world.level.ChunkPos
-
getRegionZ
public int getRegionZ()- Overrides:
getRegionZin classnet.minecraft.world.level.ChunkPos
-
getRegionLocalX
public int getRegionLocalX()- Overrides:
getRegionLocalXin classnet.minecraft.world.level.ChunkPos
-
getRegionLocalZ
public int getRegionLocalZ()- Overrides:
getRegionLocalZin classnet.minecraft.world.level.ChunkPos
-
toString
- Overrides:
toStringin classnet.minecraft.world.level.ChunkPos
-
getChessboardDistance
public int getChessboardDistance(net.minecraft.world.level.ChunkPos chunkPosIn) - Overrides:
getChessboardDistancein classnet.minecraft.world.level.ChunkPos
-
getChessboardDistance
-
getX
public int getX() -
setX
public void setX(int x) -
getZ
public int getZ() -
setZ
public void setZ(int z) -
from
public void from(net.minecraft.world.level.ChunkPos chunkPos) -
toImmutable
public net.minecraft.world.level.ChunkPos toImmutable()
-