Search in sources :

Example 1 with FurnaceFuelBurnTimeEvent

use of net.minecraftforge.event.furnace.FurnaceFuelBurnTimeEvent in project MinecraftForge by MinecraftForge.

the class ForgeEventFactory method getItemBurnTime.

public static int getItemBurnTime(@Nonnull ItemStack itemStack, int burnTime, @Nullable RecipeType<?> recipeType) {
    FurnaceFuelBurnTimeEvent event = new FurnaceFuelBurnTimeEvent(itemStack, burnTime, recipeType);
    MinecraftForge.EVENT_BUS.post(event);
    return event.getBurnTime();
}
Also used : FurnaceFuelBurnTimeEvent(net.minecraftforge.event.furnace.FurnaceFuelBurnTimeEvent)

Aggregations

FurnaceFuelBurnTimeEvent (net.minecraftforge.event.furnace.FurnaceFuelBurnTimeEvent)1