Package dev.architectury.registry.fuel
Class FuelRegistry
java.lang.Object
dev.architectury.registry.fuel.FuelRegistry
-
Method Summary
-
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, use0
for non-fuel items, and-1
to use vanilla logicitems
- the array of items to register for
-
get
public static int get(net.minecraft.world.item.ItemStack stack) Returns the burn time of anItemStack
.- Parameters:
stack
- the stack- Returns:
- the burn time of the stack, returns
0
if not a fuel
-