    001package net.minecraft.world.chunk.storage;
    002
    003public 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 l = par1 << this.depthBitsPlusFour | par3 << this.depthBits | par2;
    019        int i1 = l >> 1;
    020        int j1 = l & 1;
    021        return j1 == 0 ? this.data[i1] & 15 : this.data[i1] >> 4 & 15;
    022    }
    023}