public interface IGridBlock
| Modifier and Type | Method and Description |
|---|---|
java.util.EnumSet<net.minecraft.util.EnumFacing> |
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()
Must not return when
isWorldAccessible() is true. |
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)
Deprecated.
to be removed in rv7
|
@Nonnegative double getIdlePowerUsage()
@Nonnull java.util.EnumSet<GridFlags> getFlags()
boolean isWorldAccessible()
@Nonnull DimensionalCoord getLocation()
isWorldAccessible() is true.
Otherwise the behavior is unspecified.@Nonnull AEColor getGridColor()
void onGridNotification(@Nonnull
GridNotification notification)
@Deprecated void setNetworkStatus(IGrid grid, int channelsInUse)
grid - gridchannelsInUse - used channels@Nonnull java.util.EnumSet<net.minecraft.util.EnumFacing> getConnectableSides()
IPart implementations.@Nonnull IGridHost getMachine()
void gridChanged()
@Nonnull net.minecraft.item.ItemStack getMachineRepresentation()