Home Commands Examples Getting Started With Scripts Global Keywords 1.21 Migration Guide
NeoForgeBracketDumpers NeoForgeBracketHandlers NeoForgeBracketValidators

FurnaceFuelBurnTimeEvent

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.neoforge.api.event.FurnaceFuelBurnTimeEvent;

Extends

FurnaceFuelBurnTimeEvent extends Event.

Implements

FurnaceFuelBurnTimeEvent implements the following interfaces:

ICancellableEvent

Listening to the event

This event can be listened to like so:

script.zs
events.register<crafttweaker.neoforge.api.event.FurnaceFuelBurnTimeEvent>(event => {
println("FurnaceFuelBurnTimeEvent ran!");
});

Members

Getter
script.zs
// FurnaceFuelBurnTimeEvent.burnTime as int
event.burnTime

Return Type: int

Setter
script.zs
// FurnaceFuelBurnTimeEvent.burnTime = (burnTime as int);
event.burnTime = myInt;

Parameters:

burnTime Type: int
cancel()
Cancels the event. Same as setCanceled(true)
script.zs
// FurnaceFuelBurnTimeEvent.cancel();
event.cancel();
Getter
script.zs
// FurnaceFuelBurnTimeEvent.canceled as bool
event.canceled

Return Type: bool

Setter
script.zs
// FurnaceFuelBurnTimeEvent.canceled = (cancel as bool);
event.canceled = myBool;

Parameters:

cancel Type: bool
canceled() as bool
script.zs
// FurnaceFuelBurnTimeEvent.canceled() as bool;
event.canceled();

Return Type: bool

canceled(cancel as bool)
script.zs
// FurnaceFuelBurnTimeEvent.canceled(cancel as bool);
event.canceled(myBool);

Parameters:

cancel Type: bool
Getter
script.zs
// FurnaceFuelBurnTimeEvent.itemStack as IItemStack
event.itemStack

Return Type: IItemStack

Getter
script.zs
// FurnaceFuelBurnTimeEvent.recipeType as IRecipeManager<Recipe<RecipeInput>>
event.recipeType

Return Type: IRecipeManager<Recipe<RecipeInput>>