Skip to content

Commit 202f999

Browse files
committed
Fix newline-after-type-declaration violations with ./gradlew spotlessApply
1 parent 231d9a9 commit 202f999

102 files changed

Lines changed: 114 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

api/src/main/java/com/velocitypowered/api/command/Command.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@
3030
* </ul>
3131
*/
3232
public sealed interface Command permits BrigadierCommand, InvocableCommand {
33+
3334
}

api/src/main/java/com/velocitypowered/api/command/CommandResult.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* The result of a command invocation attempt.
1212
*/
1313
public enum CommandResult {
14+
1415
/**
1516
* The command was successfully executed by the proxy.
1617
*/

api/src/main/java/com/velocitypowered/api/event/command/CommandExecuteEvent.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ public String toString() {
109109
* @since 3.4.0
110110
*/
111111
public record InvocationInfo(SignedState signedState, Source source) {
112+
112113
}
113114

114115
/**
@@ -117,6 +118,7 @@ public record InvocationInfo(SignedState signedState, Source source) {
117118
* @since 3.4.0
118119
*/
119120
public enum SignedState {
121+
120122
/**
121123
* Indicates that the command was executed from a signed source with signed message arguments,
122124
* This is currently only possible by typing a command in chat with signed arguments.
@@ -158,6 +160,7 @@ public enum SignedState {
158160
* @since 3.4.0
159161
*/
160162
public enum Source {
163+
161164
/**
162165
* Indicates that the command was invoked by a player.
163166
*

api/src/main/java/com/velocitypowered/api/event/connection/PreLoginEvent.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ public static PreLoginComponentResult denied(net.kyori.adventure.text.Component
193193
}
194194

195195
private enum Result {
196+
196197
ALLOWED,
197198
FORCE_ONLINE,
198199
FORCE_OFFLINE,

api/src/main/java/com/velocitypowered/api/event/connection/PreTransferEvent.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
@AwaitingEvent
2525
@ApiStatus.Experimental
2626
public final class PreTransferEvent implements ResultedEvent<PreTransferEvent.TransferResult> {
27+
2728
private final InetSocketAddress originalAddress;
2829
private final Player player;
2930
private TransferResult result = TransferResult.ALLOWED;
@@ -56,6 +57,7 @@ public void setResult(final TransferResult result) {
5657
* Transfer Result of a player to another host.
5758
*/
5859
public static class TransferResult implements ResultedEvent.Result {
60+
5961
private static final TransferResult ALLOWED = new TransferResult(true, null);
6062
private static final TransferResult DENIED = new TransferResult(false, null);
6163

api/src/main/java/com/velocitypowered/api/event/player/PlayerClientBrandEvent.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* not wait on the result of this event.
1616
*/
1717
public final class PlayerClientBrandEvent {
18+
1819
private final Player player;
1920
private final String brand;
2021

api/src/main/java/com/velocitypowered/api/event/player/PlayerResourcePackStatusEvent.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ public String toString() {
141141
* Represents the possible statuses for the resource pack.
142142
*/
143143
public enum Status {
144+
144145
/**
145146
* The resource pack was applied successfully.
146147
*/

api/src/main/java/com/velocitypowered/api/event/player/ServerLoginPluginMessageEvent.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
*/
3030
@AwaitingEvent
3131
public class ServerLoginPluginMessageEvent implements ResultedEvent<ResponseResult> {
32+
3233
private final ServerConnection connection;
3334
private final ChannelIdentifier identifier;
3435
private final byte[] contents;

api/src/main/java/com/velocitypowered/api/event/player/ServerPostConnectEvent.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
* firing.
1919
*/
2020
public class ServerPostConnectEvent {
21+
2122
private final Player player;
2223
private final RegisteredServer previousServer;
2324

api/src/main/java/com/velocitypowered/api/event/player/ServerResourcePackSendEvent.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
*/
2222
@AwaitingEvent
2323
public class ServerResourcePackSendEvent implements ResultedEvent<ResultedEvent.GenericResult> {
24+
2425
private GenericResult result;
2526
private final ResourcePackInfo receivedResourcePack;
2627
private ResourcePackInfo providedResourcePack;

0 commit comments

Comments
 (0)