Initial commit

This commit is contained in:
2025-11-24 23:10:25 +01:00
commit 6f06da5f31
41 changed files with 3443 additions and 0 deletions
@@ -0,0 +1,49 @@
package net.fretux.skillengine.skilltree;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import java.util.List;
public class SkillNode {
private final ResourceLocation id;
private final Component title;
private final Component description;
private final int cost;
private final float x;
private final float y;
private final List<ResourceLocation> links;
private final List<ResourceLocation> tags;
public SkillNode(ResourceLocation id,
Component title,
Component description,
int cost,
float x, float y,
List<ResourceLocation> links,
List<ResourceLocation> tags) {
this.id = id;
this.title = title;
this.description = description;
this.cost = cost;
this.x = x;
this.y = y;
this.links = List.copyOf(links);
this.tags = List.copyOf(tags);
}
public ResourceLocation getId() { return id; }
public Component getTitle() { return title; }
public Component getDescription() { return description; }
public int getCost() { return cost; }
public float getX() { return x; }
public float getY() { return y; }
public List<ResourceLocation> getLinks() { return links; }
public List<ResourceLocation> getTags() { return tags; }
public boolean isRoot() {
return links.isEmpty(); // or a dedicated flag if you want later
}
}