net.minecraft.predicate

public record NbtPredicate

net.minecraft.advancements.predicates.NbtPredicate
net.minecraft.class_2105
net.minecraft.predicate.NbtPredicate

Field summary

Modifier and TypeField
private final NbtCompound
tag
comp_1816
nbt
private static final org.slf4j.Logger
LOGGER
field_60368
LOGGER
public static final com.mojang.serialization.Codec<NbtPredicate>
CODEC
field_45768
CODEC
public static final PacketCodec<io.netty.buffer.ByteBuf, NbtPredicate>
STREAM_CODEC
field_49244
PACKET_CODEC
public static final String
SELECTED_ITEM_TAG
field_60367
SELECTED_ITEM_KEY

Constructor summary

ModifierConstructor
public (NbtCompound nbt)

Method summary

Modifier and TypeMethod
public boolean
matches(DataComponentGetter components)
method_9074(class_9473 arg0)
test(ComponentsAccess components)
public boolean
matches(Entity entity)
method_9072(class_1297 arg0)
test(Entity entity)
public boolean
matches(Tag tag)
method_9077(class_2520 arg0)
test(NbtElement element)
public static NbtCompound
getEntityTagToCompare(Entity entity)
method_9076(class_1297 arg0)
entityToNbt(Entity entity)
public NbtCompound
tag()
comp_1816()
nbt()