程序包 org.bukkit.map
类 MapFont
java.lang.Object
org.bukkit.map.MapFont
- 直接已知子类:
- MinecraftFont
Represents a bitmap font drawable to a map.
- 
嵌套类概要嵌套类修饰符和类型类说明static classRepresents the graphics for a single character in a MapFont.
- 
字段概要字段
- 
构造器概要构造器
- 
方法概要修饰符和类型方法说明getChar(char ch) Get the sprite for a given character.intGet the height of this font.intGet the width of the given text as it would be rendered using this font.booleanCheck whether the given text is valid.voidsetChar(char ch, @NotNull MapFont.CharacterSprite sprite) Set the sprite for a given character.
- 
字段详细资料- 
malleableprotected boolean malleable
 
- 
- 
构造器详细资料- 
MapFontpublic MapFont()
 
- 
- 
方法详细资料- 
setCharSet the sprite for a given character.- 参数:
- ch- The character to set the sprite for.
- sprite- The CharacterSprite to set.
- 抛出:
- IllegalStateException- if this font is static.
 
- 
getCharGet the sprite for a given character.- 参数:
- ch- The character to get the sprite for.
- 返回:
- The CharacterSprite associated with the character, or null if there is none.
 
- 
getWidthGet the width of the given text as it would be rendered using this font.- 参数:
- text- The text.
- 返回:
- The width in pixels.
 
- 
getHeightpublic int getHeight()Get the height of this font.- 返回:
- The height of the font.
 
- 
isValidCheck whether the given text is valid.- 参数:
- text- The text.
- 返回:
- True if the string contains only defined characters, false otherwise.
 
 
-