From 3497d9e557281012136f78caf8c9041bd98b8bfd Mon Sep 17 00:00:00 2001 From: TomyLobo Date: Mon, 13 Aug 2012 23:23:50 +0200 Subject: [PATCH] Added 1.3 stairs and wooden steps to cycle/flip/rotate. --- .../com/sk89q/worldedit/blocks/BlockData.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/main/java/com/sk89q/worldedit/blocks/BlockData.java b/src/main/java/com/sk89q/worldedit/blocks/BlockData.java index 56cdbaef1..a98c77e28 100644 --- a/src/main/java/com/sk89q/worldedit/blocks/BlockData.java +++ b/src/main/java/com/sk89q/worldedit/blocks/BlockData.java @@ -73,6 +73,10 @@ public final class BlockData { case BlockID.BRICK_STAIRS: case BlockID.STONE_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) { case 0: return 2; case 1: return 3; @@ -237,6 +241,10 @@ public final class BlockData { case BlockID.BRICK_STAIRS: case BlockID.STONE_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) { case 2: return 0; case 3: return 1; @@ -430,6 +438,7 @@ public final class BlockData { break; case BlockID.STEP: + case BlockID.WOODEN_STEP: return data ^ (flipY << 3); case BlockID.WOODEN_STAIRS: @@ -437,6 +446,10 @@ public final class BlockData { case BlockID.BRICK_STAIRS: case BlockID.STONE_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; switch (data) { case 0: @@ -628,6 +641,10 @@ public final class BlockData { case BlockID.BRICK_STAIRS: case BlockID.STONE_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; return mod((data + increment), 8); @@ -635,6 +652,8 @@ public final class BlockData { case BlockID.JACKOLANTERN: case BlockID.NETHER_WART: case BlockID.CAULDRON: + case BlockID.WOODEN_STEP: + case BlockID.DOUBLE_WOODEN_STEP: if (data > 3) return -1; return mod((data + increment), 4);