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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user