diff --git a/src/main/java/dan200/computercraft/shared/peripheral/common/BlockPeripheral.java b/src/main/java/dan200/computercraft/shared/peripheral/common/BlockPeripheral.java index 34ff51ee51..9f77cd5cf8 100644 --- a/src/main/java/dan200/computercraft/shared/peripheral/common/BlockPeripheral.java +++ b/src/main/java/dan200/computercraft/shared/peripheral/common/BlockPeripheral.java @@ -631,6 +631,13 @@ public final boolean isFullCube( IBlockState state ) return isOpaqueCube( state ); } + @Override + @Deprecated + public boolean isFullBlock( IBlockState state ) + { + return isOpaqueCube( state ); + } + @Nonnull @Override @Deprecated @@ -638,4 +645,20 @@ public BlockFaceShape getBlockFaceShape( IBlockAccess world, IBlockState state, { 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; + } }