isValidPath

fun isValidPath(entityType: EntityType<*>, path: String): Boolean(source)

Checks if the given path is a valid path for the specified entity type.

Return

True if the path is valid, false otherwise.

Parameters

entityType

The entity type to validate against.

path

The path to validate.