Suppress some warnings

This commit is contained in:
drcrazy 2023-05-14 02:45:55 +03:00 committed by modmuss
parent 887444db4d
commit 3679b6b91e
4 changed files with 6 additions and 0 deletions

View file

@ -205,6 +205,7 @@ public class CableBlock extends BlockWithEntity implements Waterloggable {
return CableShapeUtil.getShape(state);
}
@SuppressWarnings("deprecation")
@Override
public VoxelShape getCullingShape(BlockState state, BlockView world, BlockPos pos) {
return CableShapeUtil.getShape(state);

View file

@ -122,6 +122,7 @@ public class BlockAlarm extends BaseBlockEntityProvider {
return null;
}
@SuppressWarnings("deprecation")
@Override
public ActionResult onUse(BlockState state, World worldIn, BlockPos pos, PlayerEntity playerIn, Hand hand, BlockHitResult hitResult) {
ItemStack stack = playerIn.getStackInHand(Hand.MAIN_HAND);
@ -147,12 +148,14 @@ public class BlockAlarm extends BaseBlockEntityProvider {
return super.onUse(state, worldIn, pos, playerIn, hand, hitResult);
}
@SuppressWarnings("deprecation")
@Override
public BlockRenderType getRenderType(BlockState state) {
return BlockRenderType.MODEL;
}
@SuppressWarnings("deprecation")
@Override
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext shapeContext) {
return shape[getFacing(state).ordinal()];

View file

@ -81,6 +81,7 @@ public class LSUStorageBlock extends BaseBlockEntityProvider {
}
// Block
@SuppressWarnings("deprecation")
@Override
public ActionResult onUse(BlockState state, World worldIn, BlockPos pos, PlayerEntity playerIn, Hand hand, BlockHitResult hitResult) {
ItemStack stack = playerIn.getStackInHand(Hand.MAIN_HAND);

View file

@ -88,6 +88,7 @@ public abstract class BlockTransformer extends BaseBlockEntityProvider {
builder.add(FACING);
}
@SuppressWarnings("deprecation")
@Override
public ActionResult onUse(BlockState state, World worldIn, BlockPos pos, PlayerEntity playerIn, Hand hand, BlockHitResult hitResult) {
ItemStack stack = playerIn.getStackInHand(Hand.MAIN_HAND);