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

    • depth

      private final int depth
      Mappings:
      Namespace Name Mixin selector
      official b Less$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> Less$c;<init>(Less;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

      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
      official a Lesp;a(Leso;Lesr;)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

      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
      Mappings:
      Namespace Name Mixin selector
      official a Lesp;a()Lesp;
      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;