|
RuneHive-Game
|
Handles execution of the item actions. More...
Static Public Member Functions | |
| static void | declare () |
| Declares all the item actions. | |
| static boolean | drop (Player player, Item item) |
| static boolean | equipment (Player player, Item item, int opcode) |
| static boolean | inventory (Player player, Item item, int opcode) |
| static boolean | itemOnItem (Player player, Item first, Item second) |
Static Public Attributes | |
| static HashMap< Integer, ItemAction > | ACTIONS = new HashMap<>() |
| Map of all the item actions. | |
Handles execution of the item actions.
Definition at line 14 of file ItemActionRepository.java.
|
static |
Declares all the item actions.
Definition at line 20 of file ItemActionRepository.java.
References ACTIONS, com.runehive.content.itemaction.impl.CelestialRing.CHARGED_RING, com.runehive.content.itemaction.impl.CrawsBow.CRAWS_CHARGED_ID, com.runehive.content.itemaction.impl.CrawsBow.CRAWS_UNCHARGED_ID, com.runehive.content.itemaction.impl.ThammaronsSceptre.THAMMARONS_SCEPTRE_CHARGED_ID, com.runehive.content.itemaction.impl.ThammaronsSceptre.THAMMARONS_SCEPTRE_UNCHARGED_ID, com.runehive.content.itemaction.impl.CelestialRing.UNCHARGED_RING, com.runehive.content.itemaction.impl.ViggorasChainmace.VIGGORAS_CHAINMACE_CHARGED_ID, and com.runehive.content.itemaction.impl.ViggorasChainmace.VIGGORAS_CHAINMACE_UNCHARGED_ID.
Referenced by com.runehive.RuneHive.processParallelStartupTasks().
|
static |
Definition at line 90 of file ItemActionRepository.java.
References ACTIONS, com.runehive.content.itemaction.ItemAction.drop(), and com.runehive.game.world.items.Item.getId().
Referenced by com.runehive.net.packet.in.DropItemPacketListener.handlePacket().
|
static |
Definition at line 85 of file ItemActionRepository.java.
References ACTIONS, com.runehive.content.itemaction.ItemAction.equipment(), and com.runehive.game.world.items.Item.getId().
|
static |
Definition at line 80 of file ItemActionRepository.java.
References ACTIONS, com.runehive.game.world.items.Item.getId(), and com.runehive.content.itemaction.ItemAction.inventory().
Referenced by com.runehive.net.packet.in.ItemOptionPacketListener.handleFirstOption(), com.runehive.net.packet.in.ItemOptionPacketListener.handleSecondOption(), and com.runehive.net.packet.in.ItemOptionPacketListener.handleThirdOption().
|
static |
Definition at line 75 of file ItemActionRepository.java.
References ACTIONS, com.runehive.game.world.items.Item.getId(), and com.runehive.content.itemaction.ItemAction.itemOnItem().
Referenced by com.runehive.net.packet.in.UseItemPacketListener.handleItemOnItem().
|
static |
Map of all the item actions.
Definition at line 17 of file ItemActionRepository.java.
Referenced by declare(), drop(), equipment(), inventory(), and itemOnItem().