Class DefaultMiniMessageFactory
java.lang.Object
me.bristermitten.mittenlib.lang.format.DefaultMiniMessageFactory
- All Implemented Interfaces:
AbstractMiniMessageFactory
Default implementation of
AbstractMiniMessageFactory.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull net.kyori.adventure.text.minimessage.MiniMessagecreate(@Nullable OfflinePlayer player) Create aMiniMessageinstance for a player.
-
Constructor Details
-
DefaultMiniMessageFactory
public DefaultMiniMessageFactory()
-
-
Method Details
-
create
@NotNull public @NotNull net.kyori.adventure.text.minimessage.MiniMessage create(@Nullable @Nullable OfflinePlayer player) Create aMiniMessageinstance for a player. No guarantees are made about when this method will be called. The implementation is not required to use its player argument. Implementations are also not required to return a new instance each time.- Specified by:
createin interfaceAbstractMiniMessageFactory- Parameters:
player- the player to create theMiniMessagefor- Returns:
- a
MiniMessageinstance
-