Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/dan200/ComputerCraft into…
Browse files Browse the repository at this point in the history
… feature/computer-upgrade
  • Loading branch information
SquidDev committed Mar 15, 2018
2 parents bb2eab0 + 914df8b commit 27ceceb
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -631,11 +631,34 @@ public final boolean isFullCube( IBlockState state )
return isOpaqueCube( state );
}

@Override
@Deprecated
public boolean isFullBlock( IBlockState state )
{
return isOpaqueCube( state );
}

@Nonnull
@Override
@Deprecated
public BlockFaceShape getBlockFaceShape( IBlockAccess world, IBlockState state, BlockPos pos, EnumFacing side )
{
return isOpaqueCube( state ) ? BlockFaceShape.SOLID : BlockFaceShape.UNDEFINED;
}

@Override
@Deprecated
public boolean causesSuffocation(IBlockState state)
{
// This normally uses the default state
return blockMaterial.blocksMovement() && state.isOpaqueCube();
}

@Override
@Deprecated
public int getLightOpacity( IBlockState state )
{
// This normally uses the default state
return isOpaqueCube( state ) ? 255 : 0;
}
}

0 comments on commit 27ceceb

Please sign in to comment.