当前位置: 首页>>代码示例>>Java>>正文


Java MapGenStructureIO类代码示例

本文整理汇总了Java中net.minecraft.world.gen.structure.MapGenStructureIO的典型用法代码示例。如果您正苦于以下问题:Java MapGenStructureIO类的具体用法?Java MapGenStructureIO怎么用?Java MapGenStructureIO使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


MapGenStructureIO类属于net.minecraft.world.gen.structure包,在下文中一共展示了MapGenStructureIO类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initiateStructures

import net.minecraft.world.gen.structure.MapGenStructureIO; //导入依赖的package包/类
public static void initiateStructures() throws Throwable
{
    if (!MapGenVillageMoon.initialized)
    {
        MapGenStructureIO.registerStructure(StructureVillageStartMoon.class, "MoonVillage");
        MapGenStructureIO.func_143031_a(StructureComponentVillageField.class, "MoonField1");
        MapGenStructureIO.func_143031_a(StructureComponentVillageField2.class, "MoonField2");
        MapGenStructureIO.func_143031_a(StructureComponentVillageHouse.class, "MoonHouse");
        MapGenStructureIO.func_143031_a(StructureComponentVillageRoadPiece.class, "MoonRoadPiece");
        MapGenStructureIO.func_143031_a(StructureComponentVillagePathGen.class, "MoonPath");
        MapGenStructureIO.func_143031_a(StructureComponentVillageTorch.class, "MoonTorch");
        MapGenStructureIO.func_143031_a(StructureComponentVillageStartPiece.class, "MoonWell");
        MapGenStructureIO.func_143031_a(StructureComponentVillageWoodHut.class, "MoonWoodHut");
    }

    MapGenVillageMoon.initialized = true;
}
 
开发者ID:4Space,项目名称:4Space-5,代码行数:18,代码来源:MapGenVillageMoon.java

示例2: init

import net.minecraft.world.gen.structure.MapGenStructureIO; //导入依赖的package包/类
public static void init() {
	if (CoreInit.isInit()) {
		CoreInit.log.info("Loading Villager Handler");
		VillagerRegistry.instance().registerVillageCreationHandler(new VillageHouseScientist.VillageManager());
		professionScientist = new VillagerRegistry.VillagerProfession(CoreInit.modid + ":vScientist", "tomsmod:textures/models/villager_scientist.png", "textures/entity/zombie_villager/zombie_librarian.png");
		VillagerRegistry.instance().register(professionScientist);
		MapGenStructureIO.registerStructureComponent(VillageHouseScientist.class, Configs.Modid + ":vh_scientist");
		VillagerRegistry.VillagerCareer career1 = new VillagerRegistry.VillagerCareer(professionScientist, Configs.Modid + ":vScientist1");
		career1.addTrade(1, new CircuitRecipe(CraftingMaterial.ELECTRIC_MOTOR, 0.25F, 3));
		career1.addTrade(2, new CircuitRecipe(CraftingMaterial.BASIC_CIRCUIT, 1), new CircuitRecipe(CraftingMaterial.NORMAL_CIRCUIT, 2), new CircuitRecipe(CraftingMaterial.ADVANCED_CIRCUIT, 5));
		career1.addTrade(3, new EliteBlueprintRecipe());
		career1.addTrade(4, new CircuitRecipe(CraftingMaterial.ELITE_CIRCUIT, 12));
		career1.addTrade(5, new AdvFluixReactorBlueprintRecipe());
		career1.addTrade(6, new CircuitRecipe(CraftingMaterial.QUANTUM_CIRCUIT, 35));
	} else {
		CoreInit.log.fatal("Somebody tries to corrupt the villager handler!");
		throw new RuntimeException("Somebody tries to corrupt the villager handler!");
	}
}
 
开发者ID:tom5454,项目名称:Toms-Mod,代码行数:20,代码来源:VillageInit.java

示例3: registerInit

import net.minecraft.world.gen.structure.MapGenStructureIO; //导入依赖的package包/类
static void registerInit(@SuppressWarnings("UnusedParameters") FMLInitializationEvent event) {

		//TileEntityの登録 =============================================================================================

		GameRegistry.registerTileEntity(TileEntityClayCrucible.class, "tileClayCrucible");
		GameRegistry.registerTileEntity(TileEntityClayCrucibleHeater.class, "tileClayCrucibleHeater");

		//WorldGeneratorの登録 =========================================================================================
		GameRegistry.registerWorldGenerator(new OreGenerator(), 2);

		//チャンク生成イベントのフック
		MinecraftForge.EVENT_BUS.register(new AMMStructureEventHandler());

		MapGenStructureIO.registerStructure(StructureTestStart.class, "Test");
		MapGenStructureIO.func_143031_a(StructureTestStart.ComponentTest1.class, "Test1");
		MapGenStructureIO.func_143031_a(StructureTestStart.ComponentTest2.class, "Test2");
		MapGenStructureIO.func_143031_a(StructureTestStart.ComponentTest3.class, "Test3");
		MapGenStructureIO.func_143031_a(StructureTestStart.ComponentTest4.class, "Test4");

		MapGenStructureIO.registerStructure(StructureTiamatStart.class, "TiamatComet");
		MapGenStructureIO.func_143031_a(ComponentTiamatCenter.class, "TiamaitCometCenter");
		MapGenStructureIO.func_143031_a(ComponentTiamatCenterLine.class, "TiamatCometCenterLine");

		EntityRegistry.registerModEntity(EntityHoeHoeMan.class, "HoeHoeMan", 0, AntiMatterModCore.MOD_ID, 250, 1, false);//中ボスの追加
		if (FMLCommonHandler.instance().getSide() == Side.CLIENT) {
			RenderingRegistry.registerEntityRenderingHandler(EntityHoeHoeMan.class, new RenderHoeHoeMan());
		}

		//村のチェストの中身============================================================================================
		//ChestGenHooks.addItem(ChestGenHooks.VILLAGE_BLACKSMITH, new WeightedRandomChestContent(ingot_01,1,1,5,5));
		//ChestGenHooks.addItem(ChestGenHooks.VILLAGE_BLACKSMITH, new WeightedRandomChestContent(ingot_01,2,1,5,5));
		ChestGenHooks village =ChestGenHooks.getInfo(ChestGenHooks.VILLAGE_BLACKSMITH);
		village.setMax(village.getMax()+10);
		village.setMin(village.getMin()+10);
	}
 
开发者ID:Team-Antimatter-Mod,项目名称:AntiMatterMod,代码行数:36,代码来源:AntiMatterModRegistry.java

示例4: preInit

import net.minecraft.world.gen.structure.MapGenStructureIO; //导入依赖的package包/类
public void preInit(FMLPreInitializationEvent event) {
    Config.init(event);
    ModCreativeTab.INSTANCE = new ModCreativeTab();
    AngelsteelToolHelper.initMaterials();
    registry = new BlockRegistry();
    registry.preInit();
    EnchantEventHandler.init();
    networkWrapper = NetworkRegistry.INSTANCE.newSimpleChannel(ConstantMod.modId);
    networkWrapper.registerMessage(PacketBurst.class, PacketBurst.class, 0, Side.CLIENT);

    networkWrapper.registerMessage(PacketFairyUpdate.class, PacketFairyUpdate.class, 1, Side.CLIENT);
    networkWrapper.registerMessage(PacketFairyRequestUpdate.class, PacketFairyRequestUpdate.class, 2, Side.SERVER);
    networkWrapper.registerMessage(PacketAngelJump.PacketAngelJumpHandler.class, PacketAngelJump.class, 4, Side.SERVER);
    networkWrapper.registerMessage(PacketSyncQuestData.PacketSyncQuestDataHandler.class, PacketSyncQuestData.class, 5, Side.CLIENT);


    if (Config.villageGeneration) {
        VillagerRegistry.instance().registerVillageCreationHandler(new AuraHutHandler());
    }
    MapGenStructureIO.registerStructureComponent(ComponentAuraHut.class, "aura:auraHut");
}
 
开发者ID:AdlyTempleton,项目名称:Aura-Cascade,代码行数:22,代码来源:CommonProxy.java

示例5: registerOmotholPieces

import net.minecraft.world.gen.structure.MapGenStructureIO; //导入依赖的package包/类
public static void registerOmotholPieces()
{
	MapGenStructureIO.registerStructureComponent(StructureOmotholPieces.House1.class, "OmtBH");
	MapGenStructureIO.registerStructureComponent(StructureOmotholPieces.Field1.class, "OmtDF");
	MapGenStructureIO.registerStructureComponent(StructureOmotholPieces.Field2.class, "OmtF");
	MapGenStructureIO.registerStructureComponent(StructureOmotholPieces.Torch.class, "OmtL");
	MapGenStructureIO.registerStructureComponent(StructureOmotholPieces.Hall.class, "OmtPH");
	MapGenStructureIO.registerStructureComponent(StructureOmotholPieces.House4Garden.class, "OmtSH");
	MapGenStructureIO.registerStructureComponent(StructureOmotholPieces.WoodHut.class, "OmtSmH");
	MapGenStructureIO.registerStructureComponent(StructureOmotholPieces.Church.class, "OmtST");
	MapGenStructureIO.registerStructureComponent(StructureOmotholPieces.House2.class, "OmtS");
	MapGenStructureIO.registerStructureComponent(StructureOmotholPieces.Start.class, "OmtStart");
	MapGenStructureIO.registerStructureComponent(StructureOmotholPieces.Path.class, "OmtSR");
	MapGenStructureIO.registerStructureComponent(StructureOmotholPieces.House3.class, "OmtTRH");
	MapGenStructureIO.registerStructureComponent(StructureOmotholPieces.HouseBanker.class, "OmtBH");
	MapGenStructureIO.registerStructureComponent(StructureOmotholPieces.Well.class, "OmtW");
}
 
开发者ID:Shinoow,项目名称:AbyssalCraft,代码行数:18,代码来源:StructureOmotholPieces.java

示例6: func_143049_a

import net.minecraft.world.gen.structure.MapGenStructureIO; //导入依赖的package包/类
public static void func_143049_a() {
   MapGenStructureIO.func_143031_a(ComponentNetherBridgeCrossing3.class, "NeBCr");
   MapGenStructureIO.func_143031_a(ComponentNetherBridgeEnd.class, "NeBEF");
   MapGenStructureIO.func_143031_a(ComponentNetherBridgeStraight.class, "NeBS");
   MapGenStructureIO.func_143031_a(ComponentNetherBridgeCorridor3.class, "NeCCS");
   MapGenStructureIO.func_143031_a(ComponentNetherBridgeCorridor4.class, "NeCTB");
   MapGenStructureIO.func_143031_a(ComponentNetherBridgeEntrance.class, "NeCE");
   MapGenStructureIO.func_143031_a(ComponentNetherBridgeCrossing2.class, "NeSCSC");
   MapGenStructureIO.func_143031_a(ComponentNetherBridgeCorridor.class, "NeSCLT");
   MapGenStructureIO.func_143031_a(ComponentNetherBridgeCorridor5.class, "NeSC");
   MapGenStructureIO.func_143031_a(ComponentNetherBridgeCorridor2.class, "NeSCRT");
   MapGenStructureIO.func_143031_a(ComponentNetherBridgeNetherStalkRoom.class, "NeCSR");
   MapGenStructureIO.func_143031_a(ComponentNetherBridgeThrone.class, "NeMT");
   MapGenStructureIO.func_143031_a(ComponentNetherBridgeCrossing.class, "NeRC");
   MapGenStructureIO.func_143031_a(ComponentNetherBridgeStairs.class, "NeSR");
   MapGenStructureIO.func_143031_a(ComponentNetherBridgeStartPiece.class, "NeStart");
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:18,代码来源:StructureNetherBridgePieces.java

示例7: func_143027_a

import net.minecraft.world.gen.structure.MapGenStructureIO; //导入依赖的package包/类
private void func_143027_a(World p_143027_1_) {
   if(this.field_143029_e == null) {
      this.field_143029_e = (MapGenStructureData)p_143027_1_.func_72943_a(MapGenStructureData.class, this.func_143025_a());
      if(this.field_143029_e == null) {
         this.field_143029_e = new MapGenStructureData(this.func_143025_a());
         p_143027_1_.func_72823_a(this.func_143025_a(), this.field_143029_e);
      } else {
         NBTTagCompound var2 = this.field_143029_e.func_143041_a();
         Iterator var3 = var2.func_74758_c().iterator();

         while(var3.hasNext()) {
            NBTBase var4 = (NBTBase)var3.next();
            if(var4.func_74732_a() == 10) {
               NBTTagCompound var5 = (NBTTagCompound)var4;
               if(var5.func_74764_b("ChunkX") && var5.func_74764_b("ChunkZ")) {
                  int var6 = var5.func_74762_e("ChunkX");
                  int var7 = var5.func_74762_e("ChunkZ");
                  StructureStart var8 = MapGenStructureIO.func_143035_a(var5, p_143027_1_);
                  this.field_75053_d.put(Long.valueOf(ChunkCoordIntPair.func_77272_a(var6, var7)), var8);
               }
            }
         }
      }
   }

}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:27,代码来源:MapGenStructure.java

示例8: func_143021_a

import net.minecraft.world.gen.structure.MapGenStructureIO; //导入依赖的package包/类
public NBTTagCompound func_143021_a(int p_143021_1_, int p_143021_2_) {
   NBTTagCompound var3 = new NBTTagCompound();
   var3.func_74778_a("id", MapGenStructureIO.func_143033_a(this));
   var3.func_74768_a("ChunkX", p_143021_1_);
   var3.func_74768_a("ChunkZ", p_143021_2_);
   var3.func_74782_a("BB", this.field_75074_b.func_143047_a("BB"));
   NBTTagList var4 = new NBTTagList("Children");
   Iterator var5 = this.field_75075_a.iterator();

   while(var5.hasNext()) {
      StructureComponent var6 = (StructureComponent)var5.next();
      var4.func_74742_a(var6.func_143010_b());
   }

   var3.func_74782_a("Children", var4);
   this.func_143022_a(var3);
   return var3;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:19,代码来源:StructureStart.java

示例9: init

import net.minecraft.world.gen.structure.MapGenStructureIO; //导入依赖的package包/类
@Mod.EventHandler
public void init(FMLInitializationEvent event) {
	ModBlocksPreItems.init();
	ModMisc.init();
	ModOreDictRegister.init();
	ModTileEntities.init();
	ModAchievements.init();
	ModBiomes.init();
	ModEntities.init();
	ModPotions.init();
	ModDungeonLoot.init();
	proxy.registerRenderers();
	GameRegistry.registerFuelHandler(new FuelHandler());
	GameRegistry.registerWorldGenerator(new ModWorldGen(), 0);
	VillagerRegistry.instance().registerVillageCreationHandler(new VillageHouseHandler());
	MapGenStructureIO.func_143031_a(VillageStructureHouse.class, Reference.MOD_ID+":HouseStructure");
	MinecraftForge.EVENT_BUS.register(BucketHandler.INSTANCE);
	MinecraftForge.EVENT_BUS.register(new ChatHandler());
	MinecraftForge.TERRAIN_GEN_BUS.register(new FlowerHandler());
	LogHelper.info("World Gen initialised successfully!");
	NetworkRegistry.INSTANCE.registerGuiHandler(this, new GuiHandler());
}
 
开发者ID:OmgImAlexis,项目名称:TheStuffMod,代码行数:23,代码来源:allthethings.java

示例10: initiateStructures

import net.minecraft.world.gen.structure.MapGenStructureIO; //导入依赖的package包/类
public static void initiateStructures() throws Throwable
{
    if (!SCVenusMapGenVillage.initialized)
    {
        MapGenStructureIO.func_143034_b(SCVenusStructureVillageStart.class, "VenusVillage");
        MapGenStructureIO.func_143031_a(SCVenusComponentVillageField.class, "VenusField1");
        MapGenStructureIO.func_143031_a(SCVenusComponentVillageField2.class, "VenusField2");
        MapGenStructureIO.func_143031_a(SCVenusComponentVillageHouse.class, "VenusHouse");
        MapGenStructureIO.func_143031_a(SCVenusComponentVillageRoadPiece.class, "VenusRoadPiece");
        MapGenStructureIO.func_143031_a(SCVenusComponentVillagePathGen.class, "VenusPath");
        MapGenStructureIO.func_143031_a(SCVenusComponentVillageTorch.class, "VenusTorch");
        MapGenStructureIO.func_143031_a(SCVenusComponentVillageStartPiece.class, "VenusWell");
        MapGenStructureIO.func_143031_a(SCVenusComponentVillageWoodHut.class, "VenusWoodHut");
    }

    SCVenusMapGenVillage.initialized = true;
}
 
开发者ID:4Space,项目名称:4-Space-Legacy,代码行数:18,代码来源:SCVenusMapGenVillage.java

示例11: registerVillagers

import net.minecraft.world.gen.structure.MapGenStructureIO; //导入依赖的package包/类
@SubscribeEvent
public static void registerVillagers(RegistryEvent.Register<VillagerRegistry.VillagerProfession> event)
{
	VillagerRegistry.instance().registerVillageCreationHandler(new VillagerStructures.CaveHandler());
	MapGenStructureIO.registerStructureComponent(VillagerStructures.Cave.class, "btweagles:caveStructure");

	event.getRegistry().register(ModVillagers.professionKrog);
	event.getRegistry().register(ModVillagers.professionTorg);
}
 
开发者ID:DarkMorford,项目名称:BetterThanWeagles,代码行数:10,代码来源:CommonProxy.java

示例12: preInit

import net.minecraft.world.gen.structure.MapGenStructureIO; //导入依赖的package包/类
public void preInit(FMLPreInitializationEvent e) {
	CapabilityDailiesHandler.register();
	DailiesPacketHandler.init();
	NetworkRegistry.INSTANCE.registerGuiHandler(DailiesMod.instance, new DailiesGuiHandler());
	MapGenStructureIO.registerStructureComponent(BaileysShopVillagePiece.class, "baileyshop");
	VillagerRegistry.instance().registerVillageCreationHandler(new VillageHandlerBailey());
}
 
开发者ID:ToroCraft,项目名称:Dailies,代码行数:8,代码来源:CommonProxy.java

示例13: initiateStructures

import net.minecraft.world.gen.structure.MapGenStructureIO; //导入依赖的package包/类
public void initiateStructures() throws Throwable {
	if (!VillageMapGen.initialized) {
		MapGenStructureIO.registerStructure(VillageStructureStart.class, settings.planetName + "Village");
		MapGenStructureIO.func_143031_a(VillageStructureComponentField.class, settings.planetName + "Field1");
		MapGenStructureIO.func_143031_a(VillageStructureComponentField2.class, settings.planetName + "Field2");
		MapGenStructureIO.func_143031_a(VillageStructureComponentHouse.class, settings.planetName + "House");
		MapGenStructureIO.func_143031_a(VillageStructureComponentRoadPiece.class, settings.planetName + "RoadPiece");
		MapGenStructureIO.func_143031_a(VillageStructureComponentPathGen.class, settings.planetName + "Path");
		MapGenStructureIO.func_143031_a(VillageStructureComponentTorch.class, settings.planetName + "Torch");
		MapGenStructureIO.func_143031_a(VillageStructureComponentStartPiece.class, settings.planetName + "Well");
		MapGenStructureIO.func_143031_a(VillageStructureComponentWoodHut.class, settings.planetName + "WoodHut");
	}

	VillageMapGen.initialized = true;
}
 
开发者ID:4Space,项目名称:4Space-5,代码行数:16,代码来源:VillageMapGen.java

示例14: registerStructures

import net.minecraft.world.gen.structure.MapGenStructureIO; //导入依赖的package包/类
private static void registerStructures() {
	// Underworld Water Temple
	MapGenStructureIO.registerStructure(MapGenUnderworldWaterTemple.Start.class, underworldWaterTempleName);
	MapGenStructureIO.registerStructureComponent(UnderworldWaterTemple.class, underworldWaterTempleName + "pc");
	
	// Underworld Tower
	MapGenStructureIO.registerStructure(MapGenUnderworldTower.Start.class, underworldTowerName);
	MapGenStructureIO.registerStructureComponent(UnderworldTower.class, underworldTowerName + "pc");
	
	// Underworld Rampart
	MapGenStructureIO.registerStructure(MapGenUnderworldRampart.Start.class, underworldRampartName);
	MapGenStructureIO.registerStructureComponent(UnderworldRampart.class, underworldRampartName + "pc");
	
}
 
开发者ID:sblectric,项目名称:LightningCraft,代码行数:15,代码来源:LCStructures.java

示例15: callRegistry

import net.minecraft.world.gen.structure.MapGenStructureIO; //导入依赖的package包/类
public static void callRegistry(FMLPreInitializationEvent e) {
	register(e, ObjectList.getItemList());
	register(e, ObjectList.getBlockList());
	Recipes.register();
	if(e.getSide() == Side.CLIENT){
			RenderingRegistry.registerEntityRenderingHandler(MyEntityFireworkRocket.class, RenderFireworkEntity.INSTANCE);
	}
	EntityRegistry.registerModEntity(new ResourceLocation("simplecorn:entitypopfirework"),MyEntityFireworkRocket.class, "entitypopfirework", 132, Corn.instance, 64, 3, true);
	
	MapGenStructureIO.registerStructureComponent(ComponentCornField.class, "Vicf");
	VillagerRegistry.instance().registerVillageCreationHandler(new CornWorldGen());
	RecipeSorter.register("simplecorn:fireworks", MyRecipeFireworks.class, Category.SHAPELESS, "after:minecraft:fireworks");
}
 
开发者ID:cleverpanda,项目名称:SimpleCorn,代码行数:14,代码来源:MasterRegistrar.java


注:本文中的net.minecraft.world.gen.structure.MapGenStructureIO类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。