def getNumId(cls, v):
        """Retruns the numeric ID of an entity, or a generated one if the entity is not known.
        The generated one is generated like this: 'UNKNOWN_ENTITY_MASK + X', where 'X' is a number.
        The first unknown entity will have the numerical ID 1001, the second one 1002, and so on.
        :v: the entity string ID to search for."""
        id = cls.getId(v)
        if type(id) != int and v not in cls.entityList.keys():
            id = cls.unknown_entity_top + 1
            cls.entityList[v] = cls.entityList['Entity %s'%id] = id
            cls.unknown_entity_top += 1
        return id
Retruns the numeric ID of an entity, or a generated one if the entity is not known.
        The generated one is generated like this: 'UNKNOWN_ENTITY_MASK + X', where 'X' is a number.
        The first unknown entity will have the numerical ID 1001, the second one 1002, and so on.
        :v: the entity string ID to search for.
pymclevel/entity.py