public class FurnaceFuelBurnTimeEvent
extends net.minecraftforge.eventbus.api.Event
FurnaceFuelBurnTimeEvent
is fired when determining the fuel value for an ItemStack. IForgeItem.getBurnTime(ItemStack)
instead.ForgeEventFactory#getItemBurnTime(ItemStack)
.Cancelable
to prevent later handlers from changing the value.HasResult
MinecraftForge.EVENT_BUS
.Modifier and Type | Field and Description |
---|---|
private int |
burnTime |
private ItemStack |
itemStack |
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.
|
@Nonnull private final ItemStack itemStack
private int burnTime
public FurnaceFuelBurnTimeEvent(@Nonnull ItemStack itemStack, int burnTime)
@Nonnull public ItemStack getItemStack()
public void setBurnTime(int burnTime)
public int getBurnTime()