Skip to content

FurnaceSmeltEvent

Namespace Mc.Scripting.Events · Kind struct (ref)

public ref struct FurnaceSmeltEvent : IEvent

A 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.

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).
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
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.
public bool Cancelled { get; set; }

Cancelling stops lower-priority handlers (unless they opt in) and the action itself.

public BlockPos Pos { get; }

The furnace.

public ItemView Result { get; }

The product.

public ItemView Source { get; }

The ingredient.

public World World { get; }

The dimension.

public static ushort CatalogueId { get; }

Catalogue id (stable ABI).

public static bool IsCancellable { get; }

Whether handlers can cancel the event.

public static string Key { get; }

Registry key of the event.

BlockPos · IEvent · ItemView · World