From 311ab89f93558233a40079f7cb16605b141b5346 Mon Sep 17 00:00:00 2001 From: Johann Bernhardt Date: Sun, 12 Dec 2021 19:38:06 +0100 Subject: Move sources and resources --- .../gtPlusPlus/everglades/object/BoxedQuad.java | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 src/main/java/gtPlusPlus/everglades/object/BoxedQuad.java (limited to 'src/main/java/gtPlusPlus/everglades/object') diff --git a/src/main/java/gtPlusPlus/everglades/object/BoxedQuad.java b/src/main/java/gtPlusPlus/everglades/object/BoxedQuad.java new file mode 100644 index 0000000000..d0fbc4247b --- /dev/null +++ b/src/main/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