Interface ResourceKey
- All Superinterfaces:
Comparable<Key>, net.kyori.examination.Examinable, Key, Keyed, Namespaced, Wrapper
This interface represents a key for a biome resource in the game.
It uses the @AsOf annotation to indicate the version since the interface or its methods have been present or modified.
- Since:
- 0.0.1
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface Wrapper
Wrapper.Context<C> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final charstatic final WireProvider<ResourceKey.Factory> static final StringFields inherited from interface Key
DEFAULT_SEPARATOR -
Method Summary
Modifier and TypeMethodDescriptiondefault StringasString()static ResourceKeyfromString(String keyString) Creates a new ResourceKey from the given string representation.<T> Tdefault Keykey()static ResourceKeyCreates a new ResourceKey in the "minecraft" namespace with the given path.The namespace portion of this key (e.g.static ResourceKeyCreates a new ResourceKey from the given string.static ResourceKeyCreates a new ResourceKey from the given namespace and path.path()The path portion of this key.Underlying Minecraft Identifier.default ObjectConvert this handle to the real Minecraft object.default Stringvalue()static ResourceKeyCreates a new ResourceKey in the "wyck" namespace with the given path.Methods inherited from interface net.kyori.examination.Examinable
examinableName, examineMethods inherited from interface Key
asMinimalString, compareTo, examinableProperties
-
Field Details
-
MINECRAFT_NAMESPACE
- See Also:
-
WYCK_NAMESPACE
- See Also:
-
NAMESPACE_SEPARATOR
static final char NAMESPACE_SEPARATOR- See Also:
-
WIRE
-
-
Method Details
-
namespace
The namespace portion of this key (e.g. "minecraft", "wyck").- Specified by:
namespacein interfaceKey- Specified by:
namespacein interfaceNamespaced
-
path
-
resourceLocation
-
identifier
-
value
-
asString
-
key
-
toMinecraft
Description copied from interface:WrapperConvert this handle to the real Minecraft object.- Specified by:
toMinecraftin interfaceWrapper- Returns:
- the real Minecraft object
-
of
Creates a new ResourceKey from the given namespace and path.- Parameters:
namespace- the namespace for the resource locationpath- the path for the resource location- Returns:
- a new ResourceKey with the given namespace and path
- Since:
- 0.0.1
-
of
Creates a new ResourceKey from the given string.- Parameters:
string- the string to create the ResourceKey from- Returns:
- a new ResourceKey with the given string
- Since:
- 2.3.0
-
wyck
Creates a new ResourceKey in the "wyck" namespace with the given path.- Parameters:
path- the path for the resource location- Returns:
- a new ResourceKey with the "wyck" namespace and the given path
-
minecraft
Creates a new ResourceKey in the "minecraft" namespace with the given path.- Parameters:
path- the path for the resource location- Returns:
- a new ResourceKey with the "minecraft" namespace and the given path
- Since:
- 2.3.0
-
fromString
Creates a new ResourceKey from the given string representation. The string should be in the format "namespace:path".- Parameters:
keyString- the string representation of the ResourceKey- Returns:
- a new ResourceKey with the given string representation
- Since:
- 0.0.15
-