pick 97420a31d The big reformat of 2020

This commit is contained in:
yueh
2020-06-16 21:41:28 +02:00
parent 5304b3febe
commit 5225ea426b
2252 changed files with 95466 additions and 118582 deletions
@@ -23,50 +23,46 @@
package appeng.api.movable;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
public interface IMovableHandler {
public interface IMovableHandler
{
/**
* if you return true from this, your saying you can handle the class, not that
* single entity, you cannot opt out of single entities.
*
* @param myClass tile entity class
* @param tile tile entity
*
* @return true if it can handle moving
*/
boolean canHandle(Class<? extends TileEntity> myClass, TileEntity tile);
/**
* if you return true from this, your saying you can handle the class, not
* that single entity, you cannot opt out of single entities.
*
* @param myClass tile entity class
* @param tile tile entity
*
* @return true if it can handle moving
*/
boolean canHandle( Class<? extends TileEntity> myClass, TileEntity tile );
/**
* request that the handler move the the tile from its current location to
* the new one. the tile has already been invalidated, and the blocks have
* already been fully moved.
*
* Potential Example:
*
* <pre>
* {
* &#064;code
* Chunk c = world.getChunkAt( x, z );
* c.setChunkBlockTileEntity( x &amp; 0xF, y + y, z &amp; 0xF, tile );
*
* if( c.isChunkLoaded )
* {
* world.addTileEntity( tile );
* world.markBlockForUpdate( x, y, z );
* }
* }
* </pre>
*
* @param tile to be moved tile
* @param world world of tile
* @param newPosition the new location
*/
void moveTile( TileEntity tile, World world, BlockPos newPosition );
/**
* request that the handler move the the tile from its current location to the
* new one. the tile has already been invalidated, and the blocks have already
* been fully moved.
*
* Potential Example:
*
* <pre>
* {
* &#064;code
* Chunk c = world.getChunkAt(x, z);
* c.setChunkBlockTileEntity(x &amp; 0xF, y + y, z &amp; 0xF, tile);
*
* if (c.isChunkLoaded) {
* world.addTileEntity(tile);
* world.markBlockForUpdate(x, y, z);
* }
* }
* </pre>
*
* @param tile to be moved tile
* @param world world of tile
* @param newPosition the new location
*/
void moveTile(TileEntity tile, World world, BlockPos newPosition);
}