mirror of
https://github.com/dragonruler1000/hdm-mod.git
synced 2025-06-29 16:39:32 -05:00
added a subtle knife item and a omelet food.
This commit is contained in:
parent
4ba4baf956
commit
60d2e3d601
8 changed files with 52 additions and 6 deletions
|
@ -4,6 +4,7 @@ import net.minecraft.block.Block;
|
|||
import net.minecraft.block.Blocks;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import net.minecraftforge.event.RegistryEvent;
|
||||
import net.minecraftforge.eventbus.api.IEventBus;
|
||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||
import net.minecraftforge.fml.InterModComms;
|
||||
import net.minecraftforge.fml.common.Mod;
|
||||
|
@ -15,6 +16,7 @@ import net.minecraftforge.fml.event.server.FMLServerStartingEvent;
|
|||
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import us.minecraftchest2.hdm_mod.init.ItemInit;
|
||||
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
|
@ -23,7 +25,8 @@ import java.util.stream.Collectors;
|
|||
public class Hdm_mod {
|
||||
|
||||
// Directly reference a log4j logger.
|
||||
private static final Logger LOGGER = LogManager.getLogger();
|
||||
public static final Logger LOGGER = LogManager.getLogger();
|
||||
public static final String MOD_ID = "hdm_mod";
|
||||
|
||||
public Hdm_mod() {
|
||||
// Register the setup method for modloading
|
||||
|
@ -37,6 +40,12 @@ public class Hdm_mod {
|
|||
|
||||
// Register ourselves for server and other game events we are interested in
|
||||
MinecraftForge.EVENT_BUS.register(this);
|
||||
final IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
|
||||
|
||||
modEventBus.addListener(this::setup);
|
||||
ItemInit.ITEMS.register(modEventBus);
|
||||
|
||||
MinecraftForge.EVENT_BUS.register(this);
|
||||
}
|
||||
|
||||
private void setup(final FMLCommonSetupEvent event) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue