mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 16:12:17 +00:00
Proper Reformating
This commit is contained in:
1 parent
ce75880aba
commit
180d257024
1179 files changed
+59847
-61583
No files matched your search
@@ -6,74 +6,79 @@ import noppes.npcs.roles.JobBard;
|
||||
import noppes.npcs.scripted.constants.JobType;
|
||||
|
||||
public class ScriptJobBard extends ScriptJobInterface implements IJobBard {
|
||||
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;
|
||||
}
|
||||
private JobBard job;
|
||||
|
||||
/**
|
||||
*
|
||||
* @param i The id of the instrument. IDs:
|
||||
* 0 - None,
|
||||
* 1 - Banjo,
|
||||
* 2 - Violin,
|
||||
* 3 - Guitar,
|
||||
* 4 - Harp,
|
||||
* 5 - FrenchHorn
|
||||
*/
|
||||
public void setInstrument(int i) {
|
||||
this.job.setInstrument(i);
|
||||
}
|
||||
public ScriptJobBard(EntityNPCInterface npc) {
|
||||
super(npc);
|
||||
this.job = (JobBard) npc.jobInterface;
|
||||
}
|
||||
|
||||
public int getInstrumentId() {
|
||||
return this.job.getInstrument().ordinal();
|
||||
}
|
||||
@Override
|
||||
public int getType() {
|
||||
return JobType.BARD;
|
||||
}
|
||||
|
||||
public void setMinRange(int range) {
|
||||
this.job.minRange = range;
|
||||
}
|
||||
public int getMinRange() {
|
||||
return this.job.minRange;
|
||||
}
|
||||
/**
|
||||
* @return The song the bard is playing
|
||||
*/
|
||||
public String getSong() {
|
||||
return job.song;
|
||||
}
|
||||
|
||||
public void setMaxRange(int range) {
|
||||
this.job.maxRange = range;
|
||||
}
|
||||
public int getMaxRange() {
|
||||
return this.job.maxRange;
|
||||
}
|
||||
/**
|
||||
* @param song The song you want the bard to play
|
||||
*/
|
||||
public void setSong(String song) {
|
||||
job.song = song;
|
||||
npc.script.clientNeedsUpdate = true;
|
||||
}
|
||||
|
||||
public void setStreaming(boolean streaming) {
|
||||
this.job.isStreamer = streaming;
|
||||
}
|
||||
public boolean getStreaming() {
|
||||
return this.job.isStreamer;
|
||||
}
|
||||
/**
|
||||
* @param i The id of the instrument. IDs:
|
||||
* 0 - None,
|
||||
* 1 - Banjo,
|
||||
* 2 - Violin,
|
||||
* 3 - Guitar,
|
||||
* 4 - Harp,
|
||||
* 5 - FrenchHorn
|
||||
*/
|
||||
public void setInstrument(int i) {
|
||||
this.job.setInstrument(i);
|
||||
}
|
||||
|
||||
public void hasOffRange(boolean value) {
|
||||
this.job.hasOffRange = value;
|
||||
}
|
||||
public boolean hasOffRange() {
|
||||
return this.job.hasOffRange;
|
||||
}
|
||||
public int getInstrumentId() {
|
||||
return this.job.getInstrument().ordinal();
|
||||
}
|
||||
|
||||
public void setMinRange(int range) {
|
||||
this.job.minRange = range;
|
||||
}
|
||||
|
||||
public int getMinRange() {
|
||||
return this.job.minRange;
|
||||
}
|
||||
|
||||
public void setMaxRange(int range) {
|
||||
this.job.maxRange = range;
|
||||
}
|
||||
|
||||
public int getMaxRange() {
|
||||
return this.job.maxRange;
|
||||
}
|
||||
|
||||
public void setStreaming(boolean streaming) {
|
||||
this.job.isStreamer = streaming;
|
||||
}
|
||||
|
||||
public boolean getStreaming() {
|
||||
return this.job.isStreamer;
|
||||
}
|
||||
|
||||
public void hasOffRange(boolean value) {
|
||||
this.job.hasOffRange = value;
|
||||
}
|
||||
|
||||
public boolean hasOffRange() {
|
||||
return this.job.hasOffRange;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user