diff --git a/api/src/main/java/net/draycia/carbon/api/CarbonChat.java b/api/src/main/java/net/draycia/carbon/api/CarbonChat.java index 3d398338..62ee79df 100644 --- a/api/src/main/java/net/draycia/carbon/api/CarbonChat.java +++ b/api/src/main/java/net/draycia/carbon/api/CarbonChat.java @@ -30,8 +30,10 @@ import org.checkerframework.framework.qual.DefaultQualifier; * The {@link CarbonChat} interface is the gateway to interacting with the majority of the CarbonChat API. * *
Instances may be obtained through {@link CarbonChatProvider#carbonChat()} once Carbon is loaded.
+ * *On most platforms, you should use the provided load order mechanism to ensure your addon loads after * Carbon.
+ * *On Fabric, use the {@code carbonchat} entrypoint (type: {@code Consumer
Setting {@code null} will remove any current nickname.
+ * *Won't have any visible effect when Carbon's nickname management is disabled.
* * @param nickname the new nickname diff --git a/api/src/main/java/net/draycia/carbon/api/users/UserManager.java b/api/src/main/java/net/draycia/carbon/api/users/UserManager.java index d18d598e..f0bd6ee2 100644 --- a/api/src/main/java/net/draycia/carbon/api/users/UserManager.java +++ b/api/src/main/java/net/draycia/carbon/api/users/UserManager.java @@ -51,6 +51,7 @@ public interface UserManagerParties with no users will not be saved. Use {@link Party#disband()} to discard.
+ * *The returned reference will expire after one minute, store {@link Party#id()} rather than the instance and use {@link #party(UUID)} to retrieve.
* * @param name party name @@ -63,6 +64,7 @@ public interface UserManagerAs parties that have never had a user are not saved, they are not retrievable here.
+ * *The returned reference will expire after one minute, do not cache it. The implementation handles caching as is appropriate.
* * @param id party id diff --git a/build-logic/src/main/kotlin/extensions.kt b/build-logic/src/main/kotlin/extensions.kt index 25b4daa3..b2bcdf4f 100644 --- a/build-logic/src/main/kotlin/extensions.kt +++ b/build-logic/src/main/kotlin/extensions.kt @@ -1,7 +1,6 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar import net.kyori.indra.git.IndraGitExtension import org.apache.tools.ant.filters.ReplaceTokens -import org.eclipse.jgit.lib.Repository import org.gradle.accessors.dm.LibrariesForLibs import org.gradle.api.Project import org.gradle.api.Task @@ -100,7 +99,7 @@ fun ShadowJar.configureShadowJar() { } fun Project.lastCommitHash(): String = - theIf {@code path} does not exist, returns an empty list.
+ * *If {@code path} exists, but is not a directory, throws {@link IllegalArgumentException}
* * @param path directory @@ -69,6 +70,7 @@ public final class FileUtil { * Lists directory entries in {@code path} matching {@code glob}. * *If {@code path} does not exist, returns an empty list.
+ * *If {@code path} exists, but is not a directory, throws {@link IllegalArgumentException}
* * @param path directory diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 9c97f7d6..44d87739 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -10,7 +10,7 @@ resource-factory-velocity-convention = { id = "xyz.jpenilla.resource-factory-vel resource-factory-fabric-convention = { id = "xyz.jpenilla.resource-factory-fabric-convention", version.ref = "resource-factory" } [versions] -indra = "3.2.0" +indra = "4.0.0" cloud-build-logic = "0.0.17" shadow = "9.2.2" mod-publish-plugin = "1.0.0"