FurnaceSmeltEvent
Namespace Mc.Scripting.Events · Kind struct (ref)
public ref struct FurnaceSmeltEvent : IEventA furnace, smoker or blast furnace finished smelting an item. Cancel to keep the input unsmelted.
| Id | 266 |
| Key | mc:furnace_smelt |
| Cancellable | yes |
| Fired by the engine | yes |
| Field | Type | Handlers may write | Description |
|---|---|---|---|
World |
world |
no (readonly) | The dimension. |
Pos |
BlockPos |
no (readonly) | The furnace. |
Source |
item |
no (readonly) | The ingredient. |
Result |
item |
no (readonly) | The product. |
Set e.Cancelled = true in a handler to cancel it; lower-priority handlers are skipped unless they subscribed with receiveCancelled: true.
Constructors
Section titled “Constructors”| Member | Description |
|---|---|
FurnaceSmeltEvent(World world, BlockPos pos, ItemView source, ItemView result) |
Creates the event (for firing it from a plugin; native code builds its own). |
Constructor
Section titled “Constructor”public FurnaceSmeltEvent(World world, BlockPos pos, ItemView source, ItemView result)Creates the event (for firing it from a plugin; native code builds its own). Signature of API 1.0.
Parameters
| Name | Type | Description |
|---|---|---|
world |
World |
|
pos |
BlockPos |
|
source |
ItemView |
|
result |
ItemView |
Properties
Section titled “Properties”| Member | Description |
|---|---|
bool Cancelled { get; set; } |
Cancelling stops lower-priority handlers (unless they opt in) and the action itself. |
BlockPos Pos { get; } |
The furnace. |
ItemView Result { get; } |
The product. |
ItemView Source { get; } |
The ingredient. |
World World { get; } |
The dimension. |
static ushort CatalogueId { get; } |
Catalogue id (stable ABI). |
static bool IsCancellable { get; } |
Whether handlers can cancel the event. |
static string Key { get; } |
Registry key of the event. |
Cancelled
Section titled “Cancelled”public bool Cancelled { get; set; }Cancelling stops lower-priority handlers (unless they opt in) and the action itself.
public BlockPos Pos { get; }The furnace.
Result
Section titled “Result”public ItemView Result { get; }The product.
Source
Section titled “Source”public ItemView Source { get; }The ingredient.
public World World { get; }The dimension.
CatalogueId
Section titled “CatalogueId”public static ushort CatalogueId { get; }Catalogue id (stable ABI).
IsCancellable
Section titled “IsCancellable”public static bool IsCancellable { get; }Whether handlers can cancel the event.
public static string Key { get; }Registry key of the event.