From bf6713f0d1669e400b4545b173c18a3b66cad113 Mon Sep 17 00:00:00 2001 From: Jordan Byrne Date: Wed, 14 Mar 2018 04:40:57 +1000 Subject: % Refactored all Everglades stuff to it's own package. $ Fixed inverted EIO tooltip logic. --- .../gtPlusPlus/everglades/object/BoxedQuad.java | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 src/Java/gtPlusPlus/everglades/object/BoxedQuad.java (limited to 'src/Java/gtPlusPlus/everglades/object') diff --git a/src/Java/gtPlusPlus/everglades/object/BoxedQuad.java b/src/Java/gtPlusPlus/everglades/object/BoxedQuad.java new file mode 100644 index 0000000000..d0fbc4247b --- /dev/null +++ b/src/Java/gtPlusPlus/everglades/object/BoxedQuad.java @@ -0,0 +1,56 @@ +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(); + } + + + + + +} \ No newline at end of file -- cgit