-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a6bae33
commit c0319cc
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
src/main/java/dev/dubhe/anvilcraft/event/CauldronFluidContentEventListener.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,17 @@ | ||
package dev.dubhe.anvilcraft.event; | ||
|
||
import dev.dubhe.anvilcraft.AnvilCraft; | ||
import dev.dubhe.anvilcraft.block.OilCauldronBlock; | ||
import dev.dubhe.anvilcraft.init.ModBlocks; | ||
import dev.dubhe.anvilcraft.init.ModFluids; | ||
import net.neoforged.bus.api.SubscribeEvent; | ||
import net.neoforged.fml.common.EventBusSubscriber; | ||
import net.neoforged.neoforge.fluids.RegisterCauldronFluidContentEvent; | ||
|
||
@EventBusSubscriber(modid = AnvilCraft.MOD_ID, bus = EventBusSubscriber.Bus.MOD) | ||
public class CauldronFluidContentEventListener { | ||
@SubscribeEvent | ||
public static void registerCauldronFluidContent(RegisterCauldronFluidContentEvent event) { | ||
event.register(ModBlocks.OIL_CAULDRON.get(), ModFluids.OIL.get(), 1000, OilCauldronBlock.LEVEL); | ||
} | ||
} |
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