diff --git a/src/main/java/com/watschman/beeriffic/Beeriffic.java b/src/main/java/com/watschman/beeriffic/Beeriffic.java index e4c1ebe..925d111 100644 --- a/src/main/java/com/watschman/beeriffic/Beeriffic.java +++ b/src/main/java/com/watschman/beeriffic/Beeriffic.java @@ -1,23 +1,12 @@ package com.watschman.beeriffic; import com.watschman.beeriffic.bees.EnumSpecies; -import forestry.api.apiculture.BeeManager; -import forestry.api.genetics.AlleleManager; -import forestry.api.genetics.IAllele; -import net.minecraft.block.Block; -import net.minecraft.item.Item; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; -import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; -import net.minecraftforge.fml.common.registry.GameRegistry; -import net.minecraftforge.event.RegistryEvent; import org.apache.logging.log4j.Logger; -import java.util.HashMap; -import java.util.Map; - @Mod(modid = Beeriffic.MOD_ID, name = Beeriffic.MOD_NAME, version = Beeriffic.VERSION, dependencies = "required-after:forestry@[5.8.1,]") public class Beeriffic { @@ -66,63 +55,4 @@ LOGGER.info("PostInit Started"); LOGGER.info("PostInit Ended"); } - - /** - * Forge will automatically look up and bind blocks to the fields in this class - * based on their registry name. - */ - @GameRegistry.ObjectHolder(MOD_ID) - public static class Blocks { - /* - public static final MySpecialBlock mySpecialBlock = null; // placeholder for special block below - */ - } - - /** - * Forge will automatically look up and bind items to the fields in this class - * based on their registry name. - */ - @GameRegistry.ObjectHolder(MOD_ID) - public static class Items { - /* - public static final ItemBlock mySpecialBlock = null; // itemblock for the block above - public static final MySpecialItem mySpecialItem = null; // placeholder for special item below - */ - } - - /** - * This is a special class that listens to registry events, to allow creation of mod blocks and items at the proper time. - */ - @Mod.EventBusSubscriber - public static class ObjectRegistryHandler { - /** - * Listen for the register event for creating custom items - */ - @SubscribeEvent - public static void addItems(RegistryEvent.Register event) { - /* - event.getRegistry().register(new ItemBlock(Blocks.myBlock).setRegistryName(MOD_ID, "myBlock")); - event.getRegistry().register(new MySpecialItem().setRegistryName(MOD_ID, "mySpecialItem")); - */ - } - - /** - * Listen for the register event for creating custom blocks - */ - @SubscribeEvent - public static void addBlocks(RegistryEvent.Register event) { - /* - event.getRegistry().register(new MySpecialBlock().setRegistryName(MOD_ID, "mySpecialBlock")); - */ - } - } - /* EXAMPLE ITEM AND BLOCK - you probably want these in separate files - public static class MySpecialItem extends Item { - - } - - public static class MySpecialBlock extends Block { - - } - */ }