Added 1.3 stairs and wooden steps to cycle/flip/rotate.

Dieser Commit ist enthalten in:
TomyLobo 2012-08-13 23:23:50 +02:00
Ursprung b07a084b8a
Commit 3497d9e557

Datei anzeigen

@ -73,6 +73,10 @@ public final class BlockData {
case BlockID.BRICK_STAIRS: case BlockID.BRICK_STAIRS:
case BlockID.STONE_BRICK_STAIRS: case BlockID.STONE_BRICK_STAIRS:
case BlockID.NETHER_BRICK_STAIRS: case BlockID.NETHER_BRICK_STAIRS:
case BlockID.SANDSTONE_STAIRS:
case BlockID.SPRUCE_WOOD_STAIRS:
case BlockID.BIRCH_WOOD_STAIRS:
case BlockID.JUNGLE_WOOD_STAIRS:
switch (data) { switch (data) {
case 0: return 2; case 0: return 2;
case 1: return 3; case 1: return 3;
@ -237,6 +241,10 @@ public final class BlockData {
case BlockID.BRICK_STAIRS: case BlockID.BRICK_STAIRS:
case BlockID.STONE_BRICK_STAIRS: case BlockID.STONE_BRICK_STAIRS:
case BlockID.NETHER_BRICK_STAIRS: case BlockID.NETHER_BRICK_STAIRS:
case BlockID.SANDSTONE_STAIRS:
case BlockID.SPRUCE_WOOD_STAIRS:
case BlockID.BIRCH_WOOD_STAIRS:
case BlockID.JUNGLE_WOOD_STAIRS:
switch (data) { switch (data) {
case 2: return 0; case 2: return 0;
case 3: return 1; case 3: return 1;
@ -430,6 +438,7 @@ public final class BlockData {
break; break;
case BlockID.STEP: case BlockID.STEP:
case BlockID.WOODEN_STEP:
return data ^ (flipY << 3); return data ^ (flipY << 3);
case BlockID.WOODEN_STAIRS: case BlockID.WOODEN_STAIRS:
@ -437,6 +446,10 @@ public final class BlockData {
case BlockID.BRICK_STAIRS: case BlockID.BRICK_STAIRS:
case BlockID.STONE_BRICK_STAIRS: case BlockID.STONE_BRICK_STAIRS:
case BlockID.NETHER_BRICK_STAIRS: case BlockID.NETHER_BRICK_STAIRS:
case BlockID.SANDSTONE_STAIRS:
case BlockID.SPRUCE_WOOD_STAIRS:
case BlockID.BIRCH_WOOD_STAIRS:
case BlockID.JUNGLE_WOOD_STAIRS:
data ^= flipY << 2; data ^= flipY << 2;
switch (data) { switch (data) {
case 0: case 0:
@ -628,6 +641,10 @@ public final class BlockData {
case BlockID.BRICK_STAIRS: case BlockID.BRICK_STAIRS:
case BlockID.STONE_BRICK_STAIRS: case BlockID.STONE_BRICK_STAIRS:
case BlockID.NETHER_BRICK_STAIRS: case BlockID.NETHER_BRICK_STAIRS:
case BlockID.SANDSTONE_STAIRS:
case BlockID.SPRUCE_WOOD_STAIRS:
case BlockID.BIRCH_WOOD_STAIRS:
case BlockID.JUNGLE_WOOD_STAIRS:
if (data > 7) return -1; if (data > 7) return -1;
return mod((data + increment), 8); return mod((data + increment), 8);
@ -635,6 +652,8 @@ public final class BlockData {
case BlockID.JACKOLANTERN: case BlockID.JACKOLANTERN:
case BlockID.NETHER_WART: case BlockID.NETHER_WART:
case BlockID.CAULDRON: case BlockID.CAULDRON:
case BlockID.WOODEN_STEP:
case BlockID.DOUBLE_WOODEN_STEP:
if (data > 3) return -1; if (data > 3) return -1;
return mod((data + increment), 4); return mod((data + increment), 4);