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
|
||||
*/
|
||||
@Nonnull
|
||||
ItemComposition getItemDefinition(int id);
|
||||
ItemComposition getItemComposition(int id);
|
||||
|
||||
/**
|
||||
* Creates an item icon sprite with passed variables.
|
||||
|
||||
@@ -200,7 +200,7 @@ public class ItemManager
|
||||
@Override
|
||||
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
|
||||
public String getCollectiveName(Client client)
|
||||
{
|
||||
ItemComposition definition = client.getItemDefinition(itemId);
|
||||
ItemComposition definition = client.getItemComposition(itemId);
|
||||
|
||||
if (definition == null)
|
||||
{
|
||||
|
||||
@@ -60,7 +60,7 @@ public class SingleItemRequirement implements ItemRequirement
|
||||
@Override
|
||||
public String getCollectiveName(Client client)
|
||||
{
|
||||
ItemComposition definition = client.getItemDefinition(itemId);
|
||||
ItemComposition definition = client.getItemComposition(itemId);
|
||||
|
||||
if (definition == null)
|
||||
{
|
||||
|
||||
@@ -2038,7 +2038,7 @@ public abstract class RSClientMixin implements RSClient
|
||||
@Inject
|
||||
@Override
|
||||
@Nonnull
|
||||
public ItemComposition getItemDefinition(int id)
|
||||
public ItemComposition getItemComposition(int id)
|
||||
{
|
||||
assert this.isClientThread() : "getItemDefinition must be called on client thread";
|
||||
return getRSItemDefinition(id);
|
||||
|
||||
Reference in New Issue
Block a user