Interface FacetComponentFlattener.Translator<V>
-
- Type Parameters:
V
- the game
- All Superinterfaces:
Facet<V>
- Enclosing class:
- FacetComponentFlattener
public static interface FacetComponentFlattener.Translator<V> extends Facet<V>
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull java.lang.String
valueOrDefault(V game, @NotNull java.lang.String key)
Get the translation forkey
or returnkey
.-
Methods inherited from interface net.kyori.adventure.platform.facet.Facet
isApplicable, isSupported
-
-
-
-
Method Detail
-
valueOrDefault
@NotNull @NotNull java.lang.String valueOrDefault(@NotNull V game, @NotNull @NotNull java.lang.String key)
Get the translation forkey
or returnkey
.- Parameters:
game
- the game instancekey
- the key- Returns:
- a translation or the key
- Since:
- 4.0.0
-
-