Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void setBlockBoundsBasedOnState(IBlockAccess acc, BlockPos pos){
- EnumFacing facing = acc.getBlockState(pos).getValue(FACING);
- if(facing == EnumFacing.EAST){
- setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 0.5F);
- }else{
- setBlockBounds(0.0F, 0.0F, 0.5F, 1.0F, 1.0F, 1.0F);
- }
- /*final int meta = getMetaFromState(acc.getBlockState(pos));
- if(meta == 3){
- setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 0.5F);
- }else if(meta == 5){
- setBlockBounds(0.0F, 0.0F, 0.0F, 0.5F, 1.0F, 1.0F);
- }else if(meta == 4){
- setBlockBounds(0.5F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
- }else{
- setBlockBounds(0.0F, 0.0F, 0.5F, 1.0F, 1.0F, 1.0F);
- }
- */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement