Class ScreenNarrator
java.lang.Object
net.minecraft.client.gui.screen.narration.ScreenNarrator
Manages narration messages and combines them into a narrated string.
- Mappings:
 Namespace Name official essintermediary net/minecraft/class_6385named net/minecraft/client/gui/screen/narration/ScreenNarrator
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate classprivate static class - 
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) final Map<ScreenNarrator.PartIndex,ScreenNarrator.Message>  - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidbuildNarrations(Consumer<NarrationMessageBuilder> builderConsumer) Creates the narration messages for the next narration using aNarrationMessageBuilder.buildNarratorText(boolean includeUnchanged) Builds a text representation of the narrations produced by the last call tobuildNarrations. 
- 
Field Details
- 
currentMessageIndex
int currentMessageIndex- Mappings:
 Namespace Name Mixin selector official aLess;a:Iintermediary field_33796Lnet/minecraft/class_6385;field_33796:Inamed currentMessageIndexLnet/minecraft/client/gui/screen/narration/ScreenNarrator;currentMessageIndex:I
 - 
narrations
- Mappings:
 Namespace Name Mixin selector official bLess;b:Ljava/util/Map;intermediary field_33797Lnet/minecraft/class_6385;field_33797:Ljava/util/Map;named narrationsLnet/minecraft/client/gui/screen/narration/ScreenNarrator;narrations:Ljava/util/Map;
 
 - 
 - 
Constructor Details
- 
ScreenNarrator
public ScreenNarrator() 
 - 
 - 
Method Details
- 
buildNarrations
Creates the narration messages for the next narration using aNarrationMessageBuilder.- Parameters:
 builderConsumer- a consumer that adds the narrations to aNarrationMessageBuilder- Mappings:
 Namespace Name Mixin selector official aLess;a(Ljava/util/function/Consumer;)Vintermediary method_37044Lnet/minecraft/class_6385;method_37044(Ljava/util/function/Consumer;)Vnamed buildNarrationsLnet/minecraft/client/gui/screen/narration/ScreenNarrator;buildNarrations(Ljava/util/function/Consumer;)V
 - 
buildNarratorText
Builds a text representation of the narrations produced by the last call tobuildNarrations.- Parameters:
 includeUnchanged- iftrue, the text will include unchanged messages that have already been included in the output of this method previously- Returns:
 - the created narrator text
 - Implementation Note:
 - Contains all sentences in the narrations of the current narration
 message separated by 
". ", ordered as described inNarrationMessageBuilder. - Mappings:
 Namespace Name Mixin selector official aLess;a(Z)Ljava/lang/String;intermediary method_37045Lnet/minecraft/class_6385;method_37045(Z)Ljava/lang/String;named buildNarratorTextLnet/minecraft/client/gui/screen/narration/ScreenNarrator;buildNarratorText(Z)Ljava/lang/String;
 
 -