Advertisement
Guest User

Untitled

a guest
Dec 17th, 2015
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. @Override
  2. public void setBlockBoundsBasedOnState(IBlockAccess acc, BlockPos pos){
  3. EnumFacing facing = acc.getBlockState(pos).getValue(FACING);
  4.  
  5. if(facing == EnumFacing.EAST){
  6. setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 0.5F);
  7. }else{
  8. setBlockBounds(0.0F, 0.0F, 0.5F, 1.0F, 1.0F, 1.0F);
  9. }
  10. /*final int meta = getMetaFromState(acc.getBlockState(pos));
  11. if(meta == 3){
  12. setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 0.5F);
  13. }else if(meta == 5){
  14. setBlockBounds(0.0F, 0.0F, 0.0F, 0.5F, 1.0F, 1.0F);
  15. }else if(meta == 4){
  16. setBlockBounds(0.5F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
  17. }else{
  18. setBlockBounds(0.0F, 0.0F, 0.5F, 1.0F, 1.0F, 1.0F);
  19. }
  20. */
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement