Skip to Content
⚠ Under Construction
ReferenceC++ APIBlockCookEvent

endstone::BlockCookEvent

Called when an ItemStack is successfully cooked in a block.

Bases: endstone::Cancellable< BlockEvent >

Functions:

NameDescription
BlockCookEvent
getResultGets the resultant ItemStack for this event.
getSourceGets the smelted ItemStack for this event.
setResultSets the resultant ItemStack for this event.

BlockCookEvent

BlockCookEvent(std::unique_ptr<Block> block, std::unique_ptr<ItemStack> source, std::unique_ptr<ItemStack> result)

getResult

const ItemStack &getResult() const

Gets the resultant ItemStack for this event.

Returns:

smelting result ItemStack

getSource

const ItemStack &getSource() const

Gets the smelted ItemStack for this event.

Returns:

smelting source ItemStack

setResult

void setResult(std::unique_ptr<ItemStack> result)

Sets the resultant ItemStack for this event.

Parameters:

Last updated on