mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-11 17:52:52 +00:00
@@ -30,11 +30,6 @@ import com.l2jserver.service.game.ai.AIScript;
|
||||
* @author <a href="http://www.rogiel.com">Rogiel</a>
|
||||
*/
|
||||
public class NPC extends Actor {
|
||||
/**
|
||||
* The NPC template ID
|
||||
*/
|
||||
private final NPCTemplateID templateID;
|
||||
|
||||
/**
|
||||
* Creates a new instance
|
||||
*
|
||||
@@ -42,21 +37,21 @@ public class NPC extends Actor {
|
||||
* the {@link NPC} {@link TemplateID}
|
||||
*/
|
||||
public NPC(NPCTemplateID templateID) {
|
||||
this.templateID = templateID;
|
||||
super(templateID);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the NPC template ID
|
||||
*/
|
||||
public NPCTemplateID getTemplateID() {
|
||||
return templateID;
|
||||
return (NPCTemplateID) templateID;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the NPC template
|
||||
*/
|
||||
public NPCTemplate getTemplate() {
|
||||
return templateID.getTemplate();
|
||||
return (NPCTemplate) templateID.getTemplate();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user