Package net.minecraft.world
Class ChunkCoordIntPair
- java.lang.Object
-
- net.minecraft.world.ChunkCoordIntPair
-
public class ChunkCoordIntPair extends java.lang.Object
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Constructor Summary
Constructors Constructor Description ChunkCoordIntPair(int x, int z)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static long
chunkXZ2Int(int x, int z)
+ converts a chunk coordinate pair to an integer (suitable for hashing)boolean
equals(java.lang.Object object)
BlockPos
getBlock(int x, int y, int z)
+ Get the World coordinates of the Block with the given Chunk coordinates relative to this chunkBlockPos
getCenterBlock(int y)
+ Get the coordinates of the Block in the center of this chunk with the given Y coordinateint
getCenterXPos()
int
getCenterZPosition()
int
getXEnd()
+ Get the last world X coordinate that belongs to this Chunkint
getXStart()
+ Get the first world X coordinate that belongs to this Chunkint
getZEnd()
+ Get the last world Z coordinate that belongs to this Chunkint
getZStart()
+ Get the first world Z coordinate that belongs to this Chunkint
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
chunkXZ2Int
public static long chunkXZ2Int(int x, int z)
+ converts a chunk coordinate pair to an integer (suitable for hashing)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
getCenterXPos
public int getCenterXPos()
-
getCenterZPosition
public int getCenterZPosition()
-
getXStart
public int getXStart()
+ Get the first world X coordinate that belongs to this Chunk
-
getZStart
public int getZStart()
+ Get the first world Z coordinate that belongs to this Chunk
-
getXEnd
public int getXEnd()
+ Get the last world X coordinate that belongs to this Chunk
-
getZEnd
public int getZEnd()
+ Get the last world Z coordinate that belongs to this Chunk
-
getBlock
public BlockPos getBlock(int x, int y, int z)
+ Get the World coordinates of the Block with the given Chunk coordinates relative to this chunk
-
getCenterBlock
public BlockPos getCenterBlock(int y)
+ Get the coordinates of the Block in the center of this chunk with the given Y coordinate
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-