javadocs fixes

Co-authored-by: chris <github@onechris.mozmail.com>
This commit is contained in:
Konicai 2024-02-28 13:57:41 -05:00 committed by GitHub
parent 4bd9bfc6c5
commit f1906f560b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 5 deletions

View File

@ -104,7 +104,7 @@ public interface Command {
boolean isBedrockOnly();
/**
* @deprecated this method will always return an immutable list
* @deprecated this method will always return an empty immutable list
*/
@Deprecated(forRemoval = true)
@NonNull
@ -166,7 +166,8 @@ public interface Command {
/**
* Sets the permission node and its default value. The usage of the default value is platform dependant
* and may or may not be used. For example, it may be registered to an underlying server.<br><br>
* and may or may not be used. For example, it may be registered to an underlying server.
<p>
* Extensions may instead listen for {@link GeyserRegisterPermissionsEvent} to register permissions, which
* should be used if the same permission is required by multiple commands.
*

View File

@ -33,7 +33,7 @@ import java.util.Map;
/**
* Called when commands are defined within Geyser.
* <br><br>
* <p>
* This event allows you to register new commands using the {@link #register(Command)}
* method and retrieve the default commands defined.
*/

View File

@ -30,7 +30,7 @@ import org.geysermc.geyser.api.util.TriState;
/**
* Fired by anything that wishes to gather permission nodes and defaults.
* <br><br>
* <p>
* This event is not guaranteed to be fired, as certain Geyser platforms do not have a native permission system.
* It can be expected to fire on Geyser-Spigot and Geyser-Standalone.
* It may still be fired on other platforms due to a 3rd party.

View File

@ -188,7 +188,7 @@ public abstract class GeyserCommand implements org.geysermc.geyser.api.command.C
/**
* Registers this command to the given command manager.
* This method may be overridden to register more than one command.
* <br><br>
* <p>
* The default implementation is that {@link #baseBuilder(CommandManager)} with {@link #execute(CommandContext)}
* applied as the handler is registered to the manager.
*/