mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 20:44:08 +00:00
32 lines
669 B
Java
32 lines
669 B
Java
package noppes.npcs.scripted.roles;
|
|||
|
|
|
||
|
|
import noppes.npcs.entity.EntityNPCInterface;
|
||
|
|
import noppes.npcs.roles.JobBard;
|
||
|
|
import noppes.npcs.scripted.constants.JobType;
|
||
|
|
|
||
|
|
public class ScriptJobBard extends ScriptJobInterface{
|
||
|
|
private JobBard job;
|
||
|
|
public ScriptJobBard(EntityNPCInterface npc){
|
||
|
|
super(npc);
|
||
|
|
this.job = (JobBard) npc.jobInterface;
|
||
|
|
}
|
||
|
|
@Override
|
||
|
|
public int getType(){
|
||
|
|
return JobType.BARD;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @return The song the bard is playing
|
||
|
|
*/
|
||
|
|
public String getSong(){
|
||
|
|
return job.song;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @param song The song you want the bard to play
|
||
|
|
*/
|
||
|
|
public void setSong(String song){
|
||
|
|
job.song = song;
|
||
|
|
npc.script.clientNeedsUpdate = true;
|
||
|
|
}
|
||
|
|
}
|