Package dev.cerus.maps.api.font
Class Sprite
java.lang.Object
dev.cerus.maps.api.font.Sprite
Represents a single character / codepoint
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Sprite
public Sprite(int width, int height) -
Sprite
public Sprite(int width, int height, boolean[] grid)
-
-
Method Details
-
fromBukkit
Convert Bukkit sprite into maps sprite- Parameters:
bukkitSprite
- The Bukkit sprite- Returns:
- The converted sprite
-
get
public boolean get(int row, int col)Get a pixel- Parameters:
row
- The rowcol
- The column- Returns:
- The pixel (true = visible, false = invisible)
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getGrid
public boolean[] getGrid()
-