Class ScreenNarrator.MessageBuilder
java.lang.Object
net.minecraft.client.gui.screen.narration.ScreenNarrator.MessageBuilder
- All Implemented Interfaces:
NarrationMessageBuilder
- Enclosing class:
ScreenNarrator
@Environment(CLIENT)
private class ScreenNarrator.MessageBuilder
extends Object
implements NarrationMessageBuilder
- Mappings:
Namespace Name official ejy$c
intermediary net/minecraft/class_6385$class_6388
named net/minecraft/client/gui/screen/narration/ScreenNarrator$MessageBuilder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a narration message builder for a submessage.void
put
(NarrationPart part, Narration<?> narration) Adds a narration to this message builder.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.screen.narration.NarrationMessageBuilder
put, put, put
-
Field Details
-
depth
private final int depth- Mappings:
Namespace Name Mixin selector official b
Lejy$c;b:I
intermediary field_33807
Lnet/minecraft/class_6385$class_6388;field_33807:I
named depth
Lnet/minecraft/client/gui/screen/narration/ScreenNarrator$MessageBuilder;depth:I
-
-
Constructor Details
-
MessageBuilder
MessageBuilder(int depth) - Mappings:
Namespace Name Mixin selector official <init>
Lejy$c;<init>(Lejy;I)V
intermediary <init>
Lnet/minecraft/class_6385$class_6388;<init>(Lnet/minecraft/class_6385;I)V
named <init>
Lnet/minecraft/client/gui/screen/narration/ScreenNarrator$MessageBuilder;<init>(Lnet/minecraft/client/gui/screen/narration/ScreenNarrator;I)V
-
-
Method Details
-
put
Adds a narration to this message builder.If a narration already exists for the specified narration part, it is replaced by the new narration.
- Specified by:
put
in interfaceNarrationMessageBuilder
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lejv;a(Leju;Lejx;)V
intermediary method_37032
Lnet/minecraft/class_6382;method_37032(Lnet/minecraft/class_6381;Lnet/minecraft/class_6384;)V
named put
Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;put(Lnet/minecraft/client/gui/screen/narration/NarrationPart;Lnet/minecraft/client/gui/screen/narration/Narration;)V
-
nextMessage
Creates a narration message builder for a submessage.Submessages can have their own set of narrations for the narration parts, which are merged with the "parent" message's narrations as described above.
- Specified by:
nextMessage
in interfaceNarrationMessageBuilder
- Returns:
- the created builder
- Mappings:
Namespace Name Mixin selector official a
Lejv;a()Lejv;
intermediary method_37031
Lnet/minecraft/class_6382;method_37031()Lnet/minecraft/class_6382;
named nextMessage
Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;nextMessage()Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;
-