1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-11-11 10:53:03 +00:00

Fix all the deprecated warnings

This commit is contained in:
SquidDev
2017-05-07 01:42:32 +01:00
parent a2fd0b1f7f
commit a3400ecf26
18 changed files with 94 additions and 30 deletions

View File

@@ -92,6 +92,7 @@ public class BlockCable extends BlockPeripheralBase
@Nonnull
@Override
@Deprecated
public IBlockState getStateFromMeta( int meta )
{
IBlockState state = getDefaultState();
@@ -179,6 +180,7 @@ public class BlockCable extends BlockPeripheralBase
@Nonnull
@Override
@Deprecated
public IBlockState getActualState( @Nonnull IBlockState state, IBlockAccess world, BlockPos pos )
{
state = state.withProperty( Properties.NORTH, doesConnect( state, world, pos, EnumFacing.NORTH ) );
@@ -213,6 +215,7 @@ public class BlockCable extends BlockPeripheralBase
}
@Override
@Deprecated
public boolean shouldSideBeRendered( IBlockState state, @Nonnull IBlockAccess world, @Nonnull BlockPos pos, EnumFacing side )
{
return true;

View File

@@ -66,6 +66,7 @@ public class BlockPeripheral extends BlockPeripheralBase
@Nonnull
@Override
@Deprecated
public IBlockState getStateFromMeta( int meta )
{
IBlockState state = getDefaultState();
@@ -169,6 +170,7 @@ public class BlockPeripheral extends BlockPeripheralBase
@Nonnull
@Override
@Deprecated
public IBlockState getActualState( @Nonnull IBlockState state, IBlockAccess world, BlockPos pos )
{
int anim;

View File

@@ -32,12 +32,14 @@ public abstract class BlockPeripheralBase extends BlockDirectional
protected abstract TilePeripheralBase createTile( PeripheralType type );
@Override
@Deprecated
public final boolean isOpaqueCube( IBlockState state )
{
return false;
}
@Override
@Deprecated
public final boolean isFullCube( IBlockState state )
{
return false;

View File

@@ -49,6 +49,7 @@ public class BlockAdvancedModem extends BlockPeripheralBase
@Nonnull
@Override
@Deprecated
public IBlockState getStateFromMeta( int meta )
{
IBlockState state = getDefaultState();
@@ -66,6 +67,7 @@ public class BlockAdvancedModem extends BlockPeripheralBase
@Nonnull
@Override
@Deprecated
public IBlockState getActualState( @Nonnull IBlockState state, IBlockAccess world, BlockPos pos )
{
int anim;