remove block metadata
This commit is contained in:
parent
a1a15dcdf6
commit
6ef8caddbe
7 changed files with 373 additions and 438 deletions
|
@ -113,30 +113,30 @@ public class BlockLever extends Block
|
|||
}
|
||||
}
|
||||
|
||||
public static int getMetadataForFacing(Facing facing)
|
||||
public static EnumOrientation getMetadataForFacing(Facing facing)
|
||||
{
|
||||
switch (facing)
|
||||
{
|
||||
case DOWN:
|
||||
return 0;
|
||||
return EnumOrientation.DOWN_X;
|
||||
|
||||
case UP:
|
||||
return 5;
|
||||
return EnumOrientation.UP_Z;
|
||||
|
||||
case NORTH:
|
||||
return 4;
|
||||
return EnumOrientation.NORTH;
|
||||
|
||||
case SOUTH:
|
||||
return 3;
|
||||
return EnumOrientation.SOUTH;
|
||||
|
||||
case WEST:
|
||||
return 2;
|
||||
return EnumOrientation.WEST;
|
||||
|
||||
case EAST:
|
||||
return 1;
|
||||
return EnumOrientation.EAST;
|
||||
|
||||
default:
|
||||
return -1;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue