Add an API for CanPlaceOn and CanDestroy NBT values

This commit is contained in:
Mark Vainomaa
2018-09-12 18:53:35 +03:00
parent 5dc2ca5b62
commit f14d6e62da
4 changed files with 281 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ import org.jetbrains.annotations.Nullable;
* underscores, hyphens, and forward slashes.
*
*/
public final class NamespacedKey implements net.kyori.adventure.key.Key { // Paper - implement Key
public final class NamespacedKey implements net.kyori.adventure.key.Key, com.destroystokyo.paper.Namespaced { // Paper - implement Key and Namespaced
/**
* The namespace representing all inbuilt keys.
@@ -121,11 +121,13 @@ public final class NamespacedKey implements net.kyori.adventure.key.Key { // Pap
}
@NotNull
@Override // Paper
public String getNamespace() {
return namespace;
}
@NotNull
@Override // Paper
public String getKey() {
return key;
}