mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-29 20:39:44 -05:00
Add an API for CanPlaceOn and CanDestroy NBT values
This commit is contained in:
1 parent
5dc2ca5b62
commit
f14d6e62da
4 files changed
+281
-1
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user