1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-14 20:20:30 +00:00

Fix several deprecated warnings

This commit is contained in:
Jonathan Coates 2022-05-02 16:21:56 +01:00
parent e909e11e05
commit 9cb7091ce7
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06
8 changed files with 15 additions and 1 deletions

View File

@ -54,6 +54,7 @@ public class BlockComputer extends BlockComputerBase<TileComputer>
@Nonnull
@Override
@Deprecated
public BlockState mirror( BlockState state, Mirror mirrorIn )
{
return state.rotate( mirrorIn.getRotation( state.getValue( FACING ) ) );
@ -61,6 +62,7 @@ public class BlockComputer extends BlockComputerBase<TileComputer>
@Nonnull
@Override
@Deprecated
public BlockState rotate( BlockState state, Rotation rot )
{
return state.setValue( FACING, rot.rotate( state.getValue( FACING ) ) );

View File

@ -51,6 +51,7 @@ public class BlockDiskDrive extends BlockGeneric
@Nonnull
@Override
@Deprecated
public BlockState mirror( BlockState state, Mirror mirrorIn )
{
return state.rotate( mirrorIn.getRotation( state.getValue( FACING ) ) );
@ -58,6 +59,7 @@ public class BlockDiskDrive extends BlockGeneric
@Nonnull
@Override
@Deprecated
public BlockState rotate( BlockState state, Rotation rot )
{
return state.setValue( FACING, rot.rotate( state.getValue( FACING ) ) );

View File

@ -99,6 +99,7 @@ public class BlockWirelessModem extends BlockGeneric implements IWaterLoggable
@Nonnull
@Override
@Deprecated
public BlockState mirror( BlockState state, Mirror mirrorIn )
{
return state.rotate( mirrorIn.getRotation( state.getValue( FACING ) ) );
@ -106,6 +107,7 @@ public class BlockWirelessModem extends BlockGeneric implements IWaterLoggable
@Nonnull
@Override
@Deprecated
public BlockState rotate( BlockState state, Rotation rot )
{
return state.setValue( FACING, rot.rotate( state.getValue( FACING ) ) );

View File

@ -55,6 +55,7 @@ public class BlockMonitor extends BlockGeneric
@Nonnull
@Override
@Deprecated
public BlockState mirror( BlockState state, Mirror mirrorIn )
{
return state.rotate( mirrorIn.getRotation( state.getValue( FACING ) ) );
@ -62,6 +63,7 @@ public class BlockMonitor extends BlockGeneric
@Nonnull
@Override
@Deprecated
public BlockState rotate( BlockState state, Rotation rot )
{
return state.setValue( FACING, rot.rotate( state.getValue( FACING ) ) );

View File

@ -52,6 +52,7 @@ public class BlockPrinter extends BlockGeneric
@Nonnull
@Override
@Deprecated
public BlockState mirror( BlockState state, Mirror mirrorIn )
{
return state.rotate( mirrorIn.getRotation( state.getValue( FACING ) ) );
@ -59,6 +60,7 @@ public class BlockPrinter extends BlockGeneric
@Nonnull
@Override
@Deprecated
public BlockState rotate( BlockState state, Rotation rot )
{
return state.setValue( FACING, rot.rotate( state.getValue( FACING ) ) );

View File

@ -39,6 +39,7 @@ public class BlockSpeaker extends BlockGeneric
@Nonnull
@Override
@Deprecated
public BlockState mirror( BlockState state, Mirror mirrorIn )
{
return state.rotate( mirrorIn.getRotation( state.getValue( FACING ) ) );
@ -46,6 +47,7 @@ public class BlockSpeaker extends BlockGeneric
@Nonnull
@Override
@Deprecated
public BlockState rotate( BlockState state, Rotation rot )
{
return state.setValue( FACING, rot.rotate( state.getValue( FACING ) ) );

View File

@ -52,7 +52,7 @@ public final class FurnaceRefuelHandler implements TurtleRefuelEvent.Handler
private static int getFuelPerItem( @Nonnull ItemStack stack )
{
return (ForgeHooks.getBurnTime( stack ) * 5) / 100;
return (ForgeHooks.getBurnTime( stack, null ) * 5) / 100;
}
@SubscribeEvent

View File

@ -75,6 +75,7 @@ public class BlockTurtle extends BlockComputerBase<TileTurtle> implements IWater
@Nonnull
@Override
@Deprecated
public BlockState mirror( BlockState state, Mirror mirrorIn )
{
return state.rotate( mirrorIn.getRotation( state.getValue( FACING ) ) );
@ -82,6 +83,7 @@ public class BlockTurtle extends BlockComputerBase<TileTurtle> implements IWater
@Nonnull
@Override
@Deprecated
public BlockState rotate( BlockState state, Rotation rot )
{
return state.setValue( FACING, rot.rotate( state.getValue( FACING ) ) );