DataComponentPredicates.java
net.minecraft.core.component.predicates.DataComponentPredicates
信息
- 全限定名:net.minecraft.core.component.predicates.DataComponentPredicates
- 类型:public class
- 包:net.minecraft.core.component.predicates
- 源码路径:src/main/java/net/minecraft/core/component/predicates/DataComponentPredicates.java
- 起始行号:L7
- 职责:
TODO
字段/常量
-
DAMAGE- 类型:
DataComponentPredicate.Type<DamagePredicate> - 修饰符:
public static final - 源码定位:
L8 - 说明:
TODO
- 类型:
-
ENCHANTMENTS- 类型:
DataComponentPredicate.Type<EnchantmentsPredicate.Enchantments> - 修饰符:
public static final - 源码定位:
L9 - 说明:
TODO
- 类型:
-
STORED_ENCHANTMENTS- 类型:
DataComponentPredicate.Type<EnchantmentsPredicate.StoredEnchantments> - 修饰符:
public static final - 源码定位:
L12 - 说明:
TODO
- 类型:
-
POTIONS- 类型:
DataComponentPredicate.Type<PotionsPredicate> - 修饰符:
public static final - 源码定位:
L15 - 说明:
TODO
- 类型:
-
CUSTOM_DATA- 类型:
DataComponentPredicate.Type<CustomDataPredicate> - 修饰符:
public static final - 源码定位:
L16 - 说明:
TODO
- 类型:
-
CONTAINER- 类型:
DataComponentPredicate.Type<ContainerPredicate> - 修饰符:
public static final - 源码定位:
L17 - 说明:
TODO
- 类型:
-
BUNDLE_CONTENTS- 类型:
DataComponentPredicate.Type<BundlePredicate> - 修饰符:
public static final - 源码定位:
L18 - 说明:
TODO
- 类型:
-
FIREWORK_EXPLOSION- 类型:
DataComponentPredicate.Type<FireworkExplosionPredicate> - 修饰符:
public static final - 源码定位:
L19 - 说明:
TODO
- 类型:
-
FIREWORKS- 类型:
DataComponentPredicate.Type<FireworksPredicate> - 修饰符:
public static final - 源码定位:
L22 - 说明:
TODO
- 类型:
-
WRITABLE_BOOK- 类型:
DataComponentPredicate.Type<WritableBookPredicate> - 修饰符:
public static final - 源码定位:
L23 - 说明:
TODO
- 类型:
-
WRITTEN_BOOK- 类型:
DataComponentPredicate.Type<WrittenBookPredicate> - 修饰符:
public static final - 源码定位:
L24 - 说明:
TODO
- 类型:
-
ATTRIBUTE_MODIFIERS- 类型:
DataComponentPredicate.Type<AttributeModifiersPredicate> - 修饰符:
public static final - 源码定位:
L25 - 说明:
TODO
- 类型:
-
ARMOR_TRIM- 类型:
DataComponentPredicate.Type<TrimPredicate> - 修饰符:
public static final - 源码定位:
L28 - 说明:
TODO
- 类型:
-
JUKEBOX_PLAYABLE- 类型:
DataComponentPredicate.Type<JukeboxPlayablePredicate> - 修饰符:
public static final - 源码定位:
L29 - 说明:
TODO
- 类型:
-
VILLAGER_VARIANT- 类型:
DataComponentPredicate.Type<VillagerTypePredicate> - 修饰符:
public static final - 源码定位:
L30 - 说明:
TODO
- 类型:
内部类/嵌套类型
- 无
构造器
- 无
方法
下面的方法块按源码顺序生成。
private static <T extends DataComponentPredicate> DataComponentPredicate.Type<T> register(String id, Codec<T> codec) @ L32
- 方法名:register
- 源码定位:L32
- 返回类型:
DataComponentPredicate.Type - 修饰符:private static
参数:
- id: String
- codec: Codec
说明:
TODO
public static DataComponentPredicate.Type<?> bootstrap(Registry<DataComponentPredicate.Type<?>> registry) @ L36
- 方法名:bootstrap
- 源码定位:L36
- 返回类型:DataComponentPredicate.Type<?>
- 修饰符:public static
参数:
- registry: Registry<DataComponentPredicate.Type<?>>
说明:
TODO
代码
public class DataComponentPredicates {
public static final DataComponentPredicate.Type<DamagePredicate> DAMAGE = register("damage", DamagePredicate.CODEC);
public static final DataComponentPredicate.Type<EnchantmentsPredicate.Enchantments> ENCHANTMENTS = register(
"enchantments", EnchantmentsPredicate.Enchantments.CODEC
);
public static final DataComponentPredicate.Type<EnchantmentsPredicate.StoredEnchantments> STORED_ENCHANTMENTS = register(
"stored_enchantments", EnchantmentsPredicate.StoredEnchantments.CODEC
);
public static final DataComponentPredicate.Type<PotionsPredicate> POTIONS = register("potion_contents", PotionsPredicate.CODEC);
public static final DataComponentPredicate.Type<CustomDataPredicate> CUSTOM_DATA = register("custom_data", CustomDataPredicate.CODEC);
public static final DataComponentPredicate.Type<ContainerPredicate> CONTAINER = register("container", ContainerPredicate.CODEC);
public static final DataComponentPredicate.Type<BundlePredicate> BUNDLE_CONTENTS = register("bundle_contents", BundlePredicate.CODEC);
public static final DataComponentPredicate.Type<FireworkExplosionPredicate> FIREWORK_EXPLOSION = register(
"firework_explosion", FireworkExplosionPredicate.CODEC
);
public static final DataComponentPredicate.Type<FireworksPredicate> FIREWORKS = register("fireworks", FireworksPredicate.CODEC);
public static final DataComponentPredicate.Type<WritableBookPredicate> WRITABLE_BOOK = register("writable_book_content", WritableBookPredicate.CODEC);
public static final DataComponentPredicate.Type<WrittenBookPredicate> WRITTEN_BOOK = register("written_book_content", WrittenBookPredicate.CODEC);
public static final DataComponentPredicate.Type<AttributeModifiersPredicate> ATTRIBUTE_MODIFIERS = register(
"attribute_modifiers", AttributeModifiersPredicate.CODEC
);
public static final DataComponentPredicate.Type<TrimPredicate> ARMOR_TRIM = register("trim", TrimPredicate.CODEC);
public static final DataComponentPredicate.Type<JukeboxPlayablePredicate> JUKEBOX_PLAYABLE = register("jukebox_playable", JukeboxPlayablePredicate.CODEC);
public static final DataComponentPredicate.Type<VillagerTypePredicate> VILLAGER_VARIANT = register("villager/variant", VillagerTypePredicate.CODEC);
private static <T extends DataComponentPredicate> DataComponentPredicate.Type<T> register(String id, Codec<T> codec) {
return Registry.register(BuiltInRegistries.DATA_COMPONENT_PREDICATE_TYPE, id, new DataComponentPredicate.ConcreteType<>(codec));
}
public static DataComponentPredicate.Type<?> bootstrap(Registry<DataComponentPredicate.Type<?>> registry) {
return DAMAGE;
}
}引用的其他类
-
- 引用位置:
参数/方法调用 - 关联成员:
Registry.register()
- 引用位置:
-
- 引用位置:
字段
- 引用位置:
-
- 引用位置:
字段
- 引用位置:
-
- 引用位置:
字段
- 引用位置:
-
- 引用位置:
字段
- 引用位置:
-
- 引用位置:
字段
- 引用位置:
-
- 引用位置:
参数/字段/返回值
- 引用位置:
-
- 引用位置:
字段
- 引用位置:
-
- 引用位置:
字段
- 引用位置:
-
- 引用位置:
字段
- 引用位置:
-
- 引用位置:
字段
- 引用位置:
-
- 引用位置:
字段
- 引用位置:
-
- 引用位置:
字段
- 引用位置:
-
- 引用位置:
字段
- 引用位置:
-
- 引用位置:
字段
- 引用位置:
-
- 引用位置:
字段
- 引用位置: