    001    package net.minecraft.world.chunk.storage;
    002
    003    public class NibbleArrayReader
    004    {
    005        public final byte[] data;
    006        private final int depthBits;
    007        private final int depthBitsPlusFour;
    008
    009        public NibbleArrayReader(byte[] par1ArrayOfByte, int par2)
    010        {
    011            this.data = par1ArrayOfByte;
    012            this.depthBits = par2;
    013            this.depthBitsPlusFour = par2 + 4;
    014        }
    015
    016        public int get(int par1, int par2, int par3)
    017        {
    018            int var4 = par1 << this.depthBitsPlusFour | par3 << this.depthBits | par2;
    019            int var5 = var4 >> 1;
    020            int var6 = var4 & 1;
    021            return var6 == 0 ? this.data[var5] & 15 : this.data[var5] >> 4 & 15;
    022        }
    023    }