Skip to content

Commit 114d94b

Browse files
committed
Fix access levels of various methods that are now protected instead of public
1 parent db42748 commit 114d94b

File tree

15 files changed

+16
-16
lines changed

15 files changed

+16
-16
lines changed

src/additions/java/mekanism/additions/common/block/plastic/BlockPlasticTransparent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected boolean useShapeForLightOcclusion(@NotNull BlockState state) {
3333
}
3434

3535
@Override
36-
public boolean propagatesSkylightDown(@NotNull BlockState state, @NotNull BlockGetter reader, @NotNull BlockPos pos) {
36+
protected boolean propagatesSkylightDown(@NotNull BlockState state, @NotNull BlockGetter reader, @NotNull BlockPos pos) {
3737
return true;
3838
}
3939

src/additions/java/mekanism/additions/common/block/plastic/BlockPlasticTransparentSlab.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ protected boolean useShapeForLightOcclusion(@NotNull BlockState state) {
2828
}
2929

3030
@Override
31-
public boolean propagatesSkylightDown(@NotNull BlockState state, @NotNull BlockGetter reader, @NotNull BlockPos pos) {
31+
protected boolean propagatesSkylightDown(@NotNull BlockState state, @NotNull BlockGetter reader, @NotNull BlockPos pos) {
3232
return true;
3333
}
3434

src/additions/java/mekanism/additions/common/block/plastic/BlockPlasticTransparentStairs.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ protected boolean useShapeForLightOcclusion(@NotNull BlockState state) {
2929
}
3030

3131
@Override
32-
public boolean propagatesSkylightDown(@NotNull BlockState state, @NotNull BlockGetter reader, @NotNull BlockPos pos) {
32+
protected boolean propagatesSkylightDown(@NotNull BlockState state, @NotNull BlockGetter reader, @NotNull BlockPos pos) {
3333
return true;
3434
}
3535

src/generators/java/mekanism/generators/common/block/fusion/BlockLaserFocusMatrix.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protected float getShadeBrightness(@NotNull BlockState state, @NotNull BlockGett
4848
}
4949

5050
@Override
51-
public boolean propagatesSkylightDown(@NotNull BlockState state, @NotNull BlockGetter reader, @NotNull BlockPos pos) {
51+
protected boolean propagatesSkylightDown(@NotNull BlockState state, @NotNull BlockGetter reader, @NotNull BlockPos pos) {
5252
return true;
5353
}
5454

src/generators/java/mekanism/generators/common/block/turbine/BlockTurbineRotor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public BlockTurbineRotor() {
2727

2828
@NotNull
2929
@Override
30-
public ItemInteractionResult useItemOn(@NotNull ItemStack stack, @NotNull BlockState state, @NotNull Level world, @NotNull BlockPos pos, @NotNull Player player,
30+
protected ItemInteractionResult useItemOn(@NotNull ItemStack stack, @NotNull BlockState state, @NotNull Level world, @NotNull BlockPos pos, @NotNull Player player,
3131
@NotNull InteractionHand hand, @NotNull BlockHitResult hit) {
3232
TileEntityTurbineRotor tile = WorldUtils.getTileEntity(TileEntityTurbineRotor.class, world, pos);
3333
if (tile == null) {

src/main/java/mekanism/common/block/BlockBounding.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ protected boolean canBeReplaced(@NotNull BlockState state, @NotNull Fluid fluid)
9292

9393
@NotNull
9494
@Override
95-
public InteractionResult useWithoutItem(@NotNull BlockState state, @NotNull Level world, @NotNull BlockPos pos, @NotNull Player player, @NotNull BlockHitResult hit) {
95+
protected InteractionResult useWithoutItem(@NotNull BlockState state, @NotNull Level world, @NotNull BlockPos pos, @NotNull Player player, @NotNull BlockHitResult hit) {
9696
BlockPos mainPos = getMainBlockPos(world, pos);
9797
if (mainPos == null) {
9898
return InteractionResult.FAIL;
@@ -104,7 +104,7 @@ public InteractionResult useWithoutItem(@NotNull BlockState state, @NotNull Leve
104104

105105
@NotNull
106106
@Override
107-
public ItemInteractionResult useItemOn(@NotNull ItemStack stack, @NotNull BlockState state, @NotNull Level world, @NotNull BlockPos pos, @NotNull Player player,
107+
protected ItemInteractionResult useItemOn(@NotNull ItemStack stack, @NotNull BlockState state, @NotNull Level world, @NotNull BlockPos pos, @NotNull Player player,
108108
@NotNull InteractionHand hand, @NotNull BlockHitResult hit) {
109109
BlockPos mainPos = getMainBlockPos(world, pos);
110110
if (mainPos == null) {

src/main/java/mekanism/common/block/BlockRadioactiveWasteBarrel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public BlockRadioactiveWasteBarrel() {
2727

2828
@NotNull
2929
@Override
30-
public InteractionResult useWithoutItem(@NotNull BlockState state, @NotNull Level world, @NotNull BlockPos pos, @NotNull Player player, @NotNull BlockHitResult hit) {
30+
protected InteractionResult useWithoutItem(@NotNull BlockState state, @NotNull Level world, @NotNull BlockPos pos, @NotNull Player player, @NotNull BlockHitResult hit) {
3131
if (!player.isShiftKeyDown()) {
3232
return InteractionResult.PASS;
3333
}

src/main/java/mekanism/common/block/basic/BlockBin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ protected void attack(@NotNull BlockState state, @NotNull Level world, @NotNull
7272

7373
@NotNull
7474
@Override
75-
public ItemInteractionResult useItemOn(@NotNull ItemStack stack, @NotNull BlockState state, @NotNull Level world, @NotNull BlockPos pos, @NotNull Player player,
75+
protected ItemInteractionResult useItemOn(@NotNull ItemStack stack, @NotNull BlockState state, @NotNull Level world, @NotNull BlockPos pos, @NotNull Player player,
7676
@NotNull InteractionHand hand, @NotNull BlockHitResult hit) {
7777
if (stack.isEmpty()) {
7878
return ItemInteractionResult.PASS_TO_DEFAULT_BLOCK_INTERACTION;

src/main/java/mekanism/common/block/basic/BlockFluidTank.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public int getLightEmission(BlockState state, BlockGetter world, BlockPos pos) {
4545

4646
@NotNull
4747
@Override
48-
public ItemInteractionResult useItemOn(@NotNull ItemStack stack, @NotNull BlockState state, @NotNull Level world, @NotNull BlockPos pos, @NotNull Player player,
48+
protected ItemInteractionResult useItemOn(@NotNull ItemStack stack, @NotNull BlockState state, @NotNull Level world, @NotNull BlockPos pos, @NotNull Player player,
4949
@NotNull InteractionHand hand, @NotNull BlockHitResult hit) {
5050
if (stack.isEmpty()) {
5151
return ItemInteractionResult.PASS_TO_DEFAULT_BLOCK_INTERACTION;

src/main/java/mekanism/common/block/basic/BlockLogisticalSorter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public BlockState getStateForPlacement(@NotNull BlockPlaceContext context) {
6060

6161
@NotNull
6262
@Override
63-
public ItemInteractionResult useItemOn(@NotNull ItemStack stack, @NotNull BlockState state, @NotNull Level world, @NotNull BlockPos pos, @NotNull Player player,
63+
protected ItemInteractionResult useItemOn(@NotNull ItemStack stack, @NotNull BlockState state, @NotNull Level world, @NotNull BlockPos pos, @NotNull Player player,
6464
@NotNull InteractionHand hand, @NotNull BlockHitResult hit) {
6565
if (stack.isEmpty()) {
6666
return ItemInteractionResult.PASS_TO_DEFAULT_BLOCK_INTERACTION;

0 commit comments

Comments
 (0)