Package-level declarations

Types

Link copied to clipboard
data class Purchasable(val item: Identifier, val price: Number, val amount: Int = 1, val additionalItems: HashMap<Identifier, Int> = hashMapOf(), val onlyOne: Boolean = false)
Link copied to clipboard
interface Sellable

Marks that the item can be sold

Link copied to clipboard
data class ShopHistory(val limit: Int, val lastSold: MutableList<ItemStack>) : MongoConvert<MongoShopHistory>

Shop history data for a player

Link copied to clipboard
data class ShopModel(val name: String, val items: List<Purchasable>)

A model for shop data

Link copied to clipboard
object ShopParser

A JSON parser for the shop data

Link copied to clipboard
interface Unsellable : Sellable

Marks that the item can NOT be sold

Functions

Link copied to clipboard
fun shopUi(player: MacrocosmPlayer, model: ShopModel): GUI<ForInventorySixByNine>