package gtPlusPlus.everglades.object; import net.minecraft.block.Block; import gtPlusPlus.api.objects.data.Pair; public class BoxedQuad { private final Pair key; private final Pair value; private final Pair value2; private final Pair value3; private final Pair [] mInternalPairArray; public BoxedQuad(final Pair key, final Pair value, final Pair value2, final Pair value3){ this.key = key; this.value = value; this.value2 = value2; this.value3 = value3; mInternalPairArray = new Pair[]{key, value, value2, value3}; } final public Pair getKey(){ return this.key; } final public Pair getValue_1(){ return this.value; } final public Pair getValue_2(){ return this.value2; } final public Pair getValue_3(){ return this.value3; } final synchronized Pair unbox(int pos){ return this.mInternalPairArray[pos]; } final synchronized Block getBlock(int pos){ return this.mInternalPairArray[pos].getKey(); } final synchronized int getMeta(int pos){ return this.mInternalPairArray[pos].getValue(); } }