mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-12 18:57:28 +00:00
More work
This commit is contained in:
33 files changed
+246
-373
No files matched your search
@@ -160,7 +160,7 @@ public interface LuckPerms {
|
||||
|
||||
/**
|
||||
* Gets the {@link ContextManager}, responsible for managing
|
||||
* {@link ContextCalculator}s, and calculating applicable contexts.</p>
|
||||
* {@link ContextCalculator}s, and calculating applicable contexts.
|
||||
*
|
||||
* @return the context manager
|
||||
*/
|
||||
|
||||
@@ -47,6 +47,7 @@ public interface ExtensionManager {
|
||||
* Loads the extension at the given path.
|
||||
*
|
||||
* @param path the path to the extension
|
||||
* @return the extension
|
||||
* @throws IOException if the extension could not be loaded
|
||||
*/
|
||||
@NonNull Extension loadExtension(Path path) throws IOException;
|
||||
|
||||
@@ -35,8 +35,8 @@ import java.util.Objects;
|
||||
* <p>It is intended that {@link NodeMetadataKey}s are obtained and stored as
|
||||
* follows.</p>
|
||||
* <p><blockquote><pre>
|
||||
* public static final NodeMetadataKey<SpecialMetadata> SPECIAL_METADATA_KEY = NodeMetadataKey.of("specialmetadata", SpecialMetadata.class);
|
||||
* </pre></blockquote></p>
|
||||
* public static final NodeMetadataKey<SpecialMetadata> SPECIAL_METADATA_KEY = NodeMetadataKey.of("specialmetadata", SpecialMetadata.class);
|
||||
* </pre></blockquote>
|
||||
*
|
||||
* @param <T> the metadata type
|
||||
*/
|
||||
@@ -70,6 +70,6 @@ public interface NodeMetadataKey<T> {
|
||||
*
|
||||
* @return the type
|
||||
*/
|
||||
@NonNull Class<T> getType();
|
||||
@NonNull Class<T> type();
|
||||
|
||||
}
|
||||
@@ -44,7 +44,7 @@ final class SimpleNodeMetadataKey<T> implements NodeMetadataKey<T> {
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NonNull Class<T> getType() {
|
||||
public @NonNull Class<T> type() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -52,6 +52,6 @@ public interface InheritanceOriginMetadata {
|
||||
*
|
||||
* @return where the node was inherited from.
|
||||
*/
|
||||
@NonNull String getOrigin();
|
||||
PermissionHolder.@NonNull Identifier getOrigin();
|
||||
|
||||
}
|
||||
@@ -36,8 +36,8 @@ import java.util.Objects;
|
||||
*
|
||||
* <p>It is intended that {@link OptionKey}s are created and defined as follows.</p>
|
||||
* <p><blockquote><pre>
|
||||
* public static final OptionKey<String> SPECIAL_OPTION = OptionKey.of("special", String.class);
|
||||
* </pre></blockquote></p>
|
||||
* public static final OptionKey<String> SPECIAL_OPTION = OptionKey.of("special", String.class);
|
||||
* </pre></blockquote>
|
||||
*
|
||||
* @param <T> the option type
|
||||
*/
|
||||
@@ -71,6 +71,6 @@ public interface OptionKey<T> {
|
||||
*
|
||||
* @return the type
|
||||
*/
|
||||
@NonNull Class<T> getType();
|
||||
@NonNull Class<T> type();
|
||||
|
||||
}
|
||||
@@ -44,7 +44,7 @@ final class SimpleOptionKey<T> implements OptionKey<T> {
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NonNull Class<T> getType() {
|
||||
public @NonNull Class<T> type() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user