Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum BrushTileType{
- ROCK,
- WALL,
- SKY,
- ROCK_BACK,
- WALL_BACK;
- public BrushTileType next() {
- if (ordinal() == values().length-1){
- return values()[0];
- }
- return values()[ordinal() + 1];
- }
- public BrushTileType previous() {
- if (ordinal() == 0){
- return values()[values().length-1];
- }
- return values()[ordinal() - 1];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement