Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-05 11:00:05 +01:00
Added 1.3 stairs and wooden steps to cycle/flip/rotate.
Dieser Commit ist enthalten in:
Ursprung
b07a084b8a
Commit
3497d9e557
@ -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);
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren