mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 07:19:05 +00:00
Used interfaces in implementations instead of the real classes for most scripted classes.
This commit is contained in:
1 parent
6896cec417
commit
cf33b90b26
63 files changed
+466
-551
No files matched your search
@@ -2,8 +2,8 @@ package noppes.npcs.scripted.roles;
|
||||
|
||||
import noppes.npcs.entity.EntityNPCInterface;
|
||||
import noppes.npcs.roles.JobHealer;
|
||||
import noppes.npcs.scripted.entity.ScriptLivingBase;
|
||||
import noppes.npcs.scripted.constants.JobType;
|
||||
import noppes.npcs.scripted.interfaces.entity.IEntityLivingBase;
|
||||
|
||||
public class ScriptJobHealer extends ScriptJobInterface{
|
||||
private JobHealer job;
|
||||
@@ -12,7 +12,7 @@ public class ScriptJobHealer extends ScriptJobInterface{
|
||||
this.job = (JobHealer) npc.jobInterface;
|
||||
}
|
||||
|
||||
public void heal(ScriptLivingBase entity, float amount){
|
||||
public void heal(IEntityLivingBase entity, float amount){
|
||||
job.heal(entity.getMCEntity(), amount);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user