RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.content.itemaction.impl.ClanResourceBox Class Reference
Inheritance diagram for com.runehive.content.itemaction.impl.ClanResourceBox:
Collaboration diagram for com.runehive.content.itemaction.impl.ClanResourceBox:

Public Member Functions

boolean inventory (Player player, Item item, int opcode)
 The execution method of the action.
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.
boolean drop (Player player, Item item)
boolean equipment (Player player, Item item, int opcode)
boolean itemOnItem (Player player, Item first, Item second)
String message (Item item)
 The message of the action.
String toString ()

Detailed Description

Definition at line 7 of file ClanResourceBox.java.

Member Function Documentation

◆ inventory()

boolean com.runehive.content.itemaction.impl.ClanResourceBox.inventory ( Player player,
Item item,
int opcode )

The execution method of the action.

Reimplemented from com.runehive.content.itemaction.ItemAction.

Definition at line 15 of file ClanResourceBox.java.

15 {
16// if (opcode != 1)
17 return false;
18// Clan channel = ClanRepository.get(player.clan);
19// if (channel == null) {
20// player.send(new SendMessage("You need to be in a clan to do this!"));
21// return true;
22// }
23// player.inventory.remove(item);
24// Item showcaseReward = new Item(Utility.randomElement(ClanUtility.getRewardItems(channel)));
25// channel.showcaseItems.add(showcaseReward.getId());
26// player.send(new SendMessage("Inside the box you found " + showcaseReward.getName() + "! Showcase size: " + channel.showcaseItems.size() + "/28", SendMessage.MessageColor.DARK_PURPLE));
27// return true;
28 }

◆ name()

String com.runehive.content.itemaction.impl.ClanResourceBox.name ( )

The name of the action.

Reimplemented from com.runehive.content.itemaction.ItemAction.

Definition at line 10 of file ClanResourceBox.java.

10 {
11 return "Clan Resource Box";
12 }

The documentation for this class was generated from the following file: