Created
September 12, 2015 18:00
-
-
Save StillManic/5c5500b5e0be7d56bf0d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//let j = 2, k = 3, and s = "D DD T" | |
for (int i1 = 0; i1 < j * k; i1++) { | |
char c0 = s.charAt(i1); | |
if (c0 == '?') dummyChar = c0; | |
if (map.containsKey(Character.valueOf(c0))) { | |
if (map.get(Character.valueOf(c0)) instanceof Block) { | |
block = (Block) map.get(Character.valueOf(c0)); | |
if (block != null && Block.isEqualTo(block, this.master) && c0 == masterChar && c0 != dummyChar) { | |
this.masterLocation.x = i1 % j; | |
this.masterLocation.y = this.dimensions.y - 1; | |
this.masterLocation.z = i1 / k; | |
} | |
} | |
entries[i1] = c0 == dummyChar ? null : (map.get(Character.valueOf(c0)) instanceof Block ? (Block) map.get(Character.valueOf(c0)) : (MultiBlockAlias) map.get(Character.valueOf(c0))); | |
} else entries[i1] = Blocks.air; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment