endstone::BlockCookEvent
Called when an ItemStack is successfully cooked in a block.
Bases: endstone::Cancellable< BlockEvent >
Functions:
Name | Description |
---|---|
BlockCookEvent | |
getResult | Gets the resultant ItemStack for this event. |
getSource | Gets the smelted ItemStack for this event. |
setResult | Sets 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:
result
new result ItemStack
Last updated on