mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-04-17 11:02:30 -07:00
make techtree funcs public
This commit is contained in:
parent
b29c0ab401
commit
cdc1337fcb
1 changed files with 5 additions and 5 deletions
|
|
@ -522,13 +522,13 @@ public class TechTree implements ContentList{
|
|||
});
|
||||
}
|
||||
|
||||
private static void setup(){
|
||||
public static void setup(){
|
||||
TechNode.context = null;
|
||||
map = new ObjectMap<>();
|
||||
all = new Seq<>();
|
||||
}
|
||||
|
||||
private static TechNode node(UnlockableContent content, Runnable children){
|
||||
public static TechNode node(UnlockableContent content, Runnable children){
|
||||
ItemStack[] requirements;
|
||||
|
||||
if(content instanceof Block){
|
||||
|
|
@ -547,17 +547,17 @@ public class TechTree implements ContentList{
|
|||
return node(content, requirements, children);
|
||||
}
|
||||
|
||||
private static TechNode node(UnlockableContent content, ItemStack[] requirements, Runnable children){
|
||||
public static TechNode node(UnlockableContent content, ItemStack[] requirements, Runnable children){
|
||||
return new TechNode(content, requirements, children);
|
||||
}
|
||||
|
||||
private static TechNode node(UnlockableContent content, Seq<Objective> objectives, Runnable children){
|
||||
public static TechNode node(UnlockableContent content, Seq<Objective> objectives, Runnable children){
|
||||
TechNode node = new TechNode(content, empty, children);
|
||||
node.objectives = objectives;
|
||||
return node;
|
||||
}
|
||||
|
||||
private static TechNode node(UnlockableContent block){
|
||||
public static TechNode node(UnlockableContent block){
|
||||
return node(block, () -> {});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue