diff options
| author | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2015-04-25 00:05:51 +0100 |
|---|---|---|
| committer | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2015-04-25 00:05:51 +0100 |
| commit | 84d260f4d50b4fc91c7263e87981170941d8da70 (patch) | |
| tree | 98243affb35551f16f376ebf69f174a0dfbb7605 /src/main/java/darkknight/jewelrycraft/worldGen | |
| parent | 3e53920504f6daf81ccea6144eb00a68658860c2 (diff) | |
Fixed a Jenkins issue
Diffstat (limited to 'src/main/java/darkknight/jewelrycraft/worldGen')
| -rw-r--r-- | src/main/java/darkknight/jewelrycraft/worldGen/village/VillageHandler.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/main/java/darkknight/jewelrycraft/worldGen/village/VillageHandler.java b/src/main/java/darkknight/jewelrycraft/worldGen/village/VillageHandler.java new file mode 100644 index 0000000..95d20ee --- /dev/null +++ b/src/main/java/darkknight/jewelrycraft/worldGen/village/VillageHandler.java @@ -0,0 +1,27 @@ +/** + * + */ +package darkknight.jewelrycraft.worldGen.village; + +import java.io.IOException; +import net.minecraft.world.gen.structure.MapGenStructureIO; +import cpw.mods.fml.common.event.FMLPreInitializationEvent; +import cpw.mods.fml.common.registry.VillagerRegistry; +import darkknight.jewelrycraft.JewelrycraftMod; +import darkknight.jewelrycraft.util.Variables; + +public class VillageHandler +{ + public static void preInit(FMLPreInitializationEvent e) throws IOException + { + VillagerRegistry.instance().registerVillagerId(3000); + VillagerRegistry.instance().registerVillageTradeHandler(3000, new JCTrades()); + VillagerRegistry.instance().registerVillageCreationHandler(new VillageJewelryHandler()); + try{ + MapGenStructureIO.func_143031_a(ComponentJewelry.class, Variables.MODID + ":Jewelry"); + } + catch(Throwable e2){ + JewelrycraftMod.logger.severe("Error registering Jewelrycraft Structures with Vanilla Minecraft: this is expected in versions earlier than 1.7.10"); + } + } +} |
