Enum Class NarrationPart

java.lang.Object
java.lang.Enum<NarrationPart>
net.minecraft.client.gui.screen.narration.NarrationPart
All Implemented Interfaces:
Serializable, Comparable<NarrationPart>, Constable

@Environment(CLIENT) public enum NarrationPart extends Enum<NarrationPart>
A component of a narration message. This enum is mostly used for grouping and ordering narrations in a narration message.
Mappings:
Namespace Name
named net/minecraft/client/gui/screen/narration/NarrationPart
intermediary net/minecraft/class_6381
official fla
  • Enum Constant Details

    • TITLE

      public static final NarrationPart TITLE
      The main narration for a narrated element.
      Mappings:
      Namespace Name Mixin selector
      named TITLE Lnet/minecraft/client/gui/screen/narration/NarrationPart;TITLE:Lnet/minecraft/client/gui/screen/narration/NarrationPart;
      intermediary field_33788 Lnet/minecraft/class_6381;field_33788:Lnet/minecraft/class_6381;
      official a Lfla;a:Lfla;
    • POSITION

      public static final NarrationPart POSITION
      The position of a narrated element in a container such as a list.
      Mappings:
      Namespace Name Mixin selector
      named POSITION Lnet/minecraft/client/gui/screen/narration/NarrationPart;POSITION:Lnet/minecraft/client/gui/screen/narration/NarrationPart;
      intermediary field_33789 Lnet/minecraft/class_6381;field_33789:Lnet/minecraft/class_6381;
      official b Lfla;b:Lfla;
    • HINT

      public static final NarrationPart HINT
      A hint for a narrated element, e.g. a button tooltip.
      Mappings:
      Namespace Name Mixin selector
      named HINT Lnet/minecraft/client/gui/screen/narration/NarrationPart;HINT:Lnet/minecraft/client/gui/screen/narration/NarrationPart;
      intermediary field_33790 Lnet/minecraft/class_6381;field_33790:Lnet/minecraft/class_6381;
      official c Lfla;c:Lfla;
    • USAGE

      public static final NarrationPart USAGE
      Usage instructions for a narrated element.
      Mappings:
      Namespace Name Mixin selector
      named USAGE Lnet/minecraft/client/gui/screen/narration/NarrationPart;USAGE:Lnet/minecraft/client/gui/screen/narration/NarrationPart;
      intermediary field_33791 Lnet/minecraft/class_6381;field_33791:Lnet/minecraft/class_6381;
      official d Lfla;d:Lfla;
  • Constructor Details

    • NarrationPart

      private NarrationPart()
  • Method Details

    • values

      public static NarrationPart[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static NarrationPart valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null