-
-
Notifications
You must be signed in to change notification settings - Fork 625
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15d5a5e
commit 0baed1d
Showing
7 changed files
with
95 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
api/src/main/java/com/velocitypowered/api/util/buildinfo/PaperServerBuildInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright (C) 2024 Velocity Contributors | ||
* | ||
* The Velocity API is licensed under the terms of the MIT License. For more details, | ||
* reference the LICENSE file in the api top-level directory. | ||
*/ | ||
|
||
package com.velocitypowered.api.util.buildinfo; | ||
|
||
import org.jetbrains.annotations.ApiStatus; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
/** | ||
* Information about the current server build. | ||
* | ||
* @apiNote to be seperated later | ||
*/ | ||
@SuppressWarnings({"checkstyle", "CheckStyle"}) // Temporarily | ||
@ApiStatus.NonExtendable | ||
public interface PaperServerBuildInfo extends ServerBuildInfo { | ||
|
||
/** | ||
* Gets the Minecraft version id. | ||
* | ||
* @return the Minecraft version id (e.g. "1.20.4", "1.20.2-pre2", "23w31a") | ||
*/ | ||
@NotNull String minecraftVersionId(); | ||
|
||
/** | ||
* Gets the Minecraft version name. | ||
* | ||
* @return the Minecraft version name (e.g. "1.20.4", "1.20.2 Pre-release 2", "23w31a") | ||
*/ | ||
@NotNull String minecraftVersionName(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
api/src/main/java/com/velocitypowered/api/util/buildinfo/VelocityServerBuildInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright (C) 2024 Velocity Contributors | ||
* | ||
* The Velocity API is licensed under the terms of the MIT License. For more details, | ||
* reference the LICENSE file in the api top-level directory. | ||
*/ | ||
|
||
package com.velocitypowered.api.util.buildinfo; | ||
|
||
import net.kyori.adventure.key.Key; | ||
import org.jetbrains.annotations.ApiStatus; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
/** | ||
* Information about the current server build. | ||
* | ||
* @apiNote to be seperated later | ||
*/ | ||
@SuppressWarnings({"checkstyle", "CheckStyle"}) // Temporarily | ||
@ApiStatus.NonExtendable | ||
public interface VelocityServerBuildInfo extends ServerBuildInfo { | ||
|
||
/** | ||
* The brand id for Velocity. | ||
*/ | ||
Key BRAND_VELOCITY_ID = Key.key("papermc", "velocity"); | ||
|
||
/** | ||
* Gets the Velocity version id. | ||
* | ||
* @return the Velocity version id (e.g. "3.3.0-SNAPSHOT", "3.3.0", "3.0.0") | ||
*/ | ||
@NotNull | ||
String velocityVersionId(); | ||
// one of these can probably go | ||
/** | ||
* Gets the Velocity version name. | ||
* | ||
* @return the Velocity version name (e.g. "3.3.0 Snapshot", "3.3.0", "3.0.0") | ||
*/ | ||
@NotNull | ||
String velocityVersionName(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters