SelectItemModelProperties.java
net.minecraft.client.renderer.item.properties.select.SelectItemModelProperties
信息
- 全限定名:net.minecraft.client.renderer.item.properties.select.SelectItemModelProperties
- 类型:public class
- 包:net.minecraft.client.renderer.item.properties.select
- 源码路径:src/main/java/net/minecraft/client/renderer/item/properties/select/SelectItemModelProperties.java
- 起始行号:L10
- 职责:
TODO
字段/常量
-
ID_MAPPER- 类型:
ExtraCodecs.LateBoundIdMapper<Identifier,SelectItemModelProperty.Type<?,?>> - 修饰符:
private static final - 源码定位:
L11 - 说明:
TODO
- 类型:
-
CODEC- 类型:
Codec<SelectItemModelProperty.Type<?,?>> - 修饰符:
public static final - 源码定位:
L12 - 说明:
TODO
- 类型:
内部类/嵌套类型
- 无
构造器
- 无
方法
下面的方法块按源码顺序生成。
public static void bootstrap() @ L14
- 方法名:bootstrap
- 源码定位:L14
- 返回类型:void
- 修饰符:public static
参数:
- 无
说明:
TODO
代码
@OnlyIn(Dist.CLIENT)
public class SelectItemModelProperties {
private static final ExtraCodecs.LateBoundIdMapper<Identifier, SelectItemModelProperty.Type<?, ?>> ID_MAPPER = new ExtraCodecs.LateBoundIdMapper<>();
public static final Codec<SelectItemModelProperty.Type<?, ?>> CODEC = ID_MAPPER.codec(Identifier.CODEC);
public static void bootstrap() {
ID_MAPPER.put(Identifier.withDefaultNamespace("custom_model_data"), CustomModelDataProperty.TYPE);
ID_MAPPER.put(Identifier.withDefaultNamespace("main_hand"), MainHand.TYPE);
ID_MAPPER.put(Identifier.withDefaultNamespace("charge_type"), Charge.TYPE);
ID_MAPPER.put(Identifier.withDefaultNamespace("trim_material"), TrimMaterialProperty.TYPE);
ID_MAPPER.put(Identifier.withDefaultNamespace("block_state"), ItemBlockState.TYPE);
ID_MAPPER.put(Identifier.withDefaultNamespace("display_context"), DisplayContext.TYPE);
ID_MAPPER.put(Identifier.withDefaultNamespace("local_time"), LocalTime.TYPE);
ID_MAPPER.put(Identifier.withDefaultNamespace("context_entity_type"), ContextEntityType.TYPE);
ID_MAPPER.put(Identifier.withDefaultNamespace("context_dimension"), ContextDimension.TYPE);
ID_MAPPER.put(Identifier.withDefaultNamespace("component"), ComponentContents.castType());
}
}引用的其他类
-
- 引用位置:
方法调用 - 关联成员:
ComponentContents.castType()
- 引用位置:
-
- 引用位置:
字段
- 引用位置:
-
- 引用位置:
字段/方法调用 - 关联成员:
Identifier.withDefaultNamespace()
- 引用位置:
-
- 引用位置:
字段
- 引用位置: