SpriteRegistry

public class SpriteRegistry

Properties

Link copied to clipboard
public static SpriteRegistry registry

Functions

Link copied to clipboard
public int calculateSize(int width, int height, int fontHeight)
Link copied to clipboard
public int getLength(char c)
Link copied to clipboard
public static SpriteRegistry getRegistry()
Link copied to clipboard
public String getSpacingString(int space)
Link copied to clipboard
public void registerSprite(char spriteIndex, int width, int height, int fontHeight)
Sprite index is the sprite to render's char in the resourcepack.
Link copied to clipboard
public int totalLength(String string)

public int totalLength(String string, boolean isBold)
Returns the length, in pixels, that the string will take in the UI