openrune: NPCDefinition -> NPCComposition
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user