Files
CustomNPC-Plus/src/main/java/noppes/npcs/scripted/roles/ScriptJobBard.java
T

32 lines
669 B
Java
Raw Normal View History

2018-09-13 12:03:28 -04:00
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;
}
}