Package xyz.jpenilla.squaremap.api
Interface WorldIdentifier
@DefaultQualifier(org.checkerframework.checker.nullness.qual.NonNull.class)
public interface WorldIdentifier
Namespaced identifier used to query worlds from squaremap.
Mirrors Minecraft's ResourceLocation. This means the same rules apply regarding allowed characters.
-
Method Summary
Modifier and TypeMethodDescriptionasString()Get the string representation of thisWorldIdentifier.static WorldIdentifierCreate a newWorldIdentifierfrom the provided namespace and value strings.Gets the namespace string of thisWorldIdentifier.static WorldIdentifierParse a colon separated identifier string into a newWorldIdentifier.value()Gets the value string of thisWorldIdentifier.
-
Method Details
-
namespace
String namespace()Gets the namespace string of thisWorldIdentifier.- Returns:
- namespace string
-
value
String value()Gets the value string of thisWorldIdentifier.- Returns:
- value string
-
asString
String asString()Get the string representation of thisWorldIdentifier.- Returns:
- string representation
-
create
Create a newWorldIdentifierfrom the provided namespace and value strings.- Parameters:
namespace- namespace stringvalue- value string- Returns:
- new
WorldIdentifier
-
parse
Parse a colon separated identifier string into a newWorldIdentifier.- Parameters:
identifierString- identifier string- Returns:
- new
WorldIdentifier
-