add setter for NPCComposition
This commit is contained in:
@@ -69,5 +69,7 @@ public interface NPC extends Actor
|
|||||||
@Nullable
|
@Nullable
|
||||||
NPCComposition getTransformedComposition();
|
NPCComposition getTransformedComposition();
|
||||||
|
|
||||||
|
void setComposition(NPCComposition composition);
|
||||||
|
|
||||||
void onDefinitionChanged(NPCComposition composition);
|
void onDefinitionChanged(NPCComposition composition);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -102,6 +102,13 @@ public abstract class RSNPCMixin implements RSNPC
|
|||||||
npcIndex = id;
|
npcIndex = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
@Override
|
||||||
|
public void setComposition(NPCComposition composition)
|
||||||
|
{
|
||||||
|
setComposition((RSNPCComposition) composition);
|
||||||
|
}
|
||||||
|
|
||||||
@FieldHook(value = "definition", before = true)
|
@FieldHook(value = "definition", before = true)
|
||||||
@Inject
|
@Inject
|
||||||
public void onDefinitionChanged(RSNPCComposition composition)
|
public void onDefinitionChanged(RSNPCComposition composition)
|
||||||
|
|||||||
@@ -9,6 +9,9 @@ public interface RSNPC extends RSActor, NPC
|
|||||||
@Override
|
@Override
|
||||||
RSNPCComposition getComposition();
|
RSNPCComposition getComposition();
|
||||||
|
|
||||||
|
@Import("definition")
|
||||||
|
void setComposition(RSNPCComposition composition);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
int getIndex();
|
int getIndex();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user