pick 97420a31d The big reformat of 2020
This commit is contained in:
@@ -18,28 +18,22 @@
|
||||
|
||||
package appeng.util;
|
||||
|
||||
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class BlockUpdate implements IWorldCallable<Boolean> {
|
||||
private final BlockPos pos;
|
||||
|
||||
public class BlockUpdate implements IWorldCallable<Boolean>
|
||||
{
|
||||
private final BlockPos pos;
|
||||
BlockUpdate(final BlockPos pos) {
|
||||
this.pos = pos;
|
||||
}
|
||||
|
||||
BlockUpdate( final BlockPos pos )
|
||||
{
|
||||
this.pos = pos;
|
||||
}
|
||||
@Override
|
||||
public Boolean call(final World world) throws Exception {
|
||||
if (world.isBlockLoaded(this.pos)) {
|
||||
world.notifyNeighborsOfStateChange(this.pos, Platform.AIR_BLOCK);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean call( final World world ) throws Exception
|
||||
{
|
||||
if( world.isBlockLoaded( this.pos ) )
|
||||
{
|
||||
world.notifyNeighborsOfStateChange( this.pos, Platform.AIR_BLOCK );
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user