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
named net/minecraft/client/gui/screen/narration/ScreenNarrator$MessageBuilder
intermediary net/minecraft/class_6385$class_6388
official flf$c
  • Field Details

    • depth

      private final int depth
      Mappings:
      Namespace Name Mixin selector
      named depth Lnet/minecraft/client/gui/screen/narration/ScreenNarrator$MessageBuilder;depth:I
      intermediary field_33807 Lnet/minecraft/class_6385$class_6388;field_33807:I
      official b Lflf$c;b:I
  • Constructor Details

    • MessageBuilder

      MessageBuilder(int depth)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/screen/narration/ScreenNarrator$MessageBuilder;<init>(Lnet/minecraft/client/gui/screen/narration/ScreenNarrator;I)V
      intermediary <init> Lnet/minecraft/class_6385$class_6388;<init>(Lnet/minecraft/class_6385;I)V
      official <init> Lflf$c;<init>(Lflf;I)V
  • Method Details

    • put

      public void put(NarrationPart part, Narration<?> narration)
      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 interface NarrationMessageBuilder
      See Also:
      Mappings:
      Namespace Name Mixin selector
      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
      intermediary method_37032 Lnet/minecraft/class_6382;method_37032(Lnet/minecraft/class_6381;Lnet/minecraft/class_6384;)V
      official a Lflc;a(Lflb;Lfle;)V
    • nextMessage

      public NarrationMessageBuilder 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 interface NarrationMessageBuilder
      Returns:
      the created builder
      API Note:
      All returned builder instances are equivalent and refer to the same submessage. If you want to add yet another set of narrations, call this method again on the first submessage builder to obtain a "nested" submessage builder.
      Mappings:
      Namespace Name Mixin selector
      named nextMessage Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;nextMessage()Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;
      intermediary method_37031 Lnet/minecraft/class_6382;method_37031()Lnet/minecraft/class_6382;
      official a Lflc;a()Lflc;