Whitespace + general cleanup
This commit is contained in:
@@ -10,7 +10,7 @@ public class Torch extends SimpleAttachableMaterialData {
|
||||
public Torch() {
|
||||
super(Material.TORCH);
|
||||
}
|
||||
|
||||
|
||||
public Torch(final int type) {
|
||||
super(type);
|
||||
}
|
||||
@@ -29,7 +29,7 @@ public class Torch extends SimpleAttachableMaterialData {
|
||||
|
||||
/**
|
||||
* Gets the face that this block is attached on
|
||||
*
|
||||
*
|
||||
* @return BlockFace attached to
|
||||
*/
|
||||
public BlockFace getAttachedFace() {
|
||||
@@ -38,12 +38,16 @@ public class Torch extends SimpleAttachableMaterialData {
|
||||
switch (data) {
|
||||
case 0x1:
|
||||
return BlockFace.NORTH;
|
||||
|
||||
case 0x2:
|
||||
return BlockFace.SOUTH;
|
||||
|
||||
case 0x3:
|
||||
return BlockFace.EAST;
|
||||
|
||||
case 0x4:
|
||||
return BlockFace.WEST;
|
||||
|
||||
case 0x5:
|
||||
return BlockFace.DOWN;
|
||||
}
|
||||
@@ -53,19 +57,24 @@ public class Torch extends SimpleAttachableMaterialData {
|
||||
|
||||
public void setFacingDirection(BlockFace face) {
|
||||
byte data;
|
||||
|
||||
switch (face) {
|
||||
case SOUTH:
|
||||
data = 0x1;
|
||||
break;
|
||||
|
||||
case NORTH:
|
||||
data = 0x2;
|
||||
break;
|
||||
|
||||
case WEST:
|
||||
data = 0x3;
|
||||
break;
|
||||
|
||||
case EAST:
|
||||
data = 0x4;
|
||||
break;
|
||||
|
||||
case UP:
|
||||
default:
|
||||
data = 0x5;
|
||||
|
||||
Reference in New Issue
Block a user