Package com.epicbot.api.shared.entity
Interface Item
- All Superinterfaces:
Actionable,Identifiable,Nameable,Validatable
- All Known Subinterfaces:
GroundItem,ItemWidget,WidgetChild,WidgetChildItem
An item in the game (e.g. a ground item or inventory item).
-
Method Summary
Modifier and TypeMethodDescriptionGets the available actions when this item is on the ground.default intGet the high alchemy price for this item.default intGet the low alchemy price for this item.intGets the noted item id of the noted or un-noted variant of this item.intGets the stack size of the item.intGets the store price of the item.intGets the un-noted item id of the noted or un-noted variant of this item.booleanhasGroundAction(String... actions) Determines if this item has one of the given ground actions.booleanGets whether or not this item is a members only item.booleanisNoted()Gets whether or not this item is noted.booleanGets whether or not this item is stackable in a players inventory.booleanGets whether or not this item is tradable.Methods inherited from interface com.epicbot.api.shared.entity.details.Actionable
getActions, hasAction, hasActionMatchMethods inherited from interface com.epicbot.api.shared.entity.details.Identifiable
getIdMethods inherited from interface com.epicbot.api.shared.entity.details.Validatable
isValid
-
Method Details
-
getStorePrice
int getStorePrice()Gets the store price of the item. All items have a store price and the store price can be used to calculate high and low alchemy values.- Returns:
- the general store value of the item
-
getLowAlchemyPrice
default int getLowAlchemyPrice()Get the low alchemy price for this item.- Returns:
- the low alchemy price (storePrice * 0.4)
-
getHighAlchemyPrice
default int getHighAlchemyPrice()Get the high alchemy price for this item.- Returns:
- the high alchemy price (storePrice * 0.6)
-
isNoted
boolean isNoted()Gets whether or not this item is noted.- Returns:
- true if noted, false otherwise
-
isStackable
boolean isStackable()Gets whether or not this item is stackable in a players inventory.- Returns:
- true if stackable, false otherwise
-
isTradable
boolean isTradable()Gets whether or not this item is tradable.- Returns:
- true if tradable, false otherwise
-
isMembers
boolean isMembers()Gets whether or not this item is a members only item.- Returns:
- true if members only, false otherwise
-
getStackSize
int getStackSize()Gets the stack size of the item.- Returns:
- int
-
getGroundActions
Gets the available actions when this item is on the ground.- Returns:
- list of actions
-
hasGroundAction
Determines if this item has one of the given ground actions.- Parameters:
actions- one or multiple actions- Returns:
- true if it has one of the given actions, false otherwise
-
getNotedId
int getNotedId()Gets the noted item id of the noted or un-noted variant of this item.- Returns:
- int
-
getUnNotedId
int getUnNotedId()Gets the un-noted item id of the noted or un-noted variant of this item.- Returns:
- int
-