DataSource .java

net.minecraft.network.chat.contents.data.DataSource (interface, 14 lines): interface declaring 2 methods. members: getData, codec. imports: CompoundTag.

net.minecraft.network.chat.contents.datainterface14 linescommon444 B

API Surface (0)

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

Code Graph: Dependencies (2)

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

Full Source

DataSource.java14 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.network.chat.contents.data;
2
3
import com.mojang.brigadier.exceptions.CommandSyntaxException;
4
import com.mojang.serialization.MapCodec;
5
import java.util.stream.Stream;
6
import net.minecraft.commands.CommandSourceStack;
7
import net.minecraft.nbt.CompoundTag;
8
9
public interface DataSource {
10
	Stream<CompoundTag> getData(final CommandSourceStack sender) throws CommandSyntaxException;
11
12
	MapCodec<? extends DataSource> codec();
13
}
14

Decompiled Minecraft 26.3 source of DataSource (net/minecraft/network/chat/contents/data/DataSource.java) with Mojang official mappings, stored verbatim on the site.