make techtree funcs public

This commit is contained in:
DeltaNedas
2020-09-19 10:00:33 +01:00
parent b29c0ab401
commit cdc1337fcb

View File

@@ -522,13 +522,13 @@ public class TechTree implements ContentList{
}); });
} }
private static void setup(){ public static void setup(){
TechNode.context = null; TechNode.context = null;
map = new ObjectMap<>(); map = new ObjectMap<>();
all = new Seq<>(); all = new Seq<>();
} }
private static TechNode node(UnlockableContent content, Runnable children){ public static TechNode node(UnlockableContent content, Runnable children){
ItemStack[] requirements; ItemStack[] requirements;
if(content instanceof Block){ if(content instanceof Block){
@@ -547,17 +547,17 @@ public class TechTree implements ContentList{
return node(content, requirements, children); 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); 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); TechNode node = new TechNode(content, empty, children);
node.objectives = objectives; node.objectives = objectives;
return node; return node;
} }
private static TechNode node(UnlockableContent block){ public static TechNode node(UnlockableContent block){
return node(block, () -> {}); return node(block, () -> {});
} }