mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 16:09:05 +00:00
38 lines
889 B
Java
38 lines
889 B
Java
package noppes.npcs.roles;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraft.nbt.NBTTagCompound;
|
|
import noppes.npcs.entity.EntityNPCInterface;
|
|
|
|
public abstract class JobInterface {
|
|
public EntityNPCInterface npc;
|
|
|
|
public boolean overrideMainHand = false;
|
|
public boolean overrideOffHand = false;
|
|
|
|
public ItemStack mainhand = null;
|
|
public ItemStack offhand = null;
|
|
|
|
public JobInterface(EntityNPCInterface npc){
|
|
this.npc = npc;
|
|
}
|
|
public abstract NBTTagCompound writeToNBT(NBTTagCompound nbttagcompound);
|
|
public abstract void readFromNBT(NBTTagCompound nbttagcompound);
|
|
public void killed(){};
|
|
public void delete(){};
|
|
|
|
public boolean aiShouldExecute() {
|
|
return false;
|
|
}
|
|
|
|
public boolean aiContinueExecute() {
|
|
return aiShouldExecute();
|
|
}
|
|
public void aiStartExecuting() {}
|
|
public void aiUpdateTask() {}
|
|
public void reset() {}
|
|
public void resetTask() {}
|
|
|
|
|
|
}
|