mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-21 15:50:40 +00:00
Rotation & tree stuff
This commit is contained in:
@@ -1,9 +1,20 @@
|
||||
package com.dfsek.terra.registry;
|
||||
|
||||
import com.dfsek.terra.api.gaea.tree.Tree;
|
||||
import com.dfsek.terra.api.generic.TerraPlugin;
|
||||
|
||||
public class TreeRegistry extends TerraRegistry<Tree> {
|
||||
public TreeRegistry() {
|
||||
private final TerraPlugin main;
|
||||
|
||||
public TreeRegistry(TerraPlugin main) {
|
||||
this.main = main;
|
||||
}
|
||||
|
||||
private void addTree(String id) {
|
||||
try {
|
||||
add(id, main.getWorldHandle().getTree(id));
|
||||
} catch(IllegalArgumentException e) {
|
||||
main.getLogger().warning("Unable to load tree " + id + ": " + e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user