CraftView

data class CraftView(val materials: Map<CoordinateComponent, ItemStack>, val result: ItemStack)

A view of crafting gui.

Parameters

materials

A mapping of materials what were placed by a player.

result

An item that is placed the result item slot.

Constructors

Link copied to clipboard
constructor(materials: Map<CoordinateComponent, ItemStack>, result: ItemStack)

Properties

Link copied to clipboard
Link copied to clipboard
val result: ItemStack

Functions

Link copied to clipboard

Returns a cloned view

Link copied to clipboard
fun drop(world: World, location: Location)

Drops all contained items.

Link copied to clipboard

Returns a view what is excluded empty slot

Link copied to clipboard
fun getDecremented(shiftUsed: Boolean, recipe: CRecipe, relations: MappedRelation): CraftView

Returns a decremented view what calculated by specified arguments.