Пример #1
0
        public override bool ConverMapToMCRegion(string s, net.minecraft.src.IProgressUpdate
                                                 iprogressupdate)
        {
            iprogressupdate.SetLoadingProgress(0);
            List <ChunkFile> arraylist  = new List <ChunkFile>();
            List <string>    arraylist1 = new List <string>();
            List <ChunkFile> arraylist2 = new List <ChunkFile>();
            List <string>    arraylist3 = new List <string>();
            string           file       = System.IO.Path.Combine(field_22106_a, s);
            string           file1      = System.IO.Path.Combine(file, "DIM-1");

            System.Console.Out.WriteLine("Scanning folders...");
            Func_22108_a(file, arraylist, arraylist1);
            if (File.Exists(file1))
            {
                Func_22108_a(file1, arraylist2, arraylist3);
            }
            int i = arraylist.Count + arraylist2.Count + arraylist1.Count + arraylist3.Count;

            System.Console.Out.WriteLine((new java.lang.StringBuilder()).Append("Total conversion count is ").Append(i).ToString());
            Func_22107_a(file, arraylist, 0, i, iprogressupdate);
            Func_22107_a(file1, arraylist2, arraylist.Count, i, iprogressupdate);
            net.minecraft.src.WorldInfo worldinfo = GetWorldInfo(s);
            worldinfo.SetVersion(19132);
            net.minecraft.src.ISaveHandler isavehandler = Func_22105_a(s, true);
            isavehandler.Func_22094_a(worldinfo);
            Func_22109_a(arraylist1, arraylist.Count + arraylist2.Count, i, iprogressupdate);
            if (File.Exists(file1))
            {
                Func_22109_a(arraylist3, arraylist.Count + arraylist2.Count + arraylist1.Count, i
                             , iprogressupdate);
            }
            return(true);
        }
Пример #2
0
 public MapStorage(net.minecraft.src.ISaveHandler isavehandler)
 {
     // Referenced classes of package net.minecraft.src:
     //            MapDataBase, ISaveHandler, CompressedStreamTools, NBTTagCompound,
     //            NBTBase, NBTTagShort
     field_28179_b = new SharpBukkitLive.NullSafeDictionary <string, MapDataBase>();
     field_28182_c = new List <MapDataBase>();
     field_28181_d = new Dictionary <string, short>();
     field_28180_a = isavehandler;
     Func_28174_b();
 }
Пример #3
0
        public WorldServer(net.minecraft.server.MinecraftServer minecraftserver, net.minecraft.src.ISaveHandler isavehandler, string s, int dimension, long seed)
            : base(isavehandler, s, seed, net.minecraft.src.WorldProvider.GetWorldProvider(dimension))
        {
            // Referenced classes of package net.minecraft.src:
            //            World, WorldProvider, MCHash, EntityAnimal,
            //            EntityWaterMob, Entity, EntityPlayer, ISaveHandler,
            //            ChunkProviderServer, TileEntity, WorldInfo, MathHelper,
            //            ServerConfigurationManager, Packet71Weather, Packet38EntityStatus, EntityTracker,
            //            Explosion, Packet60Explosion, Packet54PlayNoteBlock, Packet70Bed,
            //            IChunkProvider
            weirdIsOpCache = false;
            field_20912_E  = new net.minecraft.src.MCHash();
            mcServer       = minecraftserver;

            this.Dimension = dimension;             // CRAFTBUKKIT
        }
 public SecondaryWorldServer(net.minecraft.server.MinecraftServer minecraftserver, net.minecraft.src.ISaveHandler
                             isavehandler, string s, int i, long l, net.minecraft.src.WorldServer worldserver
                             )
     : base(minecraftserver, isavehandler, s, i, l)
 {
     // Referenced classes of package net.minecraft.src:
     //            WorldServer, ISaveHandler
     WorldMaps = worldserver.WorldMaps;
 }