net.minecraft.world.gen.structure.MapGenStructureIO Java Examples

The following examples show how to use net.minecraft.world.gen.structure.MapGenStructureIO. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: StructureTofuVillagePieces.java    From TofuCraftReload with MIT License 5 votes vote down vote up
public static void registerVillagePieces() {
    MapGenStructureIO.registerStructureComponent(House.class, "TofuViH");
    MapGenStructureIO.registerStructureComponent(WoodHut.class, "TofuViWH");
    MapGenStructureIO.registerStructureComponent(Torch.class, "TofuViT");
    MapGenStructureIO.registerStructureComponent(TallTofuHouse.class, "TofuViTTH");
    MapGenStructureIO.registerStructureComponent(FarmLand.class, "TofuViTFL");
    MapGenStructureIO.registerStructureComponent(Start.class, "TofuViS");
    MapGenStructureIO.registerStructureComponent(Path.class, "TofuViP");
    MapGenStructureIO.registerStructureComponent(Well.class, "TofuViW");
    MapGenStructureIO.registerStructureComponent(TorchNew.class, "TofuViTN");
}
 
Example #2
Source File: TofuMain.java    From TofuCraftReload with MIT License 5 votes vote down vote up
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
    proxy.preInit(event);

    logger = event.getModLog();

    TofuEntityRegister.entitySpawn();

    TofuCompat.preInit();

    GameRegistry.registerWorldGenerator(new TofuOreGenerator(), 0);

    MapGenStructureIO.registerStructure(MapGenTofuVillage.Start.class,"TofuVillage");
    StructureTofuVillagePieces.registerVillagePieces();
    MapGenStructureIO.registerStructure(StructureTofuMineshaftStart.class,"TofuMineshaft");
    StructureTofuMineshaftPieces.registerStructurePieces();
    MapGenStructureIO.registerStructure(MapGenTofuCastle.Start.class, "TofuCastle");
    TofuCastlePiece.registerTofuCastlePiece();

    NetworkRegistry.INSTANCE.registerGuiHandler(this, new TofuGuiHandler());


    zunda = new DamageSource("zunda") {
        @Override
        public ITextComponent getDeathMessage(EntityLivingBase entityLivingBaseIn) {
            String s = "death.attack.zunda";
            String s1 = s + ".player";

            return new TextComponentString(entityLivingBaseIn.getDisplayName().getFormattedText() + " ").appendSibling(new TextComponentTranslation(s1, new Object[]{entityLivingBaseIn.getDisplayName()}));
        }
    }.setDamageIsAbsolute();

    TOFU_DIMENSION = DimensionType.register("Tofu World", "_tofu", TofuConfig.dimensionID, WorldProviderTofu.class, false);
    DimensionManager.registerDimension(TofuConfig.dimensionID, TOFU_DIMENSION);

    TofuVillages.register();
}
 
Example #3
Source File: VillagerCreationTofu.java    From TofuCraftReload with MIT License 4 votes vote down vote up
public static void registerComponents() {
    MapGenStructureIO.registerStructureComponent(TofuVillagerHouse.class,
            TofuMain.MODID + ":tofu_house");

}
 
Example #4
Source File: StructureTofuMineshaftPieces.java    From TofuCraftReload with MIT License 4 votes vote down vote up
public static void registerStructurePieces() {
    MapGenStructureIO.registerStructureComponent(StructureTofuMineshaftPieces.Corridor.class, "TMSCorridor");
    MapGenStructureIO.registerStructureComponent(StructureTofuMineshaftPieces.Cross.class, "TMSCrossing");
    MapGenStructureIO.registerStructureComponent(StructureTofuMineshaftPieces.Room.class, "TMSRoom");
    MapGenStructureIO.registerStructureComponent(StructureTofuMineshaftPieces.Stairs.class, "TMSStairs");
}
 
Example #5
Source File: TofuCastlePiece.java    From TofuCraftReload with MIT License 4 votes vote down vote up
public static void registerTofuCastlePiece() {
    MapGenStructureIO.registerStructureComponent(TofuCastlePiece.TofuCastleTemplate.class, "TCT");
}
 
Example #6
Source File: VillagerCreationWA.java    From Sakura_mod with MIT License 4 votes vote down vote up
public static void registerComponents() {
	MapGenStructureIO.registerStructureComponent(WAVillagerHouse.class,
			SakuraMain.MODID+":wa_house");

}
 
Example #7
Source File: VillageHandlerGuardTower2.java    From ToroQuest with GNU General Public License v3.0 4 votes vote down vote up
public static void init() {
	MapGenStructureIO.registerStructureComponent(VillagePieceGuardTower2.class, NAME);
	VillagerRegistry.instance().registerVillageCreationHandler(new VillageHandlerGuardTower2());
}
 
Example #8
Source File: VillageHandlerBarracks.java    From ToroQuest with GNU General Public License v3.0 4 votes vote down vote up
public static void init() {
	MapGenStructureIO.registerStructureComponent(VillagePieceBarracks.class, NAME);
	VillagerRegistry.instance().registerVillageCreationHandler(new VillageHandlerBarracks());
}
 
Example #9
Source File: VillageHandlerCabin.java    From ToroQuest with GNU General Public License v3.0 4 votes vote down vote up
public static void init() {
	MapGenStructureIO.registerStructureComponent(VillagePieceCabin.class, NAME);
	VillagerRegistry.instance().registerVillageCreationHandler(new VillageHandlerCabin());
}
 
Example #10
Source File: VillageHandlerGuardTower.java    From ToroQuest with GNU General Public License v3.0 4 votes vote down vote up
public static void init() {
	MapGenStructureIO.registerStructureComponent(VillagePieceGuardTower.class, NAME);
	VillagerRegistry.instance().registerVillageCreationHandler(new VillageHandlerGuardTower());
}
 
Example #11
Source File: VillageHandlerShop.java    From ToroQuest with GNU General Public License v3.0 4 votes vote down vote up
public static void init() {
	MapGenStructureIO.registerStructureComponent(VillagePieceShop.class, NAME);
	VillagerRegistry.instance().registerVillageCreationHandler(new VillageHandlerShop());
}
 
Example #12
Source File: VillageHandlerTrophy.java    From ToroQuest with GNU General Public License v3.0 4 votes vote down vote up
public static void init() {
	MapGenStructureIO.registerStructureComponent(VillagePieceTrophy.class, NAME);
	VillagerRegistry.instance().registerVillageCreationHandler(new VillageHandlerTrophy());
}
 
Example #13
Source File: VillageHandlerKeep.java    From ToroQuest with GNU General Public License v3.0 4 votes vote down vote up
public static void init() {
	MapGenStructureIO.registerStructureComponent(VillagePieceKeep.class, NAME);
	VillagerRegistry.instance().registerVillageCreationHandler(new VillageHandlerKeep());
}