mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 16:25:36 +00:00
Report tree objects as one set of ids
TreeObjects no longer has a separate procedural list: a module reports the ids of every object it places as a tree, procedural variants included, and the host only matches those ids.
This commit is contained in:
1 parent
2914ed168c
commit
5e85e1e3b8
1 file changed
+5
-6
@@ -67,17 +67,16 @@ public interface SaplingGrowth {
|
||||
}
|
||||
|
||||
/**
|
||||
* Objects a module places as trees, by the ids {@link com.volmit.resource.PackResources#idOf} gives their keys.
|
||||
* Objects a module places as trees, by the ids {@link com.volmit.resource.PackResources#idOf} gives the names they
|
||||
* are placed under.
|
||||
*
|
||||
* @param objects pack objects its placements mark as trees
|
||||
* @param procedural the objects its procedural trees generate, one per variant
|
||||
* @param objects objects its placements mark as trees, one per variant of an object that bakes several
|
||||
*/
|
||||
record TreeObjects(Set<ResourceId> objects, Set<ResourceId> procedural) {
|
||||
public static final TreeObjects NONE = new TreeObjects(Set.of(), Set.of());
|
||||
record TreeObjects(Set<ResourceId> objects) {
|
||||
public static final TreeObjects NONE = new TreeObjects(Set.of());
|
||||
|
||||
public TreeObjects {
|
||||
objects = Set.copyOf(objects);
|
||||
procedural = Set.copyOf(procedural);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user