/// <summary> /// Returns the chunk loader with the provided world provider /// </summary> public override IChunkLoader GetChunkLoader(WorldProvider par1WorldProvider) { string directory = GetSaveDirectory(); if (par1WorldProvider is WorldProviderHell) { string directory1 = IOPath.Combine(directory, "DIM-1"); Directory.CreateDirectory(directory1); return(new AnvilChunkLoader(directory1)); } if (par1WorldProvider is WorldProviderEnd) { string directory2 = IOPath.Combine(directory, "DIM1"); Directory.CreateDirectory(directory2); return(new AnvilChunkLoader(directory2)); } else { return(new AnvilChunkLoader(directory)); } }
/// <summary> /// Returns the chunk loader with the provided world provider /// </summary> public virtual IChunkLoader GetChunkLoader(WorldProvider par1WorldProvider) { throw new Exception("Old Chunk Storage is no longer supported."); }
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; }
/// <summary> /// Returns the chunk loader with the provided world provider /// </summary> public virtual IChunkLoader GetChunkLoader(WorldProvider par1WorldProvider) { return(null); }