Code cleanup
This commit is contained in:
parent
5097b4e166
commit
0cda9ccdc1
4 changed files with 8 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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)) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue