public interface IItem
Modifier and Type | Method and Description |
---|---|
BUC |
buc()
Blessedness of the item (if known).
|
Long |
charges()
Displayed number of charges.
|
List<IItem> |
contents()
If the item is a container returns the contents.
|
Long |
cost()
Price demanded at a shop.
|
Long |
enchantment()
Positive or negative enchantment.
|
Long |
erosion()
How corroded/burnt/rusty the item is (0-3).
|
Boolean |
isArtifact()
True if the item is an artifact.
|
Boolean |
isCharged()
True if the item is not known to be empty.
|
Boolean |
isContainer()
True if the item may contain other items.
|
Boolean |
isCorpse()
True if the item is a monster's corpse.
|
Boolean |
isFixed()
True for rustproof/fireproof/fixed items.
|
Boolean |
isInUse()
True if the item is worn or wielded.
|
Boolean |
isRecharged()
True if the item has been recharged.
|
Boolean |
isSafeToEnchant()
True if the item can be safely enchanted.
|
Boolean |
isTwohanded()
True if the item requires both hands to wield.
|
Boolean |
isWielded()
True if the item wielded by the player.
|
Boolean |
isWorn()
True if the item worn by the player.
|
Boolean |
knowContents()
False if the item is a container with unknown contents.
|
String |
label()
How the item appears in the inventory.
|
String |
name()
The stripped base name of the item.
|
List<IItemType> |
possibilities()
Returns the list of all possible item types for the item without
considering the current game context (discoveries).
|
Long |
quantity()
For stackable items.
|
Long |
recharges()
Displayed number of recharges.
|
IItemType |
type()
Returns properties of the item that can be determined without the
current game context (discoveries).
|
Long quantity()
String label()
String name()
IItemType.name()
!
It may be an unidentified appearance like "buckled boots", which
is not an existing IItemType name.BUC buc()
Long erosion()
Boolean isFixed()
Long enchantment()
Long charges()
isCharged()
Long recharges()
isRecharged()
Boolean isCharged()
Boolean isRecharged()
Boolean isTwohanded()
Boolean isSafeToEnchant()
Boolean isArtifact()
IItemType.baseType()
IItemType type()
IGame.identifyType(IItem)
List<IItemType> possibilities()
IGame.identifyPossibilities(IItem)
Long cost()
IItemType.price()
Boolean isInUse()
Boolean isWielded()
Boolean isWorn()
Boolean isContainer()
Boolean knowContents()
List<IItem> contents()
isContainer()
Boolean isCorpse()