Class Narration<T>
java.lang.Object
net.minecraft.client.gui.screen.narration.Narration<T>
A narration is a message consisting of a list of string "sentences".
 The sentences can be iterated using 
forEachSentence.
 Narrations are attached to narration parts
 using NarrationMessageBuilder.put(NarrationPart, Narration).
- Mappings:
 Namespace Name named net/minecraft/client/gui/screen/narration/Narrationintermediary net/minecraft/class_6384official fmk
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidforEachSentence(Consumer<String> consumer) Iterates all sentences in this narration with aConsumer.inthashCode()static Narration<?> Creates a narration from a single string sentence.static Narration<?> Creates a narration from a singleTextsentence.static Narration<?> Creates a narration from a list ofTextsentences. 
- 
Field Details
- 
EMPTY
An empty narration that contains no sentences.- Mappings:
 Namespace Name Mixin selector named EMPTYLnet/minecraft/client/gui/screen/narration/Narration;EMPTY:Lnet/minecraft/client/gui/screen/narration/Narration;intermediary field_33793Lnet/minecraft/class_6384;field_33793:Lnet/minecraft/class_6384;official aLfmk;a:Lfmk;
 - 
value
- Mappings:
 Namespace Name Mixin selector named valueLnet/minecraft/client/gui/screen/narration/Narration;value:Ljava/lang/Object;intermediary field_33794Lnet/minecraft/class_6384;field_33794:Ljava/lang/Object;official bLfmk;b:Ljava/lang/Object;
 - 
transformer
- Mappings:
 Namespace Name Mixin selector named transformerLnet/minecraft/client/gui/screen/narration/Narration;transformer:Ljava/util/function/BiConsumer;intermediary field_33795Lnet/minecraft/class_6384;field_33795:Ljava/util/function/BiConsumer;official cLfmk;c:Ljava/util/function/BiConsumer;
 
 - 
 - 
Constructor Details
- 
Narration
- Mappings:
 Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/screen/narration/Narration;<init>(Ljava/lang/Object;Ljava/util/function/BiConsumer;)Vintermediary <init>Lnet/minecraft/class_6384;<init>(Ljava/lang/Object;Ljava/util/function/BiConsumer;)Vofficial <init>Lfmk;<init>(Ljava/lang/Object;Ljava/util/function/BiConsumer;)V
 
 - 
 - 
Method Details
- 
string
Creates a narration from a single string sentence.- Parameters:
 string- the narrated sentence- Returns:
 - the created narration
 - Mappings:
 Namespace Name Mixin selector named stringLnet/minecraft/client/gui/screen/narration/Narration;string(Ljava/lang/String;)Lnet/minecraft/client/gui/screen/narration/Narration;intermediary method_37036Lnet/minecraft/class_6384;method_37036(Ljava/lang/String;)Lnet/minecraft/class_6384;official aLfmk;a(Ljava/lang/String;)Lfmk;
 - 
text
Creates a narration from a singleTextsentence.- Parameters:
 text- the narrated sentence- Returns:
 - the created narration
 - Implementation Requirements:
 - The sentence is converted to a string using 
Text.getString(). - Mappings:
 Namespace Name Mixin selector named textLnet/minecraft/client/gui/screen/narration/Narration;text(Lnet/minecraft/text/Text;)Lnet/minecraft/client/gui/screen/narration/Narration;intermediary method_37042Lnet/minecraft/class_6384;method_37042(Lnet/minecraft/class_2561;)Lnet/minecraft/class_6384;official aLfmk;a(Lwz;)Lfmk;
 - 
texts
Creates a narration from a list ofTextsentences.- Parameters:
 texts- the narrated sentences- Returns:
 - the created narration
 - Implementation Requirements:
 - The sentences are converted to strings using 
Text.getString(). - Mappings:
 Namespace Name Mixin selector named textsLnet/minecraft/client/gui/screen/narration/Narration;texts(Ljava/util/List;)Lnet/minecraft/client/gui/screen/narration/Narration;intermediary method_37037Lnet/minecraft/class_6384;method_37037(Ljava/util/List;)Lnet/minecraft/class_6384;official aLfmk;a(Ljava/util/List;)Lfmk;
 - 
forEachSentence
Iterates all sentences in this narration with aConsumer.- Parameters:
 consumer- the consumer to accept all sentences in this narration- Mappings:
 Namespace Name Mixin selector named forEachSentenceLnet/minecraft/client/gui/screen/narration/Narration;forEachSentence(Ljava/util/function/Consumer;)Vintermediary method_37039Lnet/minecraft/class_6384;method_37039(Ljava/util/function/Consumer;)Vofficial aLfmk;a(Ljava/util/function/Consumer;)V
 - 
equals
 - 
hashCode
public int hashCode() 
 -