1
0
mirror of https://github.com/lucko/LuckPerms.git synced 2025-08-20 05:11:20 +02:00

Convert to text components and implement new translation system

This commit is contained in:
Luck
2020-10-14 12:26:09 +01:00
committed by GitHub
parent 63878166db
commit 4811129ab1
162 changed files with 6181 additions and 3729 deletions

View File

@@ -54,4 +54,17 @@ public interface InheritanceOriginMetadata {
*/
PermissionHolder.@NonNull Identifier getOrigin();
/**
* Gets whether the associated node was inherited from another holder.
*
* <p>In other terms, it returns whether the origin is not equal to the given holder.</p>
*
* @param holder the holder defining the node
* @return if true the node was inherited, false if it was defined by the same holder
* @since 5.3
*/
default boolean wasInherited(PermissionHolder.@NonNull Identifier holder) {
return !holder.equals(getOrigin());
}
}