toggle menu
BetterHud docs
1.8
dist
switch theme
search in API
BetterHud/dist
/
kr.toxicity.hud.manager
/
PlaceholderManagerImpl
/
PlaceholderContainerImpl
Placeholder
Container
Impl
class
PlaceholderContainerImpl
<
T
,
R
>
(
val
clazz
:
Class
<
R
>
,
val
defaultValue
:
T
,
defaultMap
:
Map
<
String
,
HudPlaceholder
<
T
>
>
,
val
parser
:
(
String
)
->
T
?
,
val
stringMapper
:
(
R
)
->
String
)
:
PlaceholderContainer
<
T
>
Members
Constructors
Placeholder
Container
Impl
Link copied to clipboard
constructor
(
clazz
:
Class
<
R
>
,
defaultValue
:
T
,
defaultMap
:
Map
<
String
,
HudPlaceholder
<
T
>
>
,
parser
:
(
String
)
->
T
?
,
stringMapper
:
(
R
)
->
String
)
Properties
clazz
Link copied to clipboard
val
clazz
:
Class
<
R
>
default
Value
Link copied to clipboard
val
defaultValue
:
T
map
Link copied to clipboard
val
map
:
HashMap
<
String
,
HudPlaceholder
<
T
>
>
parser
Link copied to clipboard
val
parser
:
(
String
)
->
T
?
string
Mapper
Link copied to clipboard
val
stringMapper
:
(
R
)
->
String
Functions
add
Placeholder
Link copied to clipboard
open
override
fun
addPlaceholder
(
name
:
String
,
placeholder
:
HudPlaceholder
<
T
>
)
get
All
Placeholders
Link copied to clipboard
open
override
fun
getAllPlaceholders
(
)
:
Map
<
String
,
HudPlaceholder
<
*
>
>
init
Link copied to clipboard
fun
init
(
)
string
Value
Link copied to clipboard
fun
stringValue
(
any
:
Any
)
:
String