Package mindustry.content
Class TechTree
java.lang.Object
mindustry.content.TechTree
Class for storing a list of TechNodes with some utility tree builder methods; context dependent. See
SerpuloTechTree.load()
source for example usage.-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TechTree.TechNode
context()
static TechTree.TechNode
node
(UnlockableContent block) static TechTree.TechNode
node
(UnlockableContent content, Seq<Objectives.Objective> objectives, Runnable children) static TechTree.TechNode
node
(UnlockableContent content, Runnable children) static TechTree.TechNode
node
(UnlockableContent content, ItemStack[] requirements, Seq<Objectives.Objective> objectives, Runnable children) static TechTree.TechNode
node
(UnlockableContent content, ItemStack[] requirements, Runnable children) static TechTree.TechNode
nodeProduce
(UnlockableContent content, Seq<Objectives.Objective> objectives, Runnable children) static TechTree.TechNode
nodeProduce
(UnlockableContent content, Runnable children) static TechTree.TechNode
nodeRoot
(String name, UnlockableContent content, boolean requireUnlock, Runnable children) static TechTree.TechNode
nodeRoot
(String name, UnlockableContent content, Runnable children)
-
Field Details
-
all
-
roots
-
-
Constructor Details
-
TechTree
public TechTree()
-
-
Method Details
-
nodeRoot
-
nodeRoot
public static TechTree.TechNode nodeRoot(String name, UnlockableContent content, boolean requireUnlock, Runnable children) -
node
-
node
public static TechTree.TechNode node(UnlockableContent content, ItemStack[] requirements, Runnable children) -
node
public static TechTree.TechNode node(UnlockableContent content, ItemStack[] requirements, Seq<Objectives.Objective> objectives, Runnable children) -
node
public static TechTree.TechNode node(UnlockableContent content, Seq<Objectives.Objective> objectives, Runnable children) -
node
-
nodeProduce
public static TechTree.TechNode nodeProduce(UnlockableContent content, Seq<Objectives.Objective> objectives, Runnable children) -
nodeProduce
-
context
-