Skip to content

div

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

Appends /[other] to this location's path.

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

Appends / plus other's path (namespace of other is ignored) to this location's path.

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

Prepends this/ to other's path, keeping other's namespace.