net.minecraft.core.component

public final class DataComponentPredicate

implements Predicate<DataComponentMap>

kt
net.minecraft.core.component.DataComponentPredicate
net.minecraft.class_9329
net.minecraft.predicate.ComponentPredicate
net.minecraft.core.component.DataComponentPredicate

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<DataComponentPredicate>
a
CODEC
field_49595
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, DataComponentPredicate>
b
STREAM_CODEC
field_49596
PACKET_CODEC
public static final DataComponentPredicate
c
EMPTY
field_49597
EMPTY
private final List<TypedDataComponent<?>>
d
expectedComponents
field_49598
components

Constructor summary

ModifierConstructor
(List<TypedDataComponent<?>> components)

Method summary

Modifier and TypeMethod
public static DataComponentPredicate$Builder
a()
builder()
method_57862()
builder()
public static DataComponentPredicate
a(kr arg0)
allOf(DataComponentMap arg0)
method_57865(class_9323 arg0)
of(ComponentMap components)
public static DataComponentPredicate
a(kr arg0, ku<?>... arg1)
someOf(DataComponentMap arg0, DataComponentType<?>... arg1)
method_64096(class_9323 arg0, class_9331<?>... arg1)
ofFiltered(ComponentMap components, ComponentType<?>... types)
public boolean
b(kr arg0)
test(DataComponentMap arg0)
method_57868(class_9323 arg0)
test(ComponentMap arg0)
public boolean
a(kq arg0)
test(DataComponentHolder arg0)
method_57864(class_9322 arg0)
test(ComponentHolder holder)
public boolean
b()
alwaysMatches()
method_57867()
isEmpty()
public DataComponentPatch
c()
asPatch()
method_57870()
toChanges()