blob: 392fe74a32b4609f03af997a5e89d053cf517472 (
plain)
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
|
package gregtech.api.graphs.consumers;
import java.util.ArrayList;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.util.ForgeDirection;
import gregtech.api.graphs.Node;
/**
* A node attached to a {@code TileEntity} that can consume stuff from the network.
*/
public class ConsumerNode extends Node {
public ForgeDirection mSide;
public ConsumerNode(int aNodeValue, TileEntity aTileEntity, ForgeDirection side,
ArrayList<ConsumerNode> aConsumers) {
super(aNodeValue, aTileEntity, aConsumers);
this.mSide = side;
}
public boolean needsEnergy() {
return !mTileEntity.isInvalid();
}
public int injectEnergy(long aVoltage, long aMaxAmps) {
return 0;
}
}
|