mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 01:29:05 +00:00
Optimized NBT access of player data when checking quest completion, player data variable is passed down to lower functions.
Player's quests are checked for completion every couple seconds now.
This commit is contained in:
1 parent
632e92f82e
commit
1ebf747302
13 files changed
+70
-69
No files matched your search
@@ -4,6 +4,7 @@ import java.util.Vector;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import noppes.npcs.controllers.PlayerData;
|
||||
import noppes.npcs.scripted.handler.data.IQuestInterface;
|
||||
import noppes.npcs.scripted.handler.data.IQuestObjective;
|
||||
|
||||
@@ -11,7 +12,7 @@ public abstract class QuestInterface implements IQuestInterface {
|
||||
public int questId;
|
||||
public abstract void writeEntityToNBT(NBTTagCompound compound);
|
||||
public abstract void readEntityFromNBT(NBTTagCompound compound);
|
||||
public abstract boolean isCompleted(EntityPlayer player);
|
||||
public abstract boolean isCompleted(PlayerData player);
|
||||
public abstract void handleComplete(EntityPlayer player);
|
||||
public abstract Vector<String> getQuestLogStatus(EntityPlayer player);
|
||||
public abstract IQuestObjective[] getObjectives(EntityPlayer var1);
|
||||
|
||||
Reference in new issue
Block a user