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; }
public RenderEngineOld(TexturePackList par1TexturePackList, GameSettings par2GameSettings) { TextureMap = new Dictionary <string, int>(); TextureContentsMap = new Dictionary <string, int[]>(); TextureNameToImageMap = new IntHashMap(); SingleIntBuffer = new Buffer <int>(1); // GLAllocation.CreateDirectIntBuffer(1); ImageData = new Buffer <byte>(0x1000000); //GLAllocation.CreateDirectByteBuffer(0x1000000); TextureList = new List <TextureFX>(); UrlToImageDataMap = new Dictionary <string, ThreadedImageDownloader>(); ClampTexture = false; BlurTexture = false; MissingTextureImage = new Bitmap(64, 64); Field_48512_n = 16; TexturePack = par1TexturePackList; Options = par2GameSettings; Graphics g = Graphics.FromImage(MissingTextureImage); g.FillRectangle(Brushes.White, 0, 0, 64, 64); g.DrawString("missingtex", SystemFonts.DefaultFont, Brushes.Black, 1, 10); g.Dispose(); }
public int GetHashCode() { return(IntHashMap.GetHash(HashEntry)); }