Package net.minecraftforge.event.furnace
Class FurnaceFuelBurnTimeEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.furnace.FurnaceFuelBurnTimeEvent
public class FurnaceFuelBurnTimeEvent
extends net.minecraftforge.eventbus.api.Event
FurnaceFuelBurnTimeEvent is fired when determining the fuel value for an ItemStack. To set the burn time of your own item, use
IForgeItem.getBurnTime(ItemStack, RecipeType) instead.This event is fired from
ForgeEventFactory.getItemBurnTime(ItemStack, int, RecipeType).This event is
Cancelable to prevent later handlers from changing the value.This event does not have a result.
Event.HasResultThis event is fired on the
MinecraftForge.EVENT_BUS.- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Eventnet.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate intprivate final @NotNull ItemStackprivate final @Nullable RecipeType<?>
- 
Constructor SummaryConstructorsConstructorDescriptionFurnaceFuelBurnTimeEvent(@NotNull ItemStack itemStack, int burnTime, @Nullable RecipeType<?> recipeType) 
- 
Method SummaryModifier and TypeMethodDescriptionintThe resulting value of this event, the burn time for the ItemStack.@NotNull ItemStackGet the ItemStack "fuel" in question.@Nullable RecipeType<?>Get the recipe type for which to obtain the burn time, if known.voidsetBurnTime(int burnTime) Set the burn time for the given ItemStack.Methods inherited from class net.minecraftforge.eventbus.api.EventgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
- 
Field Details- 
itemStack
- 
recipeType
- 
burnTimeprivate int burnTime
 
- 
- 
Constructor Details- 
FurnaceFuelBurnTimeEventpublic FurnaceFuelBurnTimeEvent(@NotNull @NotNull ItemStack itemStack, int burnTime, @Nullable @Nullable RecipeType<?> recipeType) 
 
- 
- 
Method Details- 
getItemStackGet the ItemStack "fuel" in question.
- 
getRecipeTypeGet the recipe type for which to obtain the burn time, if known.
- 
setBurnTimepublic void setBurnTime(int burnTime) Set the burn time for the given ItemStack. Setting it to 0 will prevent the item from being used as fuel, overriding vanilla's decision.
- 
getBurnTimepublic int getBurnTime()The resulting value of this event, the burn time for the ItemStack. A value of 0 will prevent the item from being used as fuel, overriding vanilla's decision.
 
-