public final class BlockData extends Object
| Constructor and Description |
|---|
BlockData() |
| Modifier and Type | Method and Description |
|---|---|
static int |
cycle(int type,
int data,
int increment)
Cycle a block's data value.
|
static int |
flip(int type,
int data)
Flip a block's data value.
|
static int |
flip(int type,
int data,
CuboidClipboard.FlipDirection direction)
Flip a block's data value.
|
static int |
nextClothColor(int data)
Returns the data value for the next color of cloth in the rainbow.
|
static int |
prevClothColor(int data)
Returns the data value for the previous ext color of cloth in the rainbow.
|
static int |
rotate90(int type,
int data)
Rotate a block's data value 90 degrees (north->east->south->west->north);
|
static int |
rotate90Reverse(int type,
int data)
Rotate a block's data value -90 degrees (north<-east<-south<-west<-north);
|
public static int rotate90(int type,
int data)
type - data - public static int rotate90Reverse(int type,
int data)
type - data - public static int flip(int type,
int data)
type - data - public static int flip(int type,
int data,
CuboidClipboard.FlipDirection direction)
type - data - direction - public static int cycle(int type,
int data,
int increment)
type - block id to be cycleddata - block data value that it starts atincrement - whether to go forward (1) or backward (-1) in the cyclepublic static int nextClothColor(int data)
data - public static int prevClothColor(int data)
data - Copyright © 2010-2014. All Rights Reserved.