Suppress some warnings
This commit is contained in:
parent
887444db4d
commit
3679b6b91e
4 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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()];
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue