OpenMinecraft.InfdevHandler.RemoveEntity C# (CSharp) Method

RemoveEntity() public method

public RemoveEntity ( Entity e ) : void
e Entity
return void
		public override void RemoveEntity(Entity e)
		{
            // Get our UUID (why UUIDs, Rob? WTF)
			Guid ID = e.UUID;

            // Is this entity loaded?
			if (mEntities.ContainsKey(ID))
				mEntities.Remove(ID);

            // Try and translate global coords to chunk local coords
            // TODO: What the fuck are you doing
            int CX, CZ;
            e.Pos = Global2Local(e.Pos, out CX, out CZ);

            // Find parent chunk, remove
			Chunk c = GetChunk(CX, CZ);
            if (c == null) return;
            c.Entities.Remove(e.UUID);
            SetChunk(c);
		}