generate Chat Head
Generates a chat head image from a Minecraft player's skin.
Return
A list of strings representing the chat head image.
Example usage:
val chatHead = ChatHeadUtil.generateChatHead(player)
for (line in chatHead) {
player.sendMessage(color(line))
}
Parameters
The Minecraft player.
The scale of the image (default is 8).
The character to use for each pixel (default is "⬛").
Whether to add a new line after each pixel (default is false).
Whether to cache the generated image (default is false).
Generates a chat head image from a Minecraft player's skin.
Return
A list of strings representing the chat head image.
Example usage:
val chatHead = ChatHeadUtil.generateChatHead("Notch")
for (line in chatHead) {
player.sendMessage(color(line))
}
Parameters
The username of the Minecraft player.
The scale of the image (default is 8).
The character to use for each pixel (default is "⬛").
Whether to add a new line after each pixel (default is false).
Whether to cache the generated image (default is false).
Generates a chat head image from a URL.
Return
A list of strings representing the chat head image.
Example usage:
val chatHead = ChatHeadUtil.generateChatHead("https://example.com/image.png")
for (line in chatHead) {
player.sendMessage(color(line))
}
Parameters
The URL of the image.
The character to use for each pixel (default is "⬛").
Whether to add a new line after each pixel (default is false).
Whether to cache the generated image (default is false).