Class 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 chunk
      BlockPos getCenterBlock​(int y)
      + Get the coordinates of the Block in the center of this chunk with the given Y coordinate
      int getCenterXPos()  
      int getCenterZPosition()  
      int getXEnd()
      + Get the last world X coordinate that belongs to this Chunk
      int getXStart()
      + Get the first world X coordinate that belongs to this Chunk
      int getZEnd()
      + Get the last world Z coordinate that belongs to this Chunk
      int getZStart()
      + Get the first world Z coordinate that belongs to this Chunk
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • chunkXPos

        public final int chunkXPos
      • chunkZPos

        public final int chunkZPos
    • Constructor Detail

      • ChunkCoordIntPair

        public ChunkCoordIntPair​(int x,
                                 int z)
    • 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 class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.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 class java.lang.Object