Class ServerBuildInfoMock

java.lang.Object
be.seeseemelk.mockbukkit.services.ServerBuildInfoMock
All Implemented Interfaces:
io.papermc.paper.ServerBuildInfo

public class ServerBuildInfoMock extends Object implements io.papermc.paper.ServerBuildInfo
  • Constructor Details

    • ServerBuildInfoMock

      public ServerBuildInfoMock()
  • Method Details

    • brandId

      @NotNull public @NotNull net.kyori.adventure.key.Key brandId()
      Specified by:
      brandId in interface io.papermc.paper.ServerBuildInfo
    • isBrandCompatible

      public boolean isBrandCompatible(@NotNull @NotNull net.kyori.adventure.key.Key key)
      Specified by:
      isBrandCompatible in interface io.papermc.paper.ServerBuildInfo
    • brandName

      @NotNull public @NotNull String brandName()
      Specified by:
      brandName in interface io.papermc.paper.ServerBuildInfo
    • minecraftVersionId

      @NotNull public @NotNull String minecraftVersionId()
      Specified by:
      minecraftVersionId in interface io.papermc.paper.ServerBuildInfo
    • minecraftVersionName

      @NotNull public @NotNull String minecraftVersionName()
      Specified by:
      minecraftVersionName in interface io.papermc.paper.ServerBuildInfo
    • buildNumber

      @NotNull public @NotNull OptionalInt buildNumber()
      Specified by:
      buildNumber in interface io.papermc.paper.ServerBuildInfo
    • buildTime

      @NotNull public @NotNull Instant buildTime()
      Specified by:
      buildTime in interface io.papermc.paper.ServerBuildInfo
    • gitBranch

      @NotNull public @NotNull Optional<String> gitBranch()
      Specified by:
      gitBranch in interface io.papermc.paper.ServerBuildInfo
    • gitCommit

      @NotNull public @NotNull Optional<String> gitCommit()
      Specified by:
      gitCommit in interface io.papermc.paper.ServerBuildInfo
    • asString

      @NotNull public @NotNull String asString(@NotNull io.papermc.paper.ServerBuildInfo.StringRepresentation stringRepresentation)
      Specified by:
      asString in interface io.papermc.paper.ServerBuildInfo