public WorldClient(NetClientHandler par1NetClientHandler, WorldSettings par2WorldSettings, int par3, int par4) : base(new SaveHandlerMP(), "MpServer", WorldProvider.GetProviderForDimension(par3), par2WorldSettings)
 {
     BlocksToReceive   = new List <WorldBlockPositionType>();
     EntityHashSet     = new IntHashMap();
     EntityList        = new HashSet <Entity>();
     EntitySpawnQueue  = new HashSet <Entity>();
     SendQueue         = par1NetClientHandler;
     DifficultySetting = par4;
     SetSpawnPoint(new ChunkCoordinates(8, 64, 8));
     MapStorage = par1NetClientHandler.MapStorage;
 }
Exemple #2
0
 public WorldInfo(WorldSettings par1WorldSettings, string par2Str)
 {
     TerrainType        = WorldType.DEFAULT;
     Hardcore           = false;
     RandomSeed         = par1WorldSettings.GetSeed();
     GameType           = par1WorldSettings.GetGameType();
     MapFeaturesEnabled = par1WorldSettings.IsMapFeaturesEnabled();
     LevelName          = par2Str;
     Hardcore           = par1WorldSettings.GetHardcoreEnabled();
     TerrainType        = par1WorldSettings.GetTerrainType();
 }