RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.content.mysterybox.MysteryItem Class Reference
Inheritance diagram for com.runehive.content.mysterybox.MysteryItem:
Collaboration diagram for com.runehive.content.mysterybox.MysteryItem:

Public Member Functions

 MysteryItem (int id, int amount)
 MysteryItem (int id, int amount, MysteryRarity rarity)
Public Member Functions inherited from com.runehive.game.world.items.Item
Item clone ()
Item copy ()
 A substitute for Object#clone() that creates another 'copy' of this instance.
Item createAndDecrement (int removeAmount)
 Creates a new item with amount - removeAmount and the same identifier.
Item createAndIncrement (int addAmount)
 Creates a new item with amount + addAmount and the same identifier.
Item createWithAmount (int newAmount)
 Creates a new item with newAmount and the same identifier as this instance.
Item createWithId (int newId)
 Creates a new item with newId and the same amount as this instance.
final void decrementAmount ()
 Decrements the amount by 1.
final void decrementAmountBy (int amount)
 Decrements the amount by amount @endiliteral.

boolean equalIds (Item other)
boolean equals (Object obj)
final int getAmount ()
 Gets the quantity of this item.
OptionalInt getAttackAnimation (FightType type)
int getBaseValue ()
OptionalInt getBlockAnimation ()
int getBonus (int index)
int[] getBonuses ()
ItemDefinition getDefinition ()
 Gets the item definition for the item identifier.
String getDestroyMessage ()
EquipmentType getEquipmentType ()
int getHighAlch ()
final int getId ()
 Gets the identification of this item.
int getLowAlch ()
String getName ()
int getNotedId ()
Optional< RangedWeaponDefinitiongetRangedDefinition ()
int[] getRequirements ()
int getRunAnimation ()
int getSellValue ()
int getStandAnimation ()
int getStreetValue ()
int getUnnotedId ()
int getValue ()
 Gets the value for this item.
int getValue (PriceType type)
 Gets the value for this item.
int getWalkAnimation ()
WeaponInterface getWeaponInterface ()
double getWeight ()
int hashCode ()
final void incrementAmount ()
 Increments the amount by 1.
final void incrementAmountBy (int amount)
 Increments the amount by amount.
boolean isDestroyable ()
boolean isEquipable ()
boolean isNoteable ()
boolean isNoted ()
boolean isStackable ()
boolean isTradeable ()
boolean isTwoHanded ()
 Item (int id)
 Creates a new Item with an quantity of 1.
 Item (int id, int amount)
 Creates a new Item.
 Item (int id, int minAmt, int maxAmt)
 Creates a new Item with a random amount between minAmt and maxAmt.
 Item (int id, long amount)
boolean matchesId (int id)
Item noted ()
 Gets the item note item.
final void setAmount (int amount)
 Sets the quantity of this item.
final void setId (int id)
 Sets the identification of this item.
final String toString ()
Item unnoted ()
 Gets the unnoted item.

Package Attributes

final MysteryRarity rarity

Additional Inherited Members

Static Public Member Functions inherited from com.runehive.game.world.items.Item
static final Item[] convert (int... id)
 Converts an int array into an Item array.
static final int[] convert (Item... ids)
 Converts an Item array into an Integer array.
static boolean valid (Item item)
 Determines if item is valid.

Detailed Description

Definition at line 7 of file MysteryItem.java.

Constructor & Destructor Documentation

◆ MysteryItem() [1/2]

com.runehive.content.mysterybox.MysteryItem.MysteryItem ( int id,
int amount,
MysteryRarity rarity )

Definition at line 11 of file MysteryItem.java.

11 {
12 super(id, amount);
13 this.rarity = rarity;
14 }

References com.runehive.game.world.items.Item.amount, and rarity.

◆ MysteryItem() [2/2]

com.runehive.content.mysterybox.MysteryItem.MysteryItem ( int id,
int amount )

Definition at line 16 of file MysteryItem.java.

16 {
17 this(id, amount, COMMON);
18 }

References com.runehive.game.world.items.Item.amount, and com.runehive.game.world.items.Item.id.

Member Data Documentation

◆ rarity

final MysteryRarity com.runehive.content.mysterybox.MysteryItem.rarity
package

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