BetterHudBootstrap

A boot code of BetterHud.

Functions

Link copied to clipboard
@NotNull
abstract fun console(): @NotNull Audience
Gets console.
Link copied to clipboard
@NotNull
open fun consoleSource(): @NotNull BetterCommandSource
Gets a command source based on console.
Link copied to clipboard
@NotNull
abstract fun core(): @NotNull BetterHud
Gets a BetterHud's main instance.
Link copied to clipboard
@NotNull
abstract fun dataFolder(): @NotNull File
Gets data folder of BetterHud.
Link copied to clipboard
abstract fun endMetrics()
Ends BStats metrics.
Link copied to clipboard
abstract fun isFabric(): Boolean
Whether this platform is Fabric
Link copied to clipboard
abstract fun isFolia(): Boolean
Whether this platform is Folia or that's fork.
Link copied to clipboard
abstract fun isPaper(): Boolean
Whether this platform is Paper or that's fork.
Link copied to clipboard
abstract fun isVelocity(): Boolean
Whether this platform is Velocity or that's fork.
Link copied to clipboard
@NotNull
abstract fun jarFile(): @NotNull File
Gets the file of BetterHud's jar file.
Link copied to clipboard
@NotNull
abstract fun loader(): @NotNull URLClassLoader
Gets BetterHud's boot classloader.
Link copied to clipboard
@NotNull
abstract fun logger(): @NotNull BetterHudLogger
Gets a logger.
Link copied to clipboard
abstract fun mcmetaVersion(): Int
A resource pack version matched at target platform's minecraft.
Link copied to clipboard
@NotNull
abstract fun minecraftVersion(): @NotNull String
Target platform's minecraft protocol version.
Link copied to clipboard
@Nullable
abstract fun resource(@NotNull path: @NotNull String): @Nullable InputStream
Gets a resource of jar file.
Link copied to clipboard
@NotNull
abstract fun scheduler(): @NotNull HudScheduler
Gets wrapped scheduler.
Link copied to clipboard
abstract fun sendResourcePack()
Sends resource pack url packet to all player.
abstract fun sendResourcePack(@NotNull player: @NotNull HudPlayer)
Sends resource pack url packet to that player.
Link copied to clipboard
abstract fun startMetrics()
Starts BStats metrics.
Link copied to clipboard
@NotNull
abstract fun version(): @NotNull String
Gets a minecraft version of this platform.
Link copied to clipboard
@NotNull
abstract fun volatileCode(): @NotNull VolatileCodeHandler
Gets a volatile code.
Link copied to clipboard
@Nullable
abstract fun world(@NotNull name: @NotNull String): @Nullable WorldWrapper
Finds some world by given name.
Link copied to clipboard
@NotNull
@Unmodifiable
abstract fun worlds(): @NotNull @Unmodifiable List<WorldWrapper>
Returns all world's wrapper.