public class FurnaceFuelBurnTimeEvent extends Event
FurnaceFuelBurnTimeEvent
is fired when determining the fuel value for an ItemStack. Item.getItemBurnTime(ItemStack)
instead.ForgeEventFactory.getItemBurnTime(ItemStack)
.Cancelable
to prevent later handlers from changing the value.HasResult
MinecraftForge.EVENT_BUS
.Event.HasResult, Event.Result
Constructor and Description |
---|
FurnaceFuelBurnTimeEvent(ItemStack itemStack,
int burnTime) |
Modifier and Type | Method and Description |
---|---|
int |
getBurnTime()
The resulting value of this event, the burn time for the ItemStack.
|
ItemStack |
getItemStack()
Get the ItemStack "fuel" in question.
|
void |
setBurnTime(int burnTime)
Set the burn time for the given ItemStack.
|
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public FurnaceFuelBurnTimeEvent(@Nonnull ItemStack itemStack, int burnTime)
@Nonnull public ItemStack getItemStack()
public void setBurnTime(int burnTime)
public int getBurnTime()
Item.getItemBurnTime(ItemStack)
.