Home Commands Examples Getting Started With Scripts Global Keywords
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.hasResult as bool
event.hasResult

Return Type: bool

hasResult() as bool
script.zs
// FurnaceFuelBurnTimeEvent.hasResult() as bool;
event.hasResult();

Return Type: bool

Getter
script.zs
// FurnaceFuelBurnTimeEvent.itemStack as IItemStack
event.itemStack

Return Type: IItemStack

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

Return Type: IRecipeManager<Recipe<Container>>

Getter
script.zs
// FurnaceFuelBurnTimeEvent.result as Result
event.result

Return Type: EventResult

Setter
script.zs
// FurnaceFuelBurnTimeEvent.result = (result as Result);
event.result = myResult;

Parameters:

result Type: EventResult
result() as Result
script.zs
// FurnaceFuelBurnTimeEvent.result() as Result;
event.result();

Return Type: EventResult

result(result as Result)
script.zs
// FurnaceFuelBurnTimeEvent.result(result as Result);
event.result(myResult);

Parameters:

result Type: EventResult
setAllow()
sets the event's result to allow
script.zs
// FurnaceFuelBurnTimeEvent.setAllow();
event.setAllow();
setDefault()
sets the event's result to default
script.zs
// FurnaceFuelBurnTimeEvent.setDefault();
event.setDefault();
setDeny()
sets the event's result to deny
script.zs
// FurnaceFuelBurnTimeEvent.setDeny();
event.setDeny();