ArgumentTypeInfo .java

net.minecraft.commands.synchronization.ArgumentTypeInfo (interface, 23 lines): members: deserializeFromNetwork, serializeToJson, Template, unpack.

net.minecraft.commands.synchronizationinterface23 linescommonextends ArgumentType<661 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

ArgumentTypeInfo.java23 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.commands.synchronization;
2
3
import com.google.gson.JsonObject;
4
import com.mojang.brigadier.arguments.ArgumentType;
5
import net.minecraft.commands.CommandBuildContext;
6
import net.minecraft.network.FriendlyByteBuf;
7
8
public interface ArgumentTypeInfo<A extends ArgumentType<?>, T extends ArgumentTypeInfo.Template<A>> {
9
	void serializeToNetwork(T template, FriendlyByteBuf out);
10
11
	T deserializeFromNetwork(FriendlyByteBuf in);
12
13
	void serializeToJson(T template, JsonObject out);
14
15
	T unpack(final A argument);
16
17
	interface Template<A extends ArgumentType<?>> {
18
		A instantiate(CommandBuildContext context);
19
20
		ArgumentTypeInfo<A, ?> type();
21
	}
22
}
23

Decompiled Minecraft 26.3 source of ArgumentTypeInfo (net/minecraft/commands/synchronization/ArgumentTypeInfo.java) with Mojang official mappings, stored verbatim on the site.