-
- 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 String
path
private final ResourcePathType
type
-
Constructor Summary
Constructors Constructor Description ResourceLocation(String path, ResourcePathType type)
-
Method Summary
Modifier and Type Method Description ResourceLocation
replaceVariables(Map<String, String> mapping)
Replace variables and return the result. final String
component1()
final ResourcePathType
component2()
final ResourceLocation
copy(String path, ResourcePathType type)
final String
getPath()
final ResourcePathType
getType()
-
-
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()
-
-
-
-