Basic reformat, hit once, hope never again
This commit is contained in:
@@ -18,17 +18,32 @@
|
||||
|
||||
package appeng.spatial;
|
||||
|
||||
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.chunk.Chunk;
|
||||
|
||||
import appeng.api.movable.IMovableHandler;
|
||||
|
||||
|
||||
public class DefaultSpatialHandler implements IMovableHandler
|
||||
{
|
||||
|
||||
/**
|
||||
* never called for the default.
|
||||
*
|
||||
* @param tile tile entity
|
||||
*
|
||||
* @return true
|
||||
*/
|
||||
@Override
|
||||
public void moveTile(TileEntity te, World w, int x, int y, int z)
|
||||
public boolean canHandle( Class<? extends TileEntity> myClass, TileEntity tile )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void moveTile( TileEntity te, World w, int x, int y, int z )
|
||||
{
|
||||
|
||||
te.setWorldObj( w );
|
||||
@@ -40,23 +55,10 @@ public class DefaultSpatialHandler implements IMovableHandler
|
||||
c.func_150812_a( x & 0xF, y, z & 0xF, te );
|
||||
// c.setChunkBlockTileEntity( x & 0xF, y, z & 0xF, te );
|
||||
|
||||
if ( c.isChunkLoaded )
|
||||
if( c.isChunkLoaded )
|
||||
{
|
||||
w.addTileEntity( te );
|
||||
w.markBlockForUpdate( x, y, z );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* never called for the default.
|
||||
*
|
||||
* @param tile tile entity
|
||||
* @return true
|
||||
*/
|
||||
@Override
|
||||
public boolean canHandle(Class<? extends TileEntity> myClass, TileEntity tile)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user