DependantName .java

net.minecraft.resources.DependantName (interface, 11 lines): interface declaring 2 methods. members: fixed, get. ann: @FunctionalInterface.

net.minecraft.resourcesinterface11 linescommon207 B

API Surface (0)

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

Code Graph: Dependencies (1)

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

Full Source

DependantName.java11 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.resources;
2
3
@FunctionalInterface
4
public interface DependantName<T, V> {
5
	V get(ResourceKey<T> id);
6
7
	static <T, V> DependantName<T, V> fixed(final V value) {
8
		return id -> value;
9
	}
10
}
11

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