RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
ItemAction.java
1
package
com.osroyale.content.itemaction;
2
3
import
com.osroyale.game.world.entity.mob.player.Player;
4
import
com.osroyale.game.world.items.Item;
5
41
42
public
abstract
class
ItemAction
{
43
45
public
abstract
String
name
();
46
48
public
String
message
(Item item) {
49
return
""
;
50
}
51
53
public
int
delay
() {
54
return
-1;
55
}
56
58
public
boolean
inventory
(
Player
player, Item item,
int
opcode) {
59
return
false
;
60
}
61
62
public
boolean
equipment(
Player
player, Item item,
int
opcode) {
63
return
false
;
64
}
65
66
public
boolean
itemOnItem(
Player
player, Item first, Item second) {
67
return
false
;
68
}
69
70
public
boolean
drop(Player player, Item item) {
71
return
false
;
72
}
73
74
@Override
75
public
String toString() {
76
return
String.format(
"Action=%s"
,
name
());
77
}
78
79
}
com.osroyale.content.itemaction.ItemAction
Definition
ItemAction.java:42
com.osroyale.content.itemaction.ItemAction.message
String message(Item item)
Definition
ItemAction.java:48
com.osroyale.content.itemaction.ItemAction.name
abstract String name()
com.osroyale.content.itemaction.ItemAction.inventory
boolean inventory(Player player, Item item, int opcode)
Definition
ItemAction.java:58
com.osroyale.content.itemaction.ItemAction.delay
int delay()
Definition
ItemAction.java:53
com.osroyale.game.world.entity.mob.player.Player
Definition
Player.java:162