Skip to content

plus

operator fun ResourceLocation.plus(other: String): ResourceLocation

Appends other directly to this location's path with no separator, e.g. loc + "_dark".

operator fun ResourceLocation.plus(other: ResourceLocation): ResourceLocation

Appends other's path directly to this location's path with no separator (namespace of other is ignored).

operator fun String.plus(other: ResourceLocation): ResourceLocation

Prepends this directly to other's path with no separator, keeping other's namespace.