- Added proper block flipping code for all blocks with proper rotation code except sign posts

- Fixed block rotation code for some blocks and cleaned it up a lot
- Added block rotation code for powered rails and detector rails
- //flip now flips all blocks, not just half of them
This commit is contained in:
TomyLobo
2011-08-26 12:41:31 +02:00
parent 2281684f20
commit 8e84e7ae18
3 changed files with 390 additions and 192 deletions

View File

@ -19,6 +19,7 @@
package com.sk89q.worldedit.blocks;
import com.sk89q.worldedit.CuboidClipboard.FlipDirection;
import com.sk89q.worldedit.data.BlockData;
/**
@ -109,8 +110,9 @@ public class BaseBlock {
/**
* Flip this block.
* @param direction
*/
public void flip() {
data = (char)BlockData.flip(type, data);
public void flip(FlipDirection direction) {
data = (char)BlockData.flip(type, data, direction);
}
}