!quest interface api

This commit is contained in:
Jules 2022-01-17 17:44:20 +01:00
parent feeb3aea78
commit a90a001bb5
4 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,6 @@
package net.Indyuce.mmocore.quest;
public interface AbstractQuest {
public String getName();
}

View File

@ -0,0 +1,4 @@
package net.Indyuce.mmocore.quest;
public class PlayerQuestData<T extends AbstractQuest> {
}

View File

@ -0,0 +1,16 @@
package net.Indyuce.mmocore.quest;
import net.Indyuce.mmocore.api.player.PlayerData;
public interface QuestModule<T extends AbstractQuest, U extends PlayerQuestData<T>> {
/**
* @return Quest with given name
*/
public T getQuestOrThrow(String id);
/**
* @return Info about the completed quests from a specific player
*/
public U getQuestData(PlayerData playerData);
}

View File

@ -0,0 +1,6 @@
COMPATIBILITY TODO
- Quests https://www.spigotmc.org/resources/quests.3711/
- BeautyQuests https://www.spigotmc.org/resources/beautyquests.39255/
- BetonQuest https://www.spigotmc.org/resources/betonquest-all-your-adventure-supplies-versatile-quests-in-depth-conversations.2117/
- QuestCreator https://www.spigotmc.org/resources/questcreator-new-1-18-support.38734/