DefaultedRegistry.java
net.minecraft.core.DefaultedRegistry
信息
- 全限定名:net.minecraft.core.DefaultedRegistry
- 类型:public interface
- 包:net.minecraft.core
- 源码路径:src/main/java/net/minecraft/core/DefaultedRegistry.java
- 起始行号:L7
- 继承:Registry
- 职责:
TODO
字段/常量
- 无
内部类/嵌套类型
- 无
构造器
- 无
方法
下面的方法块按源码顺序生成。
Identifier getKey(T thing) @ L8
- 方法名:getKey
- 源码定位:L8
- 返回类型:Identifier
- 修饰符:package-private
参数:
- thing: T
说明:
TODO
T getValue(Identifier key) @ L11
- 方法名:getValue
- 源码定位:L11
- 返回类型:T
- 修饰符:package-private
参数:
- key: Identifier
说明:
TODO
T byId(int id) @ L14
- 方法名:byId
- 源码定位:L14
- 返回类型:T
- 修饰符:package-private
参数:
- id: int
说明:
TODO
Identifier getDefaultKey() @ L17
- 方法名:getDefaultKey
- 源码定位:L17
- 返回类型:Identifier
- 修饰符:package-private
参数:
- 无
说明:
TODO
代码
public interface DefaultedRegistry<T> extends Registry<T> {
@Override
@NonNull Identifier getKey(T thing);
@Override
@NonNull T getValue(@Nullable Identifier key);
@Override
@NonNull T byId(int id);
Identifier getDefaultKey();
}引用的其他类
-
- 引用位置:
继承
- 引用位置:
-
- 引用位置:
参数/返回值
- 引用位置: