RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
ItemAction.java
1package com.osroyale.content.itemaction;
2
3import com.osroyale.game.world.entity.mob.player.Player;
4import com.osroyale.game.world.items.Item;
5
41
42public 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}
boolean inventory(Player player, Item item, int opcode)