Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) {
- switch ((EnumFacing) state.getValue(BlockHorizontal.FACING)) {
- case SOUTH:
- default:
- return
- new AxisAlignedBB(0, 0.125, 0, 0.9375, 1, 0.8125)
- new AxisAlignedBB(0, 0.125, 0, 0.8125, 1, 0.9375)
- ;
- case NORTH:
- return
- new AxisAlignedBB(0.0625, 0.125, 0.1875, 1, 1, 1)
- new AxisAlignedBB(0.1875, 0.125, 0.0625, 1, 1, 1)
- ;
- case EAST:
- return
- new AxisAlignedBB(0, 0.125, 0.0625, 0.8125, 1, 1)
- new AxisAlignedBB(0, 0.125, 0.1875, 0.9375, 1, 1)
- ;
- case WEST:
- return
- new AxisAlignedBB(0.1875, 0.125, 0, 1, 1, 0.9375)
- new AxisAlignedBB(0.0625, 0.125, 0, 1, 1, 0.8125)
- ;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement