NarrationElementOutput .java

net.minecraft.client.gui.narration.NarrationElementOutput (interface, 28 lines): members: narrationTrigger, nest, add. imports: ImmutableList.

net.minecraft.client.gui.narrationinterface28 linesclient858 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Code Graph: Dependencies (4)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

NarrationElementOutput.java28 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.gui.narration;
2
3
import com.google.common.collect.ImmutableList;
4
import net.fabricmc.api.EnvType;
5
import net.fabricmc.api.Environment;
6
import net.minecraft.network.chat.Component;
7
8
@Environment(EnvType.CLIENT)
9
public interface NarrationElementOutput {
10
	default void add(final NarratedElementType type, final Component contents) {
11
		this.add(type, NarrationThunk.from(contents.getString()));
12
	}
13
14
	default void add(final NarratedElementType type, final String contents) {
15
		this.add(type, NarrationThunk.from(contents));
16
	}
17
18
	default void add(final NarratedElementType type, final Component... contents) {
19
		this.add(type, NarrationThunk.from(ImmutableList.copyOf(contents)));
20
	}
21
22
	void add(final NarratedElementType type, final NarrationThunk<?> contents);
23
24
	NarrationElementOutput nest();
25
26
	NarrationTrigger narrationTrigger();
27
}
28

Decompiled Minecraft 26.3 source of NarrationElementOutput (net/minecraft/client/gui/narration/NarrationElementOutput.java) with Mojang official mappings, stored verbatim on the site.