Add mappings for isTradeable to ItemComposition

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-04-02 00:55:15 +02:00
parent 3a773746dc
commit a1ea91a0c2
2 changed files with 11 additions and 0 deletions

View File

@@ -104,6 +104,13 @@ public interface ItemComposition
*/
boolean isStackable();
/**
* Returns whether or not the item can be traded to other players.
*
* @return true if tradeable, false otherwise
*/
boolean isTradeable();
/**
* Gets an array of possible right-click menu actions the item
* has in a player inventory.

View File

@@ -66,6 +66,10 @@ public interface RSItemComposition extends ItemComposition
@Override
boolean isMembers();
@Import("isTradable")
@Override
boolean isTradeable();
/**
* You probably want {@link #isStackable}
* <p>