ShopSlot

data class ShopSlot(val slot: Int, val display: ItemStack, val action: ShopAction?, val priceCalculation: String?, val processor: String?)

A slot in a ShopGui

Author

MarkusTieger

Since

0.2.0

See also

Constructors

Link copied to clipboard
constructor(slot: Int, display: ItemStack, action: ShopAction?, priceCalculation: String?, processor: String?)

Properties

Link copied to clipboard
Link copied to clipboard
val display: ItemStack

The displayed item

Link copied to clipboard

The price javascript calculation you have to pay to perform the configured actions

Link copied to clipboard
Link copied to clipboard
val slot: Int

The slot id

Functions

Link copied to clipboard
fun calculatePrice(player: Player): BigDecimal

A method for calculating the price for a player.

Link copied to clipboard
fun compile()

Compiles the configured scripts.

Link copied to clipboard
fun process(player: Player, item: ItemStack): ItemStack

Processes an ItemStack using lua.