toggle menu
HopperLib
experimental-1-21-SNAPSHOT
jvm
switch theme
search in API
HopperLib
/
cc.mrcl.hopperlib.ScreenUI
/
SpriteRegistry
Sprite
Registry
public
class
SpriteRegistry
Members
Properties
registry
Link copied to clipboard
public
static
SpriteRegistry
registry
Functions
calculate
Size
Link copied to clipboard
public
int
calculateSize
(
int width
,
int height
,
int fontHeight
)
get
Length
Link copied to clipboard
public
int
getLength
(
char c
)
get
Registry
Link copied to clipboard
public
static
SpriteRegistry
getRegistry
(
)
get
Spacing
String
Link copied to clipboard
public
String
getSpacingString
(
int space
)
register
Sprite
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.
total
Length
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