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
official ewh
intermediary net/minecraft/class_6381
named net/minecraft/client/gui/screen/narration/NarrationPart
  • Enum Constant Details

    • TITLE

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

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

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

      public static final NarrationPart USAGE
      Usage instructions for a narrated element.
      Mappings:
      Namespace Name Mixin selector
      official d Lewh;d:Lewh;
      intermediary field_33791 Lnet/minecraft/class_6381;field_33791:Lnet/minecraft/class_6381;
      named USAGE Lnet/minecraft/client/gui/screen/narration/NarrationPart;USAGE:Lnet/minecraft/client/gui/screen/narration/NarrationPart;
  • 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