blob: d2be4d94f1b48c30fd014ca6a11bdf0325dd5f8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package gregtech.api.graphs.consumers;
import gregtech.api.graphs.Node;
import net.minecraft.tileentity.TileEntity;
import java.util.ArrayList;
//node atached to a tileentity that can consume stuff from the network
public class ConsumerNode extends Node {
public byte mSide;
public ConsumerNode(int aNodeValue, TileEntity aTileEntity, byte aSide, ArrayList<ConsumerNode> aConsumers) {
super(aNodeValue,aTileEntity,aConsumers);
this.mSide = aSide;
}
public boolean needsEnergy() {
return !mTileEntity.isInvalid();
}
public int injectEnergy(int aVoltage, int aMaxApms) {
return 0;
}
}
|