程序包 org.bukkit.map

类 MapFont.CharacterSprite

java.lang.Object
org.bukkit.map.MapFont.CharacterSprite
封闭类:
MapFont

public static class MapFont.CharacterSprite extends Object
表示MapFont中单个字符的图形。
  • 构造器详细资料

    • CharacterSprite

      public CharacterSprite(int width, int height, @NotNull @org.jetbrains.annotations.NotNull boolean[] data)
  • 方法详细资料

    • get

      public boolean get(int row, int col)
      获取字符像素的值。

      原文: Get the value of a pixel of the character.

      参数:
      row - 行,范围为[0,8)。
      col - 列,范围为[0,8)。
      返回:
      如果像素是实心的则返回true,如果是透明的则返回false。
    • getWidth

      public int getWidth()
      获取字符精灵图的宽度。

      原文: Get the width of the character sprite.

      返回:
      字符的宽度。
    • getHeight

      public int getHeight()
      获取字符精灵图的高度。

      原文: Get the height of the character sprite.

      返回:
      字符的高度。