Expose server build information

Co-authored-by: Professor Bloodstone <git@bloodstone.dev>
Co-authored-by: Mark Vainomaa <mikroskeem@mikroskeem.eu>
Co-authored-by: masmc05 <masmc05@gmail.com>
Co-authored-by: Riley Park <rileysebastianpark@gmail.com>
This commit is contained in:
Zach Brown
2019-05-27 01:10:06 -05:00
parent 376251dab7
commit 05ec73f817
9 changed files with 369 additions and 9 deletions

View File

@@ -0,0 +1,59 @@
package io.papermc.paper;
import java.time.Instant;
import java.util.Optional;
import java.util.OptionalInt;
import net.kyori.adventure.key.Key;
import org.jetbrains.annotations.NotNull;
public class TestServerBuildInfo implements ServerBuildInfo {
@Override
public @NotNull Key brandId() {
throw new UnsupportedOperationException();
}
@Override
public boolean isBrandCompatible(final @NotNull Key brandId) {
throw new UnsupportedOperationException();
}
@Override
public @NotNull String brandName() {
throw new UnsupportedOperationException();
}
@Override
public @NotNull String minecraftVersionId() {
throw new UnsupportedOperationException();
}
@Override
public @NotNull String minecraftVersionName() {
throw new UnsupportedOperationException();
}
@Override
public @NotNull OptionalInt buildNumber() {
throw new UnsupportedOperationException();
}
@Override
public @NotNull Instant buildTime() {
throw new UnsupportedOperationException();
}
@Override
public @NotNull Optional<String> gitBranch() {
throw new UnsupportedOperationException();
}
@Override
public @NotNull Optional<String> gitCommit() {
throw new UnsupportedOperationException();
}
@Override
public @NotNull String asString(final @NotNull StringRepresentation representation) {
return "";
}
}