Interface DataComponentPredicate
- All Known Subinterfaces:
SingleComponentItemPredicate<T>
- All Known Implementing Classes:
AnyValue, AttributeModifiersPredicate, BundlePredicate, ContainerPredicate, CustomDataPredicate, DamagePredicate, EnchantmentsPredicate, EnchantmentsPredicate.Enchantments, EnchantmentsPredicate.StoredEnchantments, FireworkExplosionPredicate, FireworksPredicate, ItemAbilityPredicate, JukeboxPlayablePredicate, PiglinCurrencyItemPredicate, PotionsPredicate, TrimPredicate, VillagerTypePredicate, WritableBookPredicate, WrittenBookPredicate
public interface DataComponentPredicate
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classstatic final recordstatic interfacestatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Map<DataComponentPredicate.Type<?>, DataComponentPredicate>> static final StreamCodec<RegistryFriendlyByteBuf, DataComponentPredicate.Single<?>> static final StreamCodec<RegistryFriendlyByteBuf, Map<DataComponentPredicate.Type<?>, DataComponentPredicate>> -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(DataComponentGetter components) static com.mojang.serialization.MapCodec<DataComponentPredicate.Single<?>> singleCodec(String name)
-
Field Details
-
CODEC
static final com.mojang.serialization.Codec<Map<DataComponentPredicate.Type<?>, DataComponentPredicate>> CODEC -
SINGLE_STREAM_CODEC
static final StreamCodec<RegistryFriendlyByteBuf, DataComponentPredicate.Single<?>> SINGLE_STREAM_CODEC -
STREAM_CODEC
static final StreamCodec<RegistryFriendlyByteBuf, Map<DataComponentPredicate.Type<?>, DataComponentPredicate>> STREAM_CODEC
-
-
Method Details
-
singleCodec
-
matches
-