mirror of https://github.com/PikaMug/Quests.git
62 lines
1.7 KiB
Java
62 lines
1.7 KiB
Java
/*
|
|
* Copyright (c) PikaMug and contributors
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
package me.pikamug.quests.module;
|
|
|
|
import java.util.Map;
|
|
import java.util.UUID;
|
|
|
|
public interface CustomReward {
|
|
|
|
String getModuleName();
|
|
|
|
@SuppressWarnings("unused")
|
|
Map.Entry<String, Short> getModuleItem();
|
|
|
|
String getName();
|
|
|
|
void setName(final String name);
|
|
|
|
String getAuthor();
|
|
|
|
void setAuthor(final String author);
|
|
|
|
String getDisplay();
|
|
|
|
void setDisplay(final String display);
|
|
|
|
Map.Entry<String, Short> getItem();
|
|
|
|
void setItem(final String type, final short durability);
|
|
|
|
Map<String, Object> getData();
|
|
|
|
Map<String, String> getDescriptions();
|
|
|
|
/**
|
|
* Add a new prompt<p>
|
|
*
|
|
* Note that the "defaultValue" Object will be cast to a String internally
|
|
*
|
|
* @param title Prompt name
|
|
* @param description Description of expected input
|
|
* @param defaultValue Value to be used if input is not received
|
|
*/
|
|
void addStringPrompt(final String title, final String description, final Object defaultValue);
|
|
|
|
/**
|
|
* Give loot reward to a player
|
|
*
|
|
* @param uuid UUID of player being tested
|
|
* @param data Map of custom reward data
|
|
*/
|
|
void giveReward(UUID uuid, Map<String, Object> data);
|
|
}
|