typesforbukkit
Version:
Types For Bukkit
36 lines (25 loc) • 1.72 kB
text/typescript
// API Link: https://tfb.neocities.org/1.16.5/org/bukkit/NamespacedKey
namespace org.bukkit {
/** @description Represents a String based key which consists of two components - a namespace and a key. Namespaces may only contain lowercase alphanumeric characters, periods, underscores, and hyphens. Keys may only contain lowercase alphanumeric characters, periods, underscores, hyphens, and forward slashes */
export class NamespacedKey {
/** @deprecated should never be used by plugins, for internal use only!! */
constructor(namespace: String, key: String);
/** @description Create a key in the plugin's namespace */
constructor(plugin: org.bukkit.plugin.Plugin, key: String);
constructor(key: any, namespace?: any, plugin?: any) {}
equals(obj: Object) : boolean {return;}
/** @description Get a NamespacedKey from the supplied string */
static fromString(key: String) : org.bukkit.NamespacedKey;
/** @description Get a NamespacedKey from the supplied string with a default namespace if a namespace is not defined */
static fromString(string: String, defaultNamespace: org.bukkit.plugin.Plugin) : org.bukkit.NamespacedKey;
static fromString(key?: any, string?: any, defaultNamespace?: any) : any {return;}
getKey() : String {return;}
getNamespace() : String {return;}
hashCode() : int {return;}
/** @description Get a key in the Minecraft namespace */
static minecraft(key: String) : org.bukkit.NamespacedKey {return;}
/** @deprecated should never be used by plugins, for internal use only!! */
static randomKey() : org.bukkit.NamespacedKey {return;}
toString() : String {return;}
}
}