RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
Preset.java
1package com.osroyale.content.preset;
2
3import com.osroyale.content.skill.impl.magic.Spellbook;
4import com.osroyale.game.world.entity.mob.prayer.PrayerBook;
5import com.osroyale.game.world.items.Item;
6
45
46public class Preset {
47
49 private String name;
50
52 private final Item[] inventory;
53
55 private final Item[] equipment;
56
58 private final PrayerBook prayer;
59
61 private final Spellbook spellbook;
62
77 public Preset(String name, Item[] inventory, Item[] equipment, PrayerBook prayer, Spellbook spellbook) {
78 this.name = name;
79 this.inventory = inventory;
80 this.equipment = equipment;
81 this.prayer = prayer;
82 this.spellbook = spellbook;
83 }
84
91 public Preset(String name) {
92 this(name, new Item[28], new Item[14], new PrayerBook(), Spellbook.MODERN);
93 }
94
98 public Preset() {
99 this(null, new Item[28], new Item[14], new PrayerBook(), Spellbook.MODERN);
100 }
101
102
108 public String getName() {
109 return name;
110 }
111
117 public Item[] getInventory() {
118 return inventory;
119 }
120
121 public Item[] getEquipment() {
122 return equipment;
123 }
124
125 public PrayerBook getPrayer() {
126 return prayer;
127 }
128
129 public Spellbook getSpellbook() {
130 return spellbook;
131 }
132
133 public void setName(String name) {
134 this.name = name;
135 }
136}
Preset(String name, Item[] inventory, Item[] equipment, PrayerBook prayer, Spellbook spellbook)
Definition Preset.java:77