openrune: NPCDefinition -> NPCComposition

This commit is contained in:
therealunull
2020-12-13 12:49:41 -05:00
parent 528e9dd5e7
commit d3e276adbb
11 changed files with 30 additions and 30 deletions

View File

@@ -941,7 +941,7 @@ public interface Client extends GameShell
* @return the corresponding NPC composition
* @see NpcID
*/
NPCDefinition getNpcDefinition(int npcId);
NPCComposition getNpcDefinition(int npcId);
/**
* Gets an array of all world areas

View File

@@ -59,7 +59,7 @@ public interface NPC extends Actor
*
* @return the composition
*/
NPCDefinition getDefinition();
NPCComposition getDefinition();
/**
* Get the composition for this NPC and transform it if required
@@ -67,7 +67,7 @@ public interface NPC extends Actor
* @return the transformed NPC
*/
@Nullable
NPCDefinition getTransformedDefinition();
NPCComposition getTransformedDefinition();
void onDefinitionChanged(NPCDefinition composition);
void onDefinitionChanged(NPCComposition composition);
}

View File

@@ -27,7 +27,7 @@ package net.runelite.api;
/**
* Information about a specific {@link NpcID}
*/
public interface NPCDefinition
public interface NPCComposition
{
/**
* Gets the name of the NPC.
@@ -87,7 +87,7 @@ public interface NPCDefinition
*
* @throws NullPointerException if {@link #getConfigs()} is null
*/
NPCDefinition transform();
NPCComposition transform();
/**
* How many tiles wide this NPC is

View File

@@ -25,10 +25,10 @@
package net.runelite.api.events;
import lombok.Data;
import net.runelite.api.NPCDefinition;
import net.runelite.api.NPCComposition;
/**
* An event where an action of an {@link NPCDefinition} has changed.
* An event where an action of an {@link NPCComposition} has changed.
*/
@Data
public class NpcActionChanged implements Event
@@ -36,7 +36,7 @@ public class NpcActionChanged implements Event
/**
* The NPC composition that has been changed.
*/
private NPCDefinition npcDefinition;
private NPCComposition npcComposition;
/**
* The raw index of the modified action.
*/