public class ItemRequirement
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int[] |
amounts |
boolean |
consumable
Whether this item is consumed as part of the requirement (i.e. runes, coins, teletabs etc)
|
boolean |
containsName |
java.lang.String[] |
names |
boolean |
singleAmount |
| Constructor and Description |
|---|
ItemRequirement(boolean containsName,
java.lang.String[] names,
int[] amounts,
boolean consumable)
Creates an ItemRequirement instance.
|
ItemRequirement(boolean containsName,
java.lang.String[] names,
int amount,
boolean consumable)
Creates an ItemRequirement instance.
|
ItemRequirement(java.lang.String[] names,
int[] amounts,
boolean consumable)
Creates an ItemRequirement instance with
consumable and containsName set to false
by default. |
ItemRequirement(java.lang.String[] names,
int amount,
boolean consumable)
Creates an ItemRequirement instance with
consumable and containsName set to false
by default. |
public final boolean containsName
public final java.lang.String[] names
public final int[] amounts
public final boolean singleAmount
public final boolean consumable
public ItemRequirement(java.lang.String[] names,
int amount,
boolean consumable)
consumable and containsName set to false
by default.names - The name or names of this group of items. The order represents priority as well. Items first in
the array will be preferred over items last in the list.amount - The minimum amount required.public ItemRequirement(boolean containsName,
java.lang.String[] names,
int amount,
boolean consumable)
containsName - When false, it will match exact on names.names - The name or names of this group of items.amount - The minimum amount required.consumable - Whether this item is consumed during the execution of the IDirection.
For example coins, runes, teletabs etc are consumable and for them this parameter
should be true.public ItemRequirement(java.lang.String[] names,
int[] amounts,
boolean consumable)
consumable and containsName set to false
by default.names - The name or names of this group of items.amounts - The minimum amount required.public ItemRequirement(boolean containsName,
java.lang.String[] names,
int[] amounts,
boolean consumable)
containsName - When false, it will match exact on names.names - The name or names of this group of items.amounts - The minimum amount required.consumable - Whether this item is consumed during the execution of the IDirection.
For example coins, runes, teletabs etc are consumable and for them this parameter
should be true.