Advertisement
Guest User

Untitled

a guest
Jan 18th, 2022
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. @Override public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) {
  2. switch ((EnumFacing) state.getValue(BlockHorizontal.FACING)) {
  3. case SOUTH:
  4. default:
  5. return
  6. new AxisAlignedBB(0, 0.125, 0, 0.9375, 1, 0.8125)
  7. new AxisAlignedBB(0, 0.125, 0, 0.8125, 1, 0.9375)
  8. ;
  9. case NORTH:
  10. return
  11. new AxisAlignedBB(0.0625, 0.125, 0.1875, 1, 1, 1)
  12. new AxisAlignedBB(0.1875, 0.125, 0.0625, 1, 1, 1)
  13. ;
  14. case EAST:
  15. return
  16. new AxisAlignedBB(0, 0.125, 0.0625, 0.8125, 1, 1)
  17. new AxisAlignedBB(0, 0.125, 0.1875, 0.9375, 1, 1)
  18. ;
  19. case WEST:
  20. return
  21. new AxisAlignedBB(0.1875, 0.125, 0, 1, 1, 0.9375)
  22. new AxisAlignedBB(0.0625, 0.125, 0, 1, 1, 0.8125)
  23. ;
  24. }
  25. }
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement