DependantName.java
net.minecraft.resources.DependantName
信息
- 全限定名:net.minecraft.resources.DependantName
- 类型:public interface
- 包:net.minecraft.resources
- 源码路径:src/main/java/net/minecraft/resources/DependantName.java
- 起始行号:L4
- 职责:
TODO
字段/常量
- 无
内部类/嵌套类型
- 无
构造器
- 无
方法
下面的方法块按源码顺序生成。
V get(ResourceKey<T> id) @ L5
- 方法名:get
- 源码定位:L5
- 返回类型:V
- 修饰符:package-private
参数:
- id: ResourceKey
说明:
TODO
static <T,V> DependantName<T,V> fixed(V value) @ L7
- 方法名:fixed
- 源码定位:L7
- 返回类型:<T,V> DependantName<T,V>
- 修饰符:static
参数:
- value: V
说明:
TODO
代码
@FunctionalInterface
public interface DependantName<T, V> {
V get(ResourceKey<T> id);
static <T, V> DependantName<T, V> fixed(V value) {
return id -> value;
}
}引用的其他类
- ResourceKey
- 引用位置:
参数
- 引用位置: