Companion

object Companion

Functions

Link copied to clipboard
fun single(item: ItemStack): ResultSupplier

Return a single item lambda (supplier) what not consider shift click. If you want to consider shift click, use timesSingle instead of this.

Link copied to clipboard
fun timesSingle(item: ItemStack): ResultSupplier

Returns a single item lambda that considers shift click. If a player does not shift chick, the following second expression will not execute (returns 'item' directly.).