mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 17:22:17 +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,36 @@
|
||||
package noppes.npcs.roles;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import noppes.npcs.entity.EntityNPCInterface;
|
||||
|
||||
public abstract class RoleInterface {
|
||||
public EntityNPCInterface npc;
|
||||
public HashMap<String,String> dataString = new HashMap<String,String>();
|
||||
public RoleInterface(EntityNPCInterface npc){
|
||||
this.npc = npc;
|
||||
}
|
||||
public abstract NBTTagCompound writeToNBT(NBTTagCompound compound);
|
||||
public abstract void readFromNBT(NBTTagCompound compound);
|
||||
public abstract void interact(EntityPlayer player);
|
||||
public void killed(){};
|
||||
public void delete(){};
|
||||
|
||||
public boolean aiShouldExecute() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean aiContinueExecute() {
|
||||
return false;
|
||||
}
|
||||
public void aiStartExecuting() {}
|
||||
public void aiUpdateTask() {}
|
||||
public boolean defendOwner() {
|
||||
return false;
|
||||
}
|
||||
public void clientUpdate() {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user