Interface DataComponentPredicate
- All Known Subinterfaces:
SingleComponentItemPredicate<T>
- All Known Implementing Classes:
AttributeModifiersPredicate,BundlePredicate,ContainerPredicate,CustomDataPredicate,DamagePredicate,EnchantmentsPredicate,EnchantmentsPredicate.Enchantments,EnchantmentsPredicate.StoredEnchantments,FireworkExplosionPredicate,FireworksPredicate,ItemAbilityPredicate,JukeboxPlayablePredicate,PiglinCurrencyItemPredicate,PotionsPredicate,TrimPredicate,WritableBookPredicate,WrittenBookPredicate
public interface DataComponentPredicate
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic final 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 pComponentGetter) static com.mojang.serialization.MapCodec<DataComponentPredicate.Single<?>> singleCodec(String pName)
-
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<?>, STREAM_CODECDataComponentPredicate>>
-
-
Method Details
-
singleCodec
static com.mojang.serialization.MapCodec<DataComponentPredicate.Single<?>> singleCodec(String pName) -
matches
-