net.minecraft.advancements.critereon

public record BlockPredicate

av
net.minecraft.advancements.critereon.BlockPredicate
net.minecraft.class_4550
net.minecraft.predicate.BlockPredicate
net.minecraft.src.C_411_
net.minecraft.advancements.critereon.CriterionConditionBlock

Field summary

Modifier and TypeField
private final Optional<TagKey<Block>>
b
tag
comp_1731
tag
f_17903_
private final Optional<HolderSet<Block>>
c
blocks
comp_1732
blocks
f_146710_
private final Optional<StatePropertiesPredicate>
d
properties
comp_1733
state
f_17905_
private final Optional<NbtPredicate>
e
nbt
comp_1734
nbt
f_17906_
private static final com.mojang.serialization.Codec<HolderSet<Block>>
f
BLOCKS_CODEC
field_45724
BLOCK_ENTRY_LIST_CODEC
f_290631_
public static final com.mojang.serialization.Codec<BlockPredicate>
a
CODEC
field_45723
CODEC
f_291811_

Constructor summary

ModifierConstructor
public (Optional<TagKey<Block>> f_146710_, Optional<HolderSet<Block>> f_17905_, Optional<StatePropertiesPredicate> f_17906_, Optional<NbtPredicate> arg3)

Method summary

Modifier and TypeMethod
public boolean
a(akq arg0, gw arg1)
matches(ServerLevel arg0, BlockPos arg1)
method_22454(class_3218 arg0, class_2338 arg1)
test(ServerWorld world, BlockPos pos)
m_17914_(C_12_ p_17916_, C_4675_ arg1)
public Optional<TagKey<Block>>
a()
tag()
comp_1731()
tag()
f_17903_()
public Optional<HolderSet<Block>>
b()
blocks()
comp_1732()
blocks()
f_146710_()
public Optional<StatePropertiesPredicate>
c()
properties()
comp_1733()
state()
f_17905_()
public Optional<NbtPredicate>
d()
nbt()
comp_1734()
nbt()
f_17906_()