Skip to content

Commit

Permalink
Merge pull request #1 from dan200/master
Browse files Browse the repository at this point in the history
Back-Merge
  • Loading branch information
EveryOS committed Oct 11, 2018
2 parents 5d41ae4 + 914df8b commit b638e58
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 b638e58

Please sign in to comment.