net.minecraft.predicate.component

public final class ComponentMapPredicate

implements Predicate<ComponentsAccess>

net.minecraft.core.component.DataComponentExactPredicate
net.minecraft.class_9329
net.minecraft.predicate.component.ComponentMapPredicate

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<ComponentMapPredicate>
CODEC
field_49595
CODEC
public static final PacketCodec<RegistryByteBuf, ComponentMapPredicate>
STREAM_CODEC
field_49596
PACKET_CODEC
public static final ComponentMapPredicate
EMPTY
field_49597
EMPTY
private final List<Component<?>>
expectedComponents
field_49598
components

Constructor summary

ModifierConstructor
private (List<Component<?>> components)

Method summary

Modifier and TypeMethod
public static ComponentMapPredicate$Builder
builder()
method_57862()
builder()
public static <T> ComponentMapPredicate
expect(DataComponentType<T> type, T value)
method_66877(class_9331<T> arg0, T arg1)
of(ComponentType<T> type, T value)
public static ComponentMapPredicate
allOf(DataComponentMap components)
method_57865(class_9323 arg0)
of(ComponentMap components)
public static ComponentMapPredicate
someOf(DataComponentMap components, DataComponentType<?>... types)
method_64096(class_9323 arg0, class_9331<?>... arg1)
ofFiltered(ComponentMap components, ComponentType<?>... types)
public boolean
isEmpty()
method_68711()
isEmpty()
public boolean
test(DataComponentGetter actualComponents)
method_57868(class_9473 arg0)
test(ComponentsAccess arg0)
public boolean
alwaysMatches()
method_57867()
method_57867()
public ComponentChanges
asPatch()
method_57870()
toChanges()
public boolean
test(Object actualComponents)
test(Object arg0)
test(Object components)
private static List
lambda$static$3(DataComponentExactPredicate arg0)
method_57866(class_9329 arg0)
method_57866(ComponentMapPredicate predicate)
private static Map
lambda$static$1(DataComponentExactPredicate arg0)
method_57869(class_9329 arg0)
method_57869(ComponentMapPredicate predicate)
private static boolean
lambda$static$2(TypedDataComponent arg0)
method_58760(class_9336 arg0)
method_58760(Component component)
private static ComponentMapPredicate
lambda$static$0(Map arg0)
method_57863(Map arg0)
method_57863(Map map)