Class CSVFont
java.lang.Object
com.github.stefvanschie.inventoryframework.font.util.Font
com.github.stefvanschie.inventoryframework.font.CSVFont
A font for characters with a space as default character. Only one instance of this class should ever exist and should
be used everywhere.
- Since:
- 0.5.0
-
Field Summary
Fields inherited from class com.github.stefvanschie.inventoryframework.font.util.Font
BIRCH_PLANKS, BLACK, BLUE, BROWN, COBBLESTONE, CYAN, DIAMOND, DIRT, GOLD, GRAY, GREEN, JUNGLE_PLANKS, LETTER_CUBE, LIGHT_BLUE, LIGHT_GRAY, LIME, MAGENTA, MONITOR, OAK_LOG, OAK_PLANKS, ORANGE, PINK, PLUSH, PUMPKIN, PURPLE, QUARTZ, RAINBOW, RED, SPRUCE_PLANKS, STONE, WATERMELON, WHITE, YELLOW
-
Constructor Summary
-
Method Summary
Methods inherited from class com.github.stefvanschie.inventoryframework.font.util.Font
fromName, registerFont
-
Constructor Details
-
CSVFont
Creates a new default font- Parameters:
defaultCharacter
- the default character to use when a requested character cannot be foundfilePath
- the relative file path to the csv file containing the character mappings- Since:
- 0.5.0
-
-
Method Details
-
getDefaultItem
Description copied from class:Font
Gets a default item for characters that do not have a dedicated item- Specified by:
getDefaultItem
in classFont
- Returns:
- the default item
-
toItem
Description copied from class:Font
Turns the specified character into anItemStack
representing the specified character. If there is no item for the specified character this will return null.
-