0.5.2
custom model data command + disable dungeon for now
This commit is contained in:
parent
f82a3481ac
commit
0cf90ea696
12 changed files with 233 additions and 77 deletions
|
@ -4,17 +4,17 @@ import gq.unurled.raxen.Raxen;
|
|||
import gq.unurled.raxen.components.dungeons.Dungeon;
|
||||
import gq.unurled.raxen.components.dungeons.Gate;
|
||||
import gq.unurled.raxen.components.dungeons.types.forest.ForestDungeon;
|
||||
import org.bukkit.Location;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.UUID;
|
||||
|
||||
public class DungeonsManager {
|
||||
|
||||
private Raxen main;
|
||||
|
||||
private HashMap<UUID, Gate> gates = new HashMap<>();
|
||||
private HashMap<Gate, Location> gates = new HashMap<>();
|
||||
|
||||
private HashMap<String, Dungeon> dungeons = new HashMap<>();
|
||||
private HashMap<Gate, Dungeon> dungeons = new HashMap<>();
|
||||
|
||||
public DungeonsManager(Raxen main) {
|
||||
this.main = main;
|
||||
|
@ -26,10 +26,16 @@ public class DungeonsManager {
|
|||
*/
|
||||
public void registerDungeons() {
|
||||
ForestDungeon forestDungeon = new ForestDungeon();
|
||||
dungeons.put("FOREST", forestDungeon);
|
||||
|
||||
dungeons.put(forestDungeon.getGate(), forestDungeon);
|
||||
gates.put(forestDungeon.getGate(), forestDungeon.getGate().getLoc());
|
||||
/*
|
||||
for (String s : dungeons.keySet()) {
|
||||
main.getManager().getWorldManager().loadWorld(dungeons.get(s).getName());
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
public HashMap getGates() {
|
||||
return gates;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue