Include whether a node is normal/transient in InheritanceOriginMetadata

This commit is contained in:
Luck committed 2022-01-01 19:33:48 +00:00
1 parent 6781c1fb51
commit 4de7448394
5 files changed
+28 -7

No files matched your search

@@ -26,6 +26,7 @@
package net.luckperms.api.node.metadata.types;
import net.luckperms.api.model.PermissionHolder;
import net.luckperms.api.model.data.DataType;
import net.luckperms.api.node.Node;
import net.luckperms.api.node.metadata.NodeMetadataKey;
@@ -56,6 +57,15 @@ public interface InheritanceOriginMetadata {
*/
PermissionHolder.@NonNull Identifier getOrigin();
/**
* Gets the {@link DataType type} of the {@link net.luckperms.api.model.data.NodeMap}
* the node was inherited from.
*
* @return the type of the NodeMap the node was inherited from.
* @since 5.4
*/
@NonNull DataType getDataType();
/**
* Gets whether the associated node was inherited from another holder.
*