Class MinecraftCaptionFormatter<C>
java.lang.Object
org.incendo.cloud.minecraft.modded.caption.MinecraftCaptionFormatter<C>
- All Implemented Interfaces:
CaptionFormatter<C, net.minecraft.network.chat.Component>
public final class MinecraftCaptionFormatter<C>
extends Object
implements CaptionFormatter<C, net.minecraft.network.chat.Component>
-
Nested Class Summary
Nested classes/interfaces inherited from interface CaptionFormatter
CaptionFormatter.PatternReplacingCaptionFormatter<C> -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newMinecraftCaptionFormatterwith the defaultCaptionFormatter.placeholderPattern()pattern.MinecraftCaptionFormatter(@NonNull Pattern pattern) Creates a newMinecraftCaptionFormatter. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CaptionFormatter
formatCaption
-
Constructor Details
-
MinecraftCaptionFormatter
Creates a newMinecraftCaptionFormatter.- Parameters:
pattern- pattern
-
MinecraftCaptionFormatter
public MinecraftCaptionFormatter()Creates a newMinecraftCaptionFormatterwith the defaultCaptionFormatter.placeholderPattern()pattern.
-
-
Method Details
-
formatCaption
public @NonNull net.minecraft.network.chat.Component formatCaption(@NonNull Caption captionKey, @NonNull C recipient, @NonNull String caption, @NonNull List<@NonNull CaptionVariable> variables) - Specified by:
formatCaptionin interfaceCaptionFormatter<C, net.minecraft.network.chat.Component>
-