public interface IGridBlock
Implement for use with IGridHost
Modifier and Type | Method and Description |
---|---|
java.util.EnumSet<net.minecraftforge.common.util.ForgeDirection> |
getConnectableSides()
Determine which sides of the block can be connected too, only used when isWorldAccessible returns true, not used
for
IPart implementations. |
java.util.EnumSet<GridFlags> |
getFlags()
Various flags that AE uses to modify basic behavior for various parts of the network.
|
AEColor |
getGridColor() |
double |
getIdlePowerUsage()
how much power to drain per tick as part of idle network usage.
|
DimensionalCoord |
getLocation() |
IGridHost |
getMachine() |
net.minecraft.item.ItemStack |
getMachineRepresentation()
Determines what item stack is used to render this node in the GUI.
|
void |
gridChanged()
called when the grid for the node has changed, the general grid state should not be trusted at this point.
|
boolean |
isWorldAccessible()
generally speaking you will return true for this, the one exception is buses, or worm holes where the node
represents something that isn't a real connection in the world, but rather one represented internally to the
block.
|
void |
onGridNotification(GridNotification notification)
Notifies your IGridBlock that changes were made to your connections
|
void |
setNetworkStatus(IGrid grid,
int channelsInUse)
Update Blocks network/connection/booting status.
|
double getIdlePowerUsage()
if the value of this changes, you must post a MENetworkPowerIdleChange
java.util.EnumSet<GridFlags> getFlags()
boolean isWorldAccessible()
DimensionalCoord getLocation()
AEColor getGridColor()
void onGridNotification(GridNotification notification)
void setNetworkStatus(IGrid grid, int channelsInUse)
grid
- gridchannelsInUse
- used channelsjava.util.EnumSet<net.minecraftforge.common.util.ForgeDirection> getConnectableSides()
IPart
implementations.IGridHost getMachine()
void gridChanged()
net.minecraft.item.ItemStack getMachineRepresentation()