Merge pull request #2955 from open-osrs/api-develop
api: getItemDefinition > getItemComposition
This commit is contained in:
@@ -401,7 +401,7 @@ public interface Client extends GameEngine
|
|||||||
* @see ItemID
|
* @see ItemID
|
||||||
*/
|
*/
|
||||||
@Nonnull
|
@Nonnull
|
||||||
ItemComposition getItemDefinition(int id);
|
ItemComposition getItemComposition(int id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates an item icon sprite with passed variables.
|
* Creates an item icon sprite with passed variables.
|
||||||
|
|||||||
@@ -200,7 +200,7 @@ public class ItemManager
|
|||||||
@Override
|
@Override
|
||||||
public ItemComposition load(Integer key) throws Exception
|
public ItemComposition load(Integer key) throws Exception
|
||||||
{
|
{
|
||||||
return client.getItemDefinition(key);
|
return client.getItemComposition(key);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ public class MultipleOfItemRequirement implements ItemRequirement
|
|||||||
@Override
|
@Override
|
||||||
public String getCollectiveName(Client client)
|
public String getCollectiveName(Client client)
|
||||||
{
|
{
|
||||||
ItemComposition definition = client.getItemDefinition(itemId);
|
ItemComposition definition = client.getItemComposition(itemId);
|
||||||
|
|
||||||
if (definition == null)
|
if (definition == null)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ public class SingleItemRequirement implements ItemRequirement
|
|||||||
@Override
|
@Override
|
||||||
public String getCollectiveName(Client client)
|
public String getCollectiveName(Client client)
|
||||||
{
|
{
|
||||||
ItemComposition definition = client.getItemDefinition(itemId);
|
ItemComposition definition = client.getItemComposition(itemId);
|
||||||
|
|
||||||
if (definition == null)
|
if (definition == null)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2038,7 +2038,7 @@ public abstract class RSClientMixin implements RSClient
|
|||||||
@Inject
|
@Inject
|
||||||
@Override
|
@Override
|
||||||
@Nonnull
|
@Nonnull
|
||||||
public ItemComposition getItemDefinition(int id)
|
public ItemComposition getItemComposition(int id)
|
||||||
{
|
{
|
||||||
assert this.isClientThread() : "getItemDefinition must be called on client thread";
|
assert this.isClientThread() : "getItemDefinition must be called on client thread";
|
||||||
return getRSItemDefinition(id);
|
return getRSItemDefinition(id);
|
||||||
|
|||||||
Reference in New Issue
Block a user