Code cleanup

This commit is contained in:
Unknown 2018-10-19 03:41:04 +02:00
parent 5097b4e166
commit 0cda9ccdc1
4 changed files with 8 additions and 3 deletions

View file

@ -174,6 +174,11 @@ public abstract class BlockAbstractContainer extends BlockContainer implements I
return super.rotateBlock(world, blockPos, axis);
}
// Triggers on server side when placing a comparator compatible block
// May trigger twice for the same placement action (placing a vanilla chest)
// Triggers on server side when removing a comparator compatible block
// Triggers on both sides when removing a TileEntity
// (by extension, it'll trigger twice for the same removal of a TileEntity with comparator output)
@Override
public void onNeighborChange(final IBlockAccess blockAccess, final BlockPos blockPos, final BlockPos blockPosNeighbor) {
super.onNeighborChange(blockAccess, blockPos, blockPosNeighbor);

View file

@ -57,7 +57,7 @@ public class BlockEnanReactorCore extends BlockAbstractContainer {
}
@Override
public void breakBlock(World world, @Nonnull BlockPos blockPos, @Nonnull IBlockState blockState) {
public void breakBlock(final World world, @Nonnull final BlockPos blockPos, @Nonnull final IBlockState blockState) {
super.breakBlock(world, blockPos, blockState);
for (final EnumReactorFace reactorFace : EnumReactorFace.getLasers(enumTier)) {

View file

@ -134,7 +134,7 @@ public class TileEntityTransporterBeacon extends TileEntityAbstractEnergyConsume
// Common OC/CC methods
@Override
public void setIsEnabled(boolean isEnabled) {
public void setIsEnabled(final boolean isEnabled) {
super.setIsEnabled(isEnabled);
// enabling up => redeploy
if (isEnabled) {

View file

@ -1566,7 +1566,7 @@ public class TileEntityTransporterCore extends TileEntityAbstractEnergyConsumer
}
@Override
public void setIsEnabled(boolean isEnabled) {
public void setIsEnabled(final boolean isEnabled) {
super.setIsEnabled(isEnabled);
if (isEnabled) {
markDirty();