-
Notifications
You must be signed in to change notification settings - Fork 753
/
IGridTileEntity.java
49 lines (41 loc) · 1.21 KB
/
IGridTileEntity.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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();
}