Class EmptyChunk


  • public class EmptyChunk
    extends Chunk
    + 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 Detail

      • EmptyChunk

        public EmptyChunk​(World worldIn,
                          int x,
                          int z)
    • Method Detail

      • isAtLocation

        public boolean isAtLocation​(int x,
                                    int z)
        + Checks whether the chunk is at the X/Z location specified
        Overrides:
        isAtLocation in class Chunk
      • getHeightValue

        public int getHeightValue​(int x,
                                  int z)
        + Returns the value in the height map at this x, z coordinate in the chunk
        Overrides:
        getHeightValue in class Chunk
      • generateHeightMap

        public void generateHeightMap()
        + Generates the height map for a chunk from scratch
        Overrides:
        generateHeightMap in class Chunk
      • generateSkylightMap

        public void generateSkylightMap()
        + Generates the initial skylight map for the chunk upon generation or load.
        Overrides:
        generateSkylightMap in class Chunk
      • getBlockMetadata

        public int getBlockMetadata​(BlockPos pos)
        Description copied from class: Chunk
        + Return the metadata corresponding to the given coordinates inside a chunk.
        Overrides:
        getBlockMetadata in class Chunk
      • addEntity

        public void addEntity​(Entity entityIn)
        + Adds an entity to the chunk. Args: entity
        Overrides:
        addEntity in class Chunk
      • removeEntity

        public void removeEntity​(Entity entityIn)
        + removes entity using its y chunk coordinate as its index
        Overrides:
        removeEntity in class Chunk
      • removeEntityAtIndex

        public void removeEntityAtIndex​(Entity entityIn,
                                        int parInt1)
        + Removes entity at the specified index from the entity array.
        Overrides:
        removeEntityAtIndex in class Chunk
      • onChunkLoad

        public void onChunkLoad()
        + Called when this Chunk is loaded by the ChunkProvider
        Overrides:
        onChunkLoad in class Chunk
      • onChunkUnload

        public void onChunkUnload()
        + Called when this Chunk is unloaded by the ChunkProvider
        Overrides:
        onChunkUnload in class Chunk
      • setChunkModified

        public void setChunkModified()
        + Sets the isModified flag for this Chunk
        Overrides:
        setChunkModified in class Chunk
      • needsSaving

        public boolean needsSaving​(boolean parFlag)
        + Returns true if this Chunk needs to be saved
        Overrides:
        needsSaving in class Chunk
      • isEmpty

        public boolean isEmpty()
        Overrides:
        isEmpty in class Chunk
      • getAreLevelsEmpty

        public boolean getAreLevelsEmpty​(int startY,
                                         int endY)
        + Returns whether the ExtendedBlockStorages containing levels (in blocks) from arg 1 to arg 2 are fully empty (true) or not (false).
        Overrides:
        getAreLevelsEmpty in class Chunk