Class ExtendedBlockStorage


  • public class ExtendedBlockStorage
    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
      ExtendedBlockStorage​(int y, boolean storeSkylight)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      IBlockState get​(int x, int y, int z)  
      Block getBlockByExtId​(int x, int y, int z)
      + Returns the block for a location in a chunk, with the extended ID merged from a byte array and a NibbleArray to form a full 12-bit block ID.
      NibbleArray getBlocklightArray()
      + Returns the NibbleArray instance containing Block-light data.
      char[] getData()  
      int getExtBlocklightValue​(int x, int y, int z)
      + Gets the saved Block-light value in the extended block storage structure.
      int getExtBlockMetadata​(int x, int y, int z)
      + Returns the metadata associated with the block at the given coordinates in this ExtendedBlockStorage.
      int getExtSkylightValue​(int x, int y, int z)
      + Gets the saved Sky-light value in the extended block storage structure.
      boolean getNeedsRandomTick()
      + Returns whether or not this block storage's Chunk will require random ticking, used to avoid looping through random block ticks when there are no blocks that would randomly tick.
      NibbleArray getSkylightArray()
      + Returns the NibbleArray instance containing Sky-light data.
      int getYLocation()
      + Returns the Y location of this ExtendedBlockStorage.
      boolean isEmpty()
      + Returns whether or not this block storage's Chunk is fully empty, based on its internal reference count.
      void removeInvalidBlocks()  
      void set​(int x, int y, int z, IBlockState state)  
      void setBlocklightArray​(NibbleArray newBlocklightArray)
      + Sets the NibbleArray instance used for Block-light values in this particular storage block.
      void setData​(char[] dataArray)  
      void setExtBlocklightValue​(int x, int y, int z, int value)
      + Sets the saved Block-light value in the extended block storage structure.
      void setExtSkylightValue​(int x, int y, int z, int value)
      + Sets the saved Sky-light value in the extended block storage structure.
      void setSkylightArray​(NibbleArray newSkylightArray)
      + Sets the NibbleArray instance used for Sky-light values in this particular storage block.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExtendedBlockStorage

        public ExtendedBlockStorage​(int y,
                                    boolean storeSkylight)
    • Method Detail

      • get

        public IBlockState get​(int x,
                               int y,
                               int z)
      • set

        public void set​(int x,
                        int y,
                        int z,
                        IBlockState state)
      • getBlockByExtId

        public Block getBlockByExtId​(int x,
                                     int y,
                                     int z)
        + Returns the block for a location in a chunk, with the extended ID merged from a byte array and a NibbleArray to form a full 12-bit block ID.
      • getExtBlockMetadata

        public int getExtBlockMetadata​(int x,
                                       int y,
                                       int z)
        + Returns the metadata associated with the block at the given coordinates in this ExtendedBlockStorage.
      • isEmpty

        public boolean isEmpty()
        + Returns whether or not this block storage's Chunk is fully empty, based on its internal reference count.
      • getNeedsRandomTick

        public boolean getNeedsRandomTick()
        + Returns whether or not this block storage's Chunk will require random ticking, used to avoid looping through random block ticks when there are no blocks that would randomly tick.
      • getYLocation

        public int getYLocation()
        + Returns the Y location of this ExtendedBlockStorage.
      • setExtSkylightValue

        public void setExtSkylightValue​(int x,
                                        int y,
                                        int z,
                                        int value)
        + Sets the saved Sky-light value in the extended block storage structure.
      • getExtSkylightValue

        public int getExtSkylightValue​(int x,
                                       int y,
                                       int z)
        + Gets the saved Sky-light value in the extended block storage structure.
      • setExtBlocklightValue

        public void setExtBlocklightValue​(int x,
                                          int y,
                                          int z,
                                          int value)
        + Sets the saved Block-light value in the extended block storage structure.
      • getExtBlocklightValue

        public int getExtBlocklightValue​(int x,
                                         int y,
                                         int z)
        + Gets the saved Block-light value in the extended block storage structure.
      • removeInvalidBlocks

        public void removeInvalidBlocks()
      • getData

        public char[] getData()
      • setData

        public void setData​(char[] dataArray)
      • getBlocklightArray

        public NibbleArray getBlocklightArray()
        + Returns the NibbleArray instance containing Block-light data.
      • getSkylightArray

        public NibbleArray getSkylightArray()
        + Returns the NibbleArray instance containing Sky-light data.
      • setBlocklightArray

        public void setBlocklightArray​(NibbleArray newBlocklightArray)
        + Sets the NibbleArray instance used for Block-light values in this particular storage block.
      • setSkylightArray

        public void setSkylightArray​(NibbleArray newSkylightArray)
        + Sets the NibbleArray instance used for Sky-light values in this particular storage block.