public class CSVFont extends 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 and Description |
|---|
CSVFont(char defaultCharacter,
String filePath)
Creates a new default font
|
| Modifier and Type | Method and Description |
|---|---|
org.bukkit.inventory.ItemStack |
getDefaultItem()
Gets a default item for characters that do not have a dedicated item
|
org.bukkit.inventory.ItemStack |
toItem(char character)
Turns the specified character into an
ItemStack representing the specified character. |
fromName, registerFontpublic CSVFont(char defaultCharacter,
String filePath)
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@NotNull @Contract(pure=true) public org.bukkit.inventory.ItemStack getDefaultItem()
getDefaultItem in class Font@Nullable @Contract(pure=true) public org.bukkit.inventory.ItemStack toItem(char character)
ItemStack representing the specified character. If there is no item
for the specified character this will return null.Copyright © 2019. All rights reserved.