ActionTypes .java

net.minecraft.server.dialog.action.ActionTypes (class, 14 lines): members: bootstrap. strings: "dynamic/run_command", "dynamic/custom". imports: Registry.

net.minecraft.server.dialog.actionclass14 linesserver685 B

API Surface (1)

MapCodec<? extends Action> bootstrap(final Registry<MapCodec<? extends Action>> registry)

String literals (2)

"dynamic/run_command"
"dynamic/custom"

Code Graph: Dependencies (3)

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

Full Source

ActionTypes.java14 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.server.dialog.action;
2
3
import com.mojang.serialization.MapCodec;
4
import net.minecraft.core.Registry;
5
import net.minecraft.resources.Identifier;
6
7
public class ActionTypes {
8
	public static MapCodec<? extends Action> bootstrap(final Registry<MapCodec<? extends Action>> registry) {
9
		StaticAction.WRAPPED_CODECS.forEach((action, codec) -> Registry.register(registry, Identifier.withDefaultNamespace(action.getSerializedName()), codec));
10
		Registry.register(registry, Identifier.withDefaultNamespace("dynamic/run_command"), CommandTemplate.MAP_CODEC);
11
		return Registry.register(registry, Identifier.withDefaultNamespace("dynamic/custom"), CustomAll.MAP_CODEC);
12
	}
13
}
14

Decompiled Minecraft 26.3 source of ActionTypes (net/minecraft/server/dialog/action/ActionTypes.java) with Mojang official mappings, stored verbatim on the site.