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:
parent
e909e11e05
commit
9cb7091ce7
@ -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 ) ) );
|
||||
|
@ -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 ) ) );
|
||||
|
@ -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 ) ) );
|
||||
|
@ -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 ) ) );
|
||||
|
@ -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 ) ) );
|
||||
|
@ -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 ) ) );
|
||||
|
@ -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
|
||||
|
@ -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 ) ) );
|
||||
|
Loading…
Reference in New Issue
Block a user