Quests/api/src/main/java/me/pikamug/quests/quests/components/Requirements.java

78 lines
2.0 KiB
Java
Raw Normal View History

2022-02-07 08:32:12 +01:00
/*
* Copyright (c) PikaMug and contributors
2022-02-07 08:32:12 +01:00
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
* LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2022-02-07 08:32:12 +01:00
*/
package me.pikamug.quests.quests.components;
import java.util.List;
import java.util.Map;
2022-01-06 16:59:21 +01:00
public interface Requirements {
int getMoney();
void setMoney(final int money);
int getQuestPoints();
void setQuestPoints(final int questPoints);
2022-04-12 05:52:07 +02:00
int getExp();
void setExp(final int exp);
List<?> getItems();
2022-01-06 16:59:21 +01:00
List<Boolean> getRemoveItems();
void setRemoveItems(final List<Boolean> removeItems);
List<String> getNeededQuestIds();
2022-01-06 16:59:21 +01:00
void setNeededQuestIds(final List<String> neededQuests);
2022-01-06 16:59:21 +01:00
List<String> getBlockQuestIds();
2022-01-06 16:59:21 +01:00
void setBlockQuestIds(final List<String> blockQuests);
2022-01-06 16:59:21 +01:00
List<String> getPermissions();
void setPermissions(final List<String> permissions);
List<String> getMcmmoSkills();
void setMcmmoSkills(final List<String> mcmmoSkills);
List<Integer> getMcmmoAmounts();
void setMcmmoAmounts(final List<Integer> mcmmoAmounts);
String getHeroesPrimaryClass();
void setHeroesPrimaryClass(final String heroesPrimaryClass);
String getHeroesSecondaryClass();
void setHeroesSecondaryClass(final String heroesSecondaryClass);
Map<String, Map<String, Object>> getCustomRequirements();
void setCustomRequirements(final Map<String, Map<String, Object>> customRequirements);
List<String> getDetailsOverride();
void setDetailsOverride(final List<String> detailsOverride);
2022-03-10 23:22:11 +01:00
/**
* Check if quest has at least one requirement
*
* @return true if quest contains an requirement
*/
boolean hasRequirement();
}