forked from RebelKeithy/Aquaculture
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fish as compostables in Composter/Worm Farm
Add fuel values for driftwood and Wooden Fillet Knife
- Loading branch information
1 parent
a7192b8
commit 6728f43
Showing
6 changed files
with
57 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/main/java/com/teammetallurgy/aquaculture/misc/FurnaceFuel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.teammetallurgy.aquaculture.misc; | ||
|
||
import com.teammetallurgy.aquaculture.Aquaculture; | ||
import com.teammetallurgy.aquaculture.init.AquaItems; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraftforge.event.furnace.FurnaceFuelBurnTimeEvent; | ||
import net.minecraftforge.eventbus.api.SubscribeEvent; | ||
import net.minecraftforge.fml.common.Mod; | ||
|
||
@Mod.EventBusSubscriber(modid = Aquaculture.MOD_ID) | ||
public class FurnaceFuel { | ||
|
||
@SubscribeEvent | ||
public static void fuel(FurnaceFuelBurnTimeEvent event) { | ||
ItemStack stack = event.getItemStack(); | ||
if (stack.getItem() == AquaItems.WOODEN_FILLET_KNIFE) { | ||
event.setBurnTime(150); | ||
} else if (stack.getItem() == AquaItems.DRIFTWOOD) { | ||
event.setBurnTime(600); | ||
} | ||
} | ||
} |