Class DataComponentPredicates
java.lang.Object
net.minecraft.core.component.predicates.DataComponentPredicates
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DataComponentPredicate.Type<TrimPredicate> static final DataComponentPredicate.Type<AttributeModifiersPredicate> static final DataComponentPredicate.Type<BundlePredicate> static final DataComponentPredicate.Type<ContainerPredicate> static final DataComponentPredicate.Type<CustomDataPredicate> static final DataComponentPredicate.Type<DamagePredicate> static final DataComponentPredicate.Type<FireworkExplosionPredicate> static final DataComponentPredicate.Type<FireworksPredicate> static final DataComponentPredicate.Type<JukeboxPlayablePredicate> static final DataComponentPredicate.Type<PotionsPredicate> static final DataComponentPredicate.Type<WritableBookPredicate> static final DataComponentPredicate.Type<WrittenBookPredicate> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DataComponentPredicate.Type<?> bootstrap(Registry<DataComponentPredicate.Type<?>> pRegistry) private static <T extends DataComponentPredicate>
DataComponentPredicate.Type<T>
-
Field Details
-
DAMAGE
-
ENCHANTMENTS
-
STORED_ENCHANTMENTS
public static final DataComponentPredicate.Type<EnchantmentsPredicate.StoredEnchantments> STORED_ENCHANTMENTS -
POTIONS
-
CUSTOM_DATA
-
CONTAINER
-
BUNDLE_CONTENTS
-
FIREWORK_EXPLOSION
-
FIREWORKS
-
WRITABLE_BOOK
-
WRITTEN_BOOK
-
ATTRIBUTE_MODIFIERS
-
ARMOR_TRIM
-
JUKEBOX_PLAYABLE
-
-
Constructor Details
-
DataComponentPredicates
public DataComponentPredicates()
-
-
Method Details
-
register
private static <T extends DataComponentPredicate> DataComponentPredicate.Type<T> register(String pName, com.mojang.serialization.Codec<T> pCodec) -
bootstrap
public static DataComponentPredicate.Type<?> bootstrap(Registry<DataComponentPredicate.Type<?>> pRegistry)
-