mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 07:35:11 +00:00
1.7.10 Files
Files added
This commit is contained in:
1 parent
393ea9b463
commit
a31efb2dc3
1768 files changed
+84831
No files matched your search
@@ -0,0 +1,32 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user