Interface FacetComponentFlattener.Translator<V>
- Type Parameters:
V
- the game
- All Superinterfaces:
Facet<V>
- Enclosing class:
- FacetComponentFlattener
An interface to the game's own translation system.
- Since:
- 4.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.kyori.adventure.platform.facet.Facet
Facet.ActionBar<V,
M>, Facet.Book<V, M, B>, Facet.BossBar<V>, Facet.BossBarEntity<V, P>, Facet.BossBarPacket<V>, Facet.Chat<V, M>, Facet.ChatPacket<V, M>, Facet.EntitySound<V, M>, Facet.FakeEntity<V, P>, Facet.Message<V, M>, Facet.Pointers<V>, Facet.Position<V, P>, Facet.Sound<V, P>, Facet.TabList<V, M>, Facet.Title<V, M, C, T>, Facet.TitlePacket<V, M, C, T> -
Method Summary
Modifier and TypeMethodDescription@NotNull String
valueOrDefault
(V game, @NotNull String key) Get the translation forkey
or returnkey
.Methods inherited from interface net.kyori.adventure.platform.facet.Facet
isApplicable, isSupported
-
Method Details
-
valueOrDefault
Get the translation forkey
or returnkey
.- Parameters:
game
- the game instancekey
- the key- Returns:
- a translation or the key
- Since:
- 4.0.0
-