- Enclosing class:
- TechTree
public static class TechTree.TechNode
extends Object
-
Field Summary
Fields
Nodes that depend on this node.
Content to be researched.
int
Requirements that have been fulfilled.
Icon displayed in tech tree selector.
Name for root node - used in tech tree selector.
Extra objectives needed to research this.
Planet associated with this tech node.
Item requirements for this content.
boolean
Multipliers for research costs on a per-item basis.
-
Constructor Summary
Constructors
-
Method Summary
void
Recursively iterates through everything that is a child of this node.
void
Removes this node from the tech tree.
void
Resets finished requirements and saves.
void
Flushes research progress to settings.
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
depth
public int depth
Depth in tech tree.
-
icon
Icon displayed in tech tree selector.
-
name
Name for root node - used in tech tree selector.
-
requiresUnlock
public boolean requiresUnlock
For roots only. If true, this needs to be unlocked before it is selectable in the research dialog. Does not apply when you are on the planet itself.
-
-
researchCostMultipliers
Multipliers for research costs on a per-item basis. Inherits from parent.
-
content
Content to be researched.
-
requirements
Item requirements for this content.
-
finishedRequirements
Requirements that have been fulfilled. Always the same length as the requirement array.
-
objectives
Extra objectives needed to research this.
-
children
Nodes that depend on this node.
-
planet
Planet associated with this tech node. Null to auto-detect, or use Serpulo if no associated planet is found.
-
-
Method Details
-
each
Recursively iterates through everything that is a child of this node. Includes itself.
-
-
-
setupRequirements
public void setupRequirements(ItemStack[] requirements)
-
reset
public void reset()
Resets finished requirements and saves.
-
remove
public void remove()
Removes this node from the tech tree.
-
save
public void save()
Flushes research progress to settings.