Added plant oil and associated recipes - need to compile a list for future alchemy items
This commit is contained in:
parent
050d1185a7
commit
03fa7b2712
9 changed files with 50 additions and 11 deletions
20
src/main/java/WayofTime/bloodmagic/fuel/FuelHandler.java
Normal file
20
src/main/java/WayofTime/bloodmagic/fuel/FuelHandler.java
Normal file
|
@ -0,0 +1,20 @@
|
|||
package WayofTime.bloodmagic.fuel;
|
||||
|
||||
import WayofTime.bloodmagic.item.ItemComponent;
|
||||
import WayofTime.bloodmagic.registry.ModItems;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.fml.common.IFuelHandler;
|
||||
|
||||
public class FuelHandler implements IFuelHandler
|
||||
{
|
||||
@Override
|
||||
public int getBurnTime(ItemStack fuel)
|
||||
{
|
||||
if (fuel != null && fuel.getItem() == ModItems.itemComponent && fuel.getMetadata() == ItemComponent.getStack(ItemComponent.SAND_COAL).getMetadata())
|
||||
{
|
||||
return 1600;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue