Uses of Record Class
net.minecraft.advancements.critereon.DataComponentMatchers
Packages that use DataComponentMatchers
-
Uses of DataComponentMatchers in net.minecraft.advancements.critereon
Fields in net.minecraft.advancements.critereon declared as DataComponentMatchersModifier and TypeFieldDescriptionstatic final DataComponentMatchers
DataComponentMatchers.ANY
private DataComponentMatchers
BlockPredicate.Builder.components
private final DataComponentMatchers
BlockPredicate.components
The field for thecomponents
record component.private DataComponentMatchers
EntityPredicate.Builder.components
private final DataComponentMatchers
EntityPredicate.components
The field for thecomponents
record component.private DataComponentMatchers
ItemPredicate.Builder.components
private final DataComponentMatchers
ItemPredicate.components
The field for thecomponents
record component.Fields in net.minecraft.advancements.critereon with type parameters of type DataComponentMatchersModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<DataComponentMatchers> DataComponentMatchers.CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, DataComponentMatchers> DataComponentMatchers.STREAM_CODEC
Methods in net.minecraft.advancements.critereon that return DataComponentMatchersModifier and TypeMethodDescriptionDataComponentMatchers.Builder.build()
BlockPredicate.components()
Returns the value of thecomponents
record component.EntityPredicate.components()
Returns the value of thecomponents
record component.ItemPredicate.components()
Returns the value of thecomponents
record component.Methods in net.minecraft.advancements.critereon with parameters of type DataComponentMatchersModifier and TypeMethodDescriptionBlockPredicate.Builder.components
(DataComponentMatchers p_411103_) EntityPredicate.Builder.components
(DataComponentMatchers p_411097_) private static boolean
BlockPredicate.matchesComponents
(BlockEntity p_411090_, DataComponentMatchers p_411045_) ItemPredicate.Builder.withComponents
(DataComponentMatchers p_411070_) Constructors in net.minecraft.advancements.critereon with parameters of type DataComponentMatchersModifierConstructorDescriptionBlockPredicate
(Optional<HolderSet<Block>> blocks, Optional<StatePropertiesPredicate> properties, Optional<NbtPredicate> nbt, DataComponentMatchers components) Creates an instance of aBlockPredicate
record class.EntityPredicate
(Optional<EntityTypePredicate> entityType, Optional<DistancePredicate> distanceToPlayer, Optional<MovementPredicate> movement, EntityPredicate.LocationWrapper location, Optional<MobEffectsPredicate> effects, Optional<NbtPredicate> nbt, Optional<EntityFlagsPredicate> flags, Optional<EntityEquipmentPredicate> equipment, Optional<EntitySubPredicate> subPredicate, Optional<Integer> periodicTick, Optional<EntityPredicate> vehicle, Optional<EntityPredicate> passenger, Optional<EntityPredicate> targetedEntity, Optional<String> team, Optional<SlotsPredicate> slots, DataComponentMatchers components) Creates an instance of aEntityPredicate
record class.ItemPredicate
(Optional<HolderSet<Item>> items, MinMaxBounds.Ints count, DataComponentMatchers components) Creates an instance of aItemPredicate
record class.