added function registerEntityType
added function registerPrimitiveType