Skip to content

Commit dfc7c32

Browse files
committed
fixup javadocs
1 parent 1be0e16 commit dfc7c32

File tree

5 files changed

+24
-17
lines changed

5 files changed

+24
-17
lines changed

api/src/main/java/org/geysermc/geyser/api/event/bedrock/SessionLoadResourcePacksEvent.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public SessionLoadResourcePacksEvent(@NonNull GeyserConnection connection) {
4949
/**
5050
* Gets an unmodifiable list of {@link ResourcePack}'s that will be sent to the client.
5151
*
52-
* @return an unmodifiable list of resource packs that will be sent to the client.
52+
* @return an unmodifiable list of resource packs that will be sent to the client
5353
*/
5454
public abstract @NonNull List<ResourcePack> resourcePacks();
5555

@@ -69,9 +69,9 @@ public SessionLoadResourcePacksEvent(@NonNull GeyserConnection connection) {
6969
* Registers a {@link ResourcePack} to be sent to the client, alongside
7070
* specific options.
7171
*
72-
* @param resourcePack The resource pack that will be sent to the client.
72+
* @param resourcePack The resource pack that will be sent to the client
7373
* @param options {@link ResourcePackOption}'s that specify how clients load the pack
74-
* @throws ResourcePackException when an issue occurred during pack registration.
74+
* @throws ResourcePackException if an issue occurred during pack registration
7575
*/
7676
public abstract void register(@NonNull ResourcePack resourcePack, @Nullable ResourcePackOption<?>... options);
7777

@@ -80,8 +80,8 @@ public SessionLoadResourcePacksEvent(@NonNull GeyserConnection connection) {
8080
*
8181
* @param uuid the resource pack uuid to register the options for
8282
* @param options the options to register for the pack
83-
* @throws IllegalArgumentException if the pack is not registered.
84-
* @throws ResourcePackException when an issue occurred during resource pack option registration.
83+
* @throws IllegalArgumentException if the pack is not registered
84+
* @throws ResourcePackException if an issue occurred during resource pack option registration
8585
*/
8686
public abstract void registerOptions(@NonNull UUID uuid, @NonNull ResourcePackOption<?>... options);
8787

@@ -90,7 +90,8 @@ public SessionLoadResourcePacksEvent(@NonNull GeyserConnection connection) {
9090
* These are not modifiable.
9191
*
9292
* @param uuid the resource pack for which the options are set
93-
* @return a list of {@link ResourcePackOption
93+
* @return a list of {@link ResourcePackOption}
94+
* @throws ResourcePackException if the pack does not exist
9495
*/
9596
public abstract Collection<ResourcePackOption<?>> options(@NonNull UUID uuid);
9697

api/src/main/java/org/geysermc/geyser/api/event/lifecycle/GeyserDefineResourcePacksEvent.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,27 +44,27 @@ public abstract class GeyserDefineResourcePacksEvent implements Event {
4444
/**
4545
* Gets an unmodifiable list of {@link ResourcePack}'s that will be sent to clients.
4646
*
47-
* @return an unmodifiable list of resource packs that will be sent to clients.
47+
* @return an unmodifiable list of resource packs that will be sent to clients
4848
*/
4949
public abstract @NonNull List<ResourcePack> resourcePacks();
5050

5151
/**
5252
* Registers a {@link ResourcePack} to be sent to the client, optionally alongside
5353
* {@link ResourcePackOption} options specifying how it will be applied on clients.
5454
*
55-
* @param pack a resource pack that will be sent to the client.
55+
* @param pack a resource pack that will be sent to the client
5656
* @param options {@link ResourcePackOption}'s that specify how clients load the pack
57-
* @throws ResourcePackException when an issue occurred during pack registration.
57+
* @throws ResourcePackException if an issue occurred during pack registration
5858
*/
5959
public abstract void register(@NonNull ResourcePack pack, @Nullable ResourcePackOption<?>... options);
6060

6161
/**
62-
* Sets {@link ResourcePackOption}'s for a resource pack
62+
* Sets {@link ResourcePackOption}'s for a resource pack.
6363
*
6464
* @param uuid the resource pack uuid to register the options for
6565
* @param options the options to register for the pack
66-
* @throws IllegalArgumentException if the pack is not registered.
67-
* @throws ResourcePackException when an issue occurred during resource pack option registration.
66+
* @throws IllegalArgumentException if the pack is not registered
67+
* @throws ResourcePackException if an issue occurred during resource pack option registration
6868
*/
6969
public abstract void registerOptions(@NonNull UUID uuid, @NonNull ResourcePackOption<?>... options);
7070

@@ -74,7 +74,7 @@ public abstract class GeyserDefineResourcePacksEvent implements Event {
7474
*
7575
* @param uuid the resource pack uuid for which the options are set
7676
* @return a list of {@link ResourcePackOption}
77-
* @throws ResourcePackException if the pack does not exist.
77+
* @throws ResourcePackException if the pack does not exist
7878
*/
7979
public abstract Collection<ResourcePackOption<?>> options(@NonNull UUID uuid);
8080

@@ -83,14 +83,14 @@ public abstract class GeyserDefineResourcePacksEvent implements Event {
8383
*
8484
* @param uuid the resource pack for which the option type is set
8585
* @param type the {@link ResourcePackOption.Type} of the option to query
86-
* @throws ResourcePackException if the pack does not exist.
86+
* @throws ResourcePackException if the pack does not exist
8787
*/
8888
public abstract @Nullable ResourcePackOption<?> option(@NonNull UUID uuid, ResourcePackOption.@NonNull Type type);
8989

9090
/**
9191
* Unregisters a {@link ResourcePack} from being sent to clients.
9292
*
93-
* @param uuid the uuid of the resource pack to remove.
93+
* @param uuid the uuid of the resource pack to remove
9494
*/
9595
public abstract void unregister(@NonNull UUID uuid);
9696
}

api/src/main/java/org/geysermc/geyser/api/pack/exception/ResourcePackException.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,17 @@
2525

2626
package org.geysermc.geyser.api.pack.exception;
2727

28+
import java.io.Serial;
29+
2830
/**
2931
* Used to indicate an exception that occurred while handling resource pack registration,
3032
* or during resource pack option validation.
3133
*/
3234
public class ResourcePackException extends IllegalArgumentException {
3335

36+
@Serial
37+
private static final long serialVersionUID = 1L;
38+
3439
/**
3540
* The {@link Cause} of this exception.
3641
*/

api/src/main/java/org/geysermc/geyser/api/pack/option/SubpackOption.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
public interface SubpackOption extends ResourcePackOption<String> {
3737

3838
/**
39-
* Creates a subpack option based on a {@link ResourcePackManifest.Subpack}
39+
* Creates a subpack option based on a {@link ResourcePackManifest.Subpack}.
4040
*
4141
* @param subpack the chosen subpack
4242
* @return a subpack option specifying that subpack
@@ -56,7 +56,7 @@ static SubpackOption named(@NonNull String subpackName) {
5656
}
5757

5858
/**
59-
* Creates a subpack option with no subpack specified
59+
* Creates a subpack option with no subpack specified.
6060
*
6161
* @return a subpack option specifying no subpack
6262
*/

api/src/main/java/org/geysermc/geyser/api/pack/option/UrlFallbackOption.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public interface UrlFallbackOption extends ResourcePackOption<Boolean> {
4141

4242
/**
4343
* Whether to fall back to serving packs over the raknet connection
44+
*
4445
* @param fallback whether to fall back
4546
* @return a UrlFallbackOption with the specified behavior
4647
*/

0 commit comments

Comments
 (0)