openrune: ItemDefinition -> ItemComposition

This commit is contained in:
therealunull
2020-12-13 12:47:59 -05:00
parent 81577a4271
commit 528e9dd5e7
8 changed files with 16 additions and 16 deletions

View File

@@ -386,7 +386,7 @@ public interface Client extends GameShell
* @see ItemID
*/
@Nonnull
ItemDefinition getItemDefinition(int id);
ItemComposition getItemDefinition(int id);
/**
* Creates an item icon sprite with passed variables.

View File

@@ -101,7 +101,7 @@ public class Constants
/**
* High alchemy = shop price * HIGH_ALCHEMY_MULTIPLIER
*
* @see ItemDefinition#getPrice
* @see ItemComposition#getPrice
*/
public static final float HIGH_ALCHEMY_MULTIPLIER = 0.6f;

View File

@@ -5,7 +5,7 @@ import javax.annotation.Nullable;
/**
* Represents the template of a specific item type.
*/
public interface ItemDefinition
public interface ItemComposition
{
/**
* Gets the items name.

View File

@@ -25,10 +25,10 @@
package net.runelite.api.events;
import lombok.Data;
import net.runelite.api.ItemDefinition;
import net.runelite.api.ItemComposition;
/**
* An event called after a new {@link ItemDefinition} is created and
* An event called after a new {@link ItemComposition} is created and
* its data is initialized.
*/
@Data
@@ -37,5 +37,5 @@ public class PostItemDefinition implements Event
/**
* The newly created item.
*/
private ItemDefinition itemDefinition;
private ItemComposition itemComposition;
}