Class FuelRegistry

java.lang.Object
dev.architectury.registry.fuel.FuelRegistry

public final class FuelRegistry extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    get(net.minecraft.world.item.ItemStack stack)
    Returns the burn time of an ItemStack.
    static void
    register(int time, net.minecraft.world.level.ItemLike... items)
    Registers a burn time for items.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • register

      public static void register(int time, net.minecraft.world.level.ItemLike... items)
      Registers a burn time for items.
      Parameters:
      time - the new burn time, use 0 for non-fuel items, and -1 to use vanilla logic
      items - the array of items to register for
    • get

      public static int get(net.minecraft.world.item.ItemStack stack)
      Returns the burn time of an ItemStack.
      Parameters:
      stack - the stack
      Returns:
      the burn time of the stack, returns 0 if not a fuel