mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-12-27 05:28:25 +01:00
!quest interface api
This commit is contained in:
parent
feeb3aea78
commit
a90a001bb5
@ -0,0 +1,6 @@
|
||||
package net.Indyuce.mmocore.quest;
|
||||
|
||||
public interface AbstractQuest {
|
||||
|
||||
public String getName();
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package net.Indyuce.mmocore.quest;
|
||||
|
||||
public class PlayerQuestData<T extends AbstractQuest> {
|
||||
}
|
16
src/main/java/net/Indyuce/mmocore/quest/QuestModule.java
Normal file
16
src/main/java/net/Indyuce/mmocore/quest/QuestModule.java
Normal 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);
|
||||
}
|
6
src/main/java/net/Indyuce/mmocore/quest/TODO.txt
Normal file
6
src/main/java/net/Indyuce/mmocore/quest/TODO.txt
Normal 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/
|
Loading…
Reference in New Issue
Block a user