blob: fed599881c12ae33990df25fd93811bbd9de3047 (
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;
import gregtech.api.graphs.consumers.ConsumerNode;
import gregtech.api.graphs.paths.NodePath;
import net.minecraft.server.MinecraftServer;
import net.minecraft.tileentity.TileEntity;
import java.util.ArrayList;
//base Node class
public class Node {
public Node(int aNodeValue,TileEntity aTileEntity,ArrayList<ConsumerNode> aConsumers){
this.mNodeValue = aNodeValue;
this.mTileEntity = aTileEntity;
this.mConsumers = aConsumers;
mHigestNodeValue = aNodeValue;
//you dont want to generate map multiple times in the same tick
mCreationTime = MinecraftServer.getServer().getTickCounter();
}
public int mCreationTime;
public NodePath mSelfPath;
public ArrayList<ConsumerNode> mConsumers;
public int mNodeValue;
public final TileEntity mTileEntity;
public Node[] mNeigbourNodes = new Node[6];
public NodePath[] mNodePats = new NodePath[6];
public NodePath mReturnPath;
public int mHigestNodeValue;
}
|