more moving.

This commit is contained in:
cp committed 2014-02-28 00:08:24 +08:00
1 parent ce486c0540
commit bef5f6193e
510 files changed

No files matched your search

@@ -0,0 +1,49 @@
package appeng.api.me.tiles;
import net.minecraft.world.World;
import appeng.api.WorldCoord;
import appeng.api.me.util.IGridInterface;
/**
* Basic ME Grid Interface, informs you of the Grid power status, and other details.
*/
public abstract interface IGridTileEntity
{
/**
* Do this:
* return new WorldCoord( TileEntity.xCoord, TileEntity.yCoord, TileEntity.zCoord );
*/
public abstract WorldCoord getLocation();
/**
* If your tile entity is valid return true.
*/
public boolean isValid();
/**
* Informs you of either true or false.
* if the power feed has stopped, or been continued, only called when changes happens, or when grid updates happen.
*/
public abstract void setPowerStatus(boolean hasPower);
/**
* Yes if the device has a powered status.
*/
public abstract boolean isPowered();
/**
* Return your last grid you got via setGrid.
*/
public IGridInterface getGrid();
/**
* Informs you of your new grid, YOU MUST return this via getGrid.
* Store for later.
*/
public void setGrid(IGridInterface gi);
/**
* Return worldObj
*/
public World getWorld();
}