-
- All Implemented Interfaces:
-
org.jetbrains.kotlinx.jupyter.api.libraries.VariablesSubstitutionAware
public final class ResourceLocation implements VariablesSubstitutionAware<ResourceLocation>
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringpathprivate final ResourcePathTypetype
-
Constructor Summary
Constructors Constructor Description ResourceLocation(String path, ResourcePathType type)
-
Method Summary
Modifier and Type Method Description ResourceLocationreplaceVariables(Map<String, String> mapping)Replace variables and return the result. final Stringcomponent1()final ResourcePathTypecomponent2()final ResourceLocationcopy(String path, ResourcePathType type)final StringgetPath()final ResourcePathTypegetType()-
-
Constructor Detail
-
ResourceLocation
ResourceLocation(String path, ResourcePathType type)
-
-
Method Detail
-
replaceVariables
ResourceLocation replaceVariables(Map<String, String> mapping)
Replace variables and return the result.
- Parameters:
mapping- maps variables names to their values
-
component1
final String component1()
-
component2
final ResourcePathType component2()
-
copy
final ResourceLocation copy(String path, ResourcePathType type)
-
getType
final ResourcePathType getType()
-
-
-
-