RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
BuildableMap.java
1package com.osroyale.content.skill.impl.construction;
2
3import com.osroyale.game.world.entity.mob.Direction;
4import com.osroyale.game.world.entity.mob.player.Player;
5import com.osroyale.game.world.object.CustomGameObject;
6import com.osroyale.game.world.position.Position;
7import com.osroyale.util.generic.GenericVoid;
8
29
30public enum BuildableMap implements GenericVoid<Player> {
31 SMALL_CAVE("Small cave", 0, 0, new Position(3305, 9833)) {
32 @Override
33 public void execute(Player player) {
34 player.face(Direction.SOUTH);
35 new CustomGameObject(4525, new Position(3305, 9832, player.house.getHeight())).register();//Portal
36 }
37 },
38 THRONE_ROOM("Throne room", 90, 15_000000, new Position(2036, 4538)) {
39 @Override
40 public void execute(Player player) {
41 player.face(Direction.SOUTH);
42 new CustomGameObject(4525, new Position(2036, 4539, player.house.getHeight())).register();//Portal
43 }
44 };
45
46 private final String name;
47 private final int level;
48 private final int cost;
49 private final Position position;
50
51 BuildableMap(String name, int level, int cost, Position position) {
52 this.name = name;
53 this.level = level;
54 this.cost = cost;
55 this.position = position;
56 }
57
58 public String getName() {
59 return name;
60 }
61
62 public int getLevel() {
63 return level;
64 }
65
66 public int getCost() {
67 return cost;
68 }
69
70 public Position getPosition() {
71 return position;
72 }
73}
void face(GameObject object)
Definition Mob.java:326