KeybindResolver .java

net.minecraft.network.chat.contents.KeybindResolver (class, 14 lines): members: setKeyResolver, keyResolver. imports: Component.

net.minecraft.network.chat.contentsclass14 linescommon417 B

API Surface (1)

void setKeyResolver(final Function<String, Supplier<Component>> resolver)

Fields & Constants (1)

keyResolver

Code Graph: Dependencies (1)

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

Full Source

KeybindResolver.java14 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.network.chat.contents;
2
3
import java.util.function.Function;
4
import java.util.function.Supplier;
5
import net.minecraft.network.chat.Component;
6
7
public class KeybindResolver {
8
	static Function<String, Supplier<Component>> keyResolver = name -> () -> Component.literal(name);
9
10
	public static void setKeyResolver(final Function<String, Supplier<Component>> resolver) {
11
		keyResolver = resolver;
12
	}
13
}
14

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