|
RuneHive-Game
|
Public Member Functions | |
| boolean | drop (Player player, Item item) |
| boolean | equipment (Player player, Item item, int opcode) |
| boolean | inventory (Player player, Item item, int opcode) |
| The execution method of the action. | |
| boolean | itemOnItem (Player player, Item first, Item second) |
| MagmaHelm () | |
| String | name () |
| The name of the action. | |
| Public Member Functions inherited from com.runehive.content.itemaction.ItemAction | |
| int | delay () |
| The item click delay of the action. | |
| String | message (Item item) |
| The message of the action. | |
| String | toString () |
Static Public Member Functions | |
| static void | check (Player player) |
Static Private Member Functions | |
| static void | charge (Player player, Item helm, Item scales) |
| static void | restore (Player player, Item item) |
| static void | uncharge (Player player) |
Static Private Attributes | |
| static final short | CHARGED_HELM = 13_199 |
| static final DecimalFormat | FORMATTER = new DecimalFormat("#.#") |
| static final short | FULL = 11_000 |
| static final short | UNCHARGED_HELM = 13_198 |
| static final short | ZULRAH_SCALES = 12_934 |
Definition at line 15 of file MagmaHelm.java.
| com.runehive.content.itemaction.impl.MagmaHelm.MagmaHelm | ( | ) |
Definition at line 25 of file MagmaHelm.java.
References FORMATTER.
|
staticprivate |
Definition at line 86 of file MagmaHelm.java.
References CHARGED_HELM, com.runehive.game.world.items.Item.copy(), com.runehive.util.Utility.formatDigits(), FULL, com.runehive.game.world.items.Item.getAmount(), com.runehive.game.world.entity.mob.player.Player.inventory, com.runehive.game.world.entity.mob.player.Player.magmaHelmCharges, com.runehive.game.world.items.Item.matchesId(), com.runehive.game.world.entity.mob.player.Player.message(), com.runehive.game.world.items.containers.ItemContainer.remove(), com.runehive.game.world.items.containers.ItemContainer.replace(), com.runehive.game.world.items.Item.setAmount(), and UNCHARGED_HELM.
Referenced by itemOnItem().
|
static |
Definition at line 81 of file MagmaHelm.java.
References FORMATTER, FULL, com.runehive.game.world.entity.mob.player.Player.magmaHelmCharges, and com.runehive.game.world.entity.mob.player.Player.message().
Referenced by equipment(), and inventory().
Reimplemented from com.runehive.content.itemaction.ItemAction.
Definition at line 73 of file MagmaHelm.java.
References CHARGED_HELM, com.runehive.game.world.items.Item.matchesId(), and uncharge().
| boolean com.runehive.content.itemaction.impl.MagmaHelm.equipment | ( | Player | player, |
| Item | item, | ||
| int | opcode ) |
Reimplemented from com.runehive.content.itemaction.ItemAction.
Definition at line 65 of file MagmaHelm.java.
References check().
| boolean com.runehive.content.itemaction.impl.MagmaHelm.inventory | ( | Player | player, |
| Item | item, | ||
| int | opcode ) |
The execution method of the action.
Reimplemented from com.runehive.content.itemaction.ItemAction.
Definition at line 51 of file MagmaHelm.java.
References check(), and restore().
| boolean com.runehive.content.itemaction.impl.MagmaHelm.itemOnItem | ( | Player | player, |
| Item | first, | ||
| Item | second ) |
Reimplemented from com.runehive.content.itemaction.ItemAction.
Definition at line 35 of file MagmaHelm.java.
References charge(), CHARGED_HELM, com.runehive.game.world.items.Item.equals(), com.runehive.game.world.items.Item.getId(), UNCHARGED_HELM, and ZULRAH_SCALES.
| String com.runehive.content.itemaction.impl.MagmaHelm.name | ( | ) |
The name of the action.
Reimplemented from com.runehive.content.itemaction.ItemAction.
Definition at line 30 of file MagmaHelm.java.
|
staticprivate |
Definition at line 125 of file MagmaHelm.java.
References com.runehive.game.world.entity.mob.Mob.attributes, com.runehive.game.world.items.Item.getName(), com.runehive.game.world.entity.mob.player.Player.send(), and com.runehive.util.generic.GenericAttributes.set().
Referenced by inventory().
|
staticprivate |
Definition at line 111 of file MagmaHelm.java.
References com.runehive.game.world.items.containers.ItemContainer.add(), CHARGED_HELM, com.runehive.util.Utility.formatDigits(), com.runehive.game.world.items.Item.getAmount(), com.runehive.game.world.items.containers.ItemContainer.hasCapacityFor(), com.runehive.game.world.entity.mob.player.Player.inventory, com.runehive.game.world.entity.mob.player.Player.magmaHelmCharges, com.runehive.game.world.entity.mob.player.Player.message(), com.runehive.game.world.items.containers.ItemContainer.replace(), com.runehive.game.world.entity.mob.player.Player.send(), UNCHARGED_HELM, and ZULRAH_SCALES.
Referenced by drop().
|
staticprivate |
Definition at line 21 of file MagmaHelm.java.
Referenced by charge(), drop(), itemOnItem(), and uncharge().
|
staticprivate |
Definition at line 23 of file MagmaHelm.java.
Referenced by check(), and MagmaHelm().
|
staticprivate |
Definition at line 16 of file MagmaHelm.java.
|
staticprivate |
Definition at line 20 of file MagmaHelm.java.
Referenced by charge(), itemOnItem(), and uncharge().
|
staticprivate |
Definition at line 18 of file MagmaHelm.java.
Referenced by itemOnItem(), and uncharge().