@ApiStatus.NonExtendable public interface BitMapFontProvider extends FontProvider
| Modifier and Type | Interface and Description |
|---|---|
static interface |
BitMapFontProvider.Builder
Mutable and fluent-style builder for
BitMapFontProvider
instances |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_HEIGHT
Default bitmap font height
|
| Modifier and Type | Method and Description |
|---|---|
int |
ascent()
Returns the font characters ascent, measured in
pixels, this value as a vertical shift to displayed
result
|
@NotNull BitMapFontProvider |
ascent(int ascent)
Returns a new bitmap font with the given
ascent
|
@Unmodifiable @NotNull java.util.List<java.lang.String> |
characters()
Returns a list of strings containing the characters replaced by
this provider, as well as their order within the texture.
|
@NotNull BitMapFontProvider |
characters(@NotNull java.util.List<java.lang.String> characters)
Returns a new bitmap font with the given
characters
|
@NotNull net.kyori.adventure.key.Key |
file()
Returns the texture location of this
bitmap font, must be a PNG image
|
@NotNull BitMapFontProvider |
file(@NotNull net.kyori.adventure.key.Key file)
Returns a new bitmap font with the given
texture location
|
int |
height()
Returns the height of the character, measured in pixels.
|
@NotNull BitMapFontProvider |
height(int height)
Returns a new bitmap font with the given
height
|
default BitMapFontProvider.Builder |
toBuilder()
Converts this
BitMapFontProvider instance
to a BitMapFontProvider.Builder instance
with the same values as this font provider. |
static final int DEFAULT_HEIGHT
@NotNull @NotNull net.kyori.adventure.key.Key file()
@Contract(value="_ -> new",
pure=true)
@NotNull
@NotNull BitMapFontProvider file(@NotNull
@NotNull net.kyori.adventure.key.Key file)
file - The new texture locationint height()
@Contract(value="_ -> new",
pure=true)
@NotNull
@NotNull BitMapFontProvider height(int height)
height - The new heightint ascent()
@Contract(value="_ -> new",
pure=true)
@NotNull
@NotNull BitMapFontProvider ascent(int ascent)
ascent - The new ascent@NotNull @Unmodifiable @NotNull java.util.List<java.lang.String> characters()
@Contract(value="_ -> new",
pure=true)
@NotNull
@NotNull BitMapFontProvider characters(@NotNull
@NotNull java.util.List<java.lang.String> characters)
characters - The new characters@Contract(value="-> new") @NotNull default BitMapFontProvider.Builder toBuilder()
BitMapFontProvider instance
to a BitMapFontProvider.Builder instance
with the same values as this font provider.