CraftView

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

A view of crafting gui.

Parameters

materials

A mapping of materials what were placed by a player.

Constructors

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

Properties

Link copied to clipboard

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.