Skip to content

[F] getResourceLocationType

function getResourceLocationType(program, entity): Model | undefined;

Returns the resource model associated directly with a location scalar, or undefined if none was set. Does not search base scalars; for a scalar extending ResourceLocation<T>, query the decorated base scalar.

ParameterType
programProgram
entityScalar

Model | undefined