Class QuestData
java.lang.Object
com.pixelmonmod.pixelmon.storage.playerData.QuestData
- All Implemented Interfaces:
ISaveData
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
abandonQuest
(String filename, UUID identifier) get
(net.minecraft.server.level.ServerPlayer player, boolean update) net.minecraft.server.level.ServerPlayer
getProgressForQuest
(String filename) getProgressForQuest
(String filename, boolean underscoreSpaces) void
void
readFromNBT
(net.minecraft.nbt.CompoundTag nbt) void
void
receiveInternal
(String identifier, boolean breakOnSuccess, Object... args) void
receiveMultiple
(String[] identifiers, Object[][] args) void
receiveMultipleInternal
(String[] identifiers, Object[][] args, boolean breakOnSuccess) void
setTracking
(QuestProgress progress) void
writeToNBT
(net.minecraft.nbt.CompoundTag nbt)
-
Constructor Details
-
QuestData
public QuestData()
-
-
Method Details
-
get
-
getPlayer
public net.minecraft.server.level.ServerPlayer getPlayer() -
getProgress
-
getProgressForQuest
-
getProgressForQuest
-
receiveInternal
-
receive
- Throws:
InvalidQuestArgsException
-
receiveMultipleInternal
-
receiveMultiple
- Throws:
InvalidQuestArgsException
-
abandonQuest
-
setTracking
-
hideTracking
public void hideTracking() -
writeToNBT
public void writeToNBT(net.minecraft.nbt.CompoundTag nbt) - Specified by:
writeToNBT
in interfaceISaveData
-
readFromNBT
public void readFromNBT(net.minecraft.nbt.CompoundTag nbt) - Specified by:
readFromNBT
in interfaceISaveData
-