@Gw2ApiVersion(value="v1") public class GenericItem extends Object implements Item
Item
.Constructor and Description |
---|
GenericItem() |
Modifier and Type | Method and Description |
---|---|
ArmorItemProperties |
getArmor()
See
ArmorItem . |
BagItemProperties |
getBag()
See
BagItem . |
ConsumableItemProperties |
getConsumable()
See
ConsumableItem . |
ContainerItemProperties |
getContainer()
See
ContainerItem . |
String |
getDescription()
The in-game description of the item, if one exists.
|
ArrayList<String> |
getFlags()
A list of flags that detail extra properties of the item.
|
ArrayList<String> |
getGameTypes()
A list of the game modes where the item can be used.
|
GizmoItemProperties |
getGizmo()
See
GizmoItem . |
Integer |
getIconFileId()
|
Integer |
getLevel()
The character level required to be able to use this item.
|
String |
getName()
The in-game name of the item.
|
String |
getRarity()
The in-game rarity level of the item.
|
ArrayList<String> |
getRestrictions()
A list of races or classes that are able to use the item.
|
TrinketItemProperties |
getTrinket()
See
TrinketItem . |
String |
getType()
The specific kind of item.
|
UpgradeComponentItemProperties |
getUpgradeComponent()
See
UpgradeComponentItem . |
Coins |
getVendorValue()
The amount of in-game currency for which the item can be sold to a vendor.
|
WeaponItemProperties |
getWeapon()
See
WeaponItem . |
void |
setDescription(String description) |
void |
setFlags(ArrayList<String> flags) |
void |
setGameTypes(ArrayList<String> gameTypes) |
void |
setIconFileId(int iconFileId) |
void |
setIconFileSignature(String iconFileSignature) |
void |
setItemId(int itemId) |
void |
setLevel(int level) |
void |
setName(String name) |
void |
setRarity(String rarity) |
void |
setRestrictions(ArrayList<String> restrictions) |
void |
setType(String type) |
void |
setVendorValue(Coins vendorValue) |
public Integer getItemId()
public void setItemId(int itemId)
public String getName()
public void setName(String name)
public String getDescription()
getDescription
in interface Item
public void setDescription(String description)
public String getType()
The specific kind of item. Possible values are:
Each of these types is represented by it's on POJO that is an
implementation of Item
. Each POJO is
named in the format TypeItem
. For example, an "Armor" item is
represented by the ArmorItem
object.
public void setType(String type)
public Integer getLevel()
public void setLevel(int level)
public String getRarity()
The in-game rarity level of the item. The possible values are:
public void setRarity(String rarity)
public Coins getVendorValue()
getVendorValue
in interface Item
Coins
.public void setVendorValue(Coins vendorValue)
public Integer getIconFileId()
Item
public void setIconFileId(int iconFileId)
public String getIconFileSignature()
Item
public void setIconFileSignature(String iconFileSignature)
public ArrayList<String> getGameTypes()
A list of the game modes where the item can be used. The possible values are:
getGameTypes
in interface Item
public ArrayList<String> getFlags()
A list of flags that detail extra properties of the item. Possible values are:
public ArrayList<String> getRestrictions()
A list of races or classes that are able to use the item. The possible values are:
getRestrictions
in interface Item
public ArmorItemProperties getArmor()
ArmorItem
.public BagItemProperties getBag()
BagItem
.public ConsumableItemProperties getConsumable()
ConsumableItem
.getConsumable
in interface Item
public ContainerItemProperties getContainer()
ContainerItem
.getContainer
in interface Item
public GizmoItemProperties getGizmo()
GizmoItem
.public TrinketItemProperties getTrinket()
TrinketItem
.getTrinket
in interface Item
public UpgradeComponentItemProperties getUpgradeComponent()
UpgradeComponentItem
.getUpgradeComponent
in interface Item
public WeaponItemProperties getWeapon()
WeaponItem
.Copyright © 2014. All Rights Reserved.