mirror of https://github.com/FabricMC/yarn.git
49 lines
2.2 KiB
Plaintext
49 lines
2.2 KiB
Plaintext
CLASS net/minecraft/class_6384 net/minecraft/client/gui/screen/narration/Narration
|
|
COMMENT A narration is a message consisting of a list of string "sentences".
|
|
COMMENT The sentences can be iterated using {@link #forEachSentence forEachSentence}.
|
|
COMMENT
|
|
COMMENT <p>Narrations are attached to {@linkplain NarrationPart narration parts}
|
|
COMMENT using {@link NarrationMessageBuilder#put(NarrationPart, Narration)}.
|
|
FIELD field_33793 EMPTY Lnet/minecraft/class_6384;
|
|
COMMENT An empty narration that contains no sentences.
|
|
FIELD field_33794 value Ljava/lang/Object;
|
|
FIELD field_33795 transformer Ljava/util/function/BiConsumer;
|
|
METHOD <init> (Ljava/lang/Object;Ljava/util/function/BiConsumer;)V
|
|
ARG 1 value
|
|
ARG 2 transformer
|
|
METHOD equals (Ljava/lang/Object;)Z
|
|
ARG 1 o
|
|
METHOD method_37036 string (Ljava/lang/String;)Lnet/minecraft/class_6384;
|
|
COMMENT Creates a narration from a single string sentence.
|
|
COMMENT
|
|
COMMENT @return the created narration
|
|
ARG 0 string
|
|
COMMENT the narrated sentence
|
|
METHOD method_37037 texts (Ljava/util/List;)Lnet/minecraft/class_6384;
|
|
COMMENT Creates a narration from a list of {@link Text} sentences.
|
|
COMMENT
|
|
COMMENT @implSpec The sentences are converted to strings using {@link Text#getString}.
|
|
COMMENT @return the created narration
|
|
ARG 0 texts
|
|
COMMENT the narrated sentences
|
|
METHOD method_37038 (Ljava/util/List;Ljava/util/function/Consumer;Ljava/util/List;)V
|
|
ARG 1 consumer
|
|
ARG 2 texts
|
|
METHOD method_37039 forEachSentence (Ljava/util/function/Consumer;)V
|
|
COMMENT Iterates all sentences in this narration with a {@link Consumer}.
|
|
ARG 1 consumer
|
|
COMMENT the consumer to accept all sentences in this narration
|
|
METHOD method_37040 (Ljava/util/function/Consumer;Lnet/minecraft/class_3902;)V
|
|
ARG 0 consumer
|
|
ARG 1 text
|
|
METHOD method_37041 (Ljava/util/function/Consumer;Lnet/minecraft/class_2561;)V
|
|
ARG 0 consumer
|
|
ARG 1 text
|
|
METHOD method_37042 text (Lnet/minecraft/class_2561;)Lnet/minecraft/class_6384;
|
|
COMMENT Creates a narration from a single {@link Text} sentence.
|
|
COMMENT
|
|
COMMENT @implSpec The sentence is converted to a string using {@link Text#getString}.
|
|
COMMENT @return the created narration
|
|
ARG 0 text
|
|
COMMENT the narrated sentence
|