Advertisement
Guest User

Untitled

a guest
Jul 31st, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. @Override
  2. public void setBlockBoundsBasedOnState(IBlockAccess world, int i, int j, int k) {
  3. int metadata = world.getBlockMetadata(i, j, k);
  4.  
  5. switch(metadata) {
  6. case 0: setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 2.0F, 1.0F);
  7. case 1: setBlockBounds(0.0F, -1.0F, 0.0F, 1.0F, 1.0F, 1.0F);
  8. default: setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
  9. }
  10. super.setBlockBoundsBasedOnState(world, i, j, k);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement