Permalink
Browse files

Merge pull request #1 from dan200/master

Back-Merge
  • Loading branch information...
JasonTheKitten committed Oct 11, 2018
2 parents 5d41ae4 + 914df8b commit b638e58842c200cae78373d123a1cf0943b986d7
Showing with 23 additions and 0 deletions.
  1. +23 −0 src/main/java/dan200/computercraft/shared/peripheral/common/BlockPeripheral.java
@@ -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 b638e58

Please sign in to comment.