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 record
static 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 TypeMethodDescriptionboolean
matches
(DataComponentGetter p_399712_) static com.mojang.serialization.MapCodec
<DataComponentPredicate.Single<?>> singleCodec
(String p_399515_)
-
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 p_399515_) -
matches
-