-
-
Notifications
You must be signed in to change notification settings - Fork 131
/
Upgrade.java
59 lines (48 loc) · 1.29 KB
/
Upgrade.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package com.bgsoftware.superiorskyblock.api.upgrades;
import javax.annotation.Nullable;
import java.util.List;
public interface Upgrade {
/**
* Get the name of the upgrade.
*/
String getName();
/**
* Get the upgrade-level object from a level.
* If it doesn't exist, an update level with level 0 will be returned.
*
* @param level The level to get the object from.
*/
UpgradeLevel getUpgradeLevel(int level);
/**
* Get the maximum level that exists for the upgrade.
*/
int getMaxUpgradeLevel();
/**
* Get the slot the upgrade is in the upgrades menu.
*/
@Deprecated
int getSlot();
/**
* Get the slots the upgrade is in the upgrades menu.
*/
List<Integer> getSlots();
/**
* Check whether the upgrade is in the given slot in the upgrades menu.
*
* @param slot The slot to check.
*/
boolean isSlot(int slot);
/**
* Set the slot the upgrade is in the upgrades menu.
*
* @param slot The slot to set the upgrade item in.
*/
@Deprecated
void setSlot(int slot);
/**
* Set the slots the upgrade is in the upgrades menu.
*
* @param slots The slots to set the upgrade item in.
*/
void setSlots(@Nullable List<Integer> slots);
}