Class TranslatableCaption
java.lang.Object
org.incendo.cloud.minecraft.extras.caption.TranslatableCaption
- All Implemented Interfaces:
Caption
-
Method Summary
Modifier and TypeMethodDescriptionkey()static CaptionCreates a newTranslatableCaption.static <C> CaptionProvider<C> Caption provider mappingTranslatableCaptiondirectly to it's key, for use withComponentCaptionFormatter.translatable()or similar.
-
Method Details
-
translatableCaption
Creates a newTranslatableCaption.- Parameters:
key- caption key- Returns:
- caption
-
translatableCaptionProvider
Caption provider mappingTranslatableCaptiondirectly to it's key, for use withComponentCaptionFormatter.translatable()or similar. This is necessary for theCaptionRegistryto recognizeTranslatableCaptionwithout messages.- Type Parameters:
C- command sender type- Returns:
- caption provider
-
key
-