net.minecraft.advancements.critereon

public record BlockPredicate

aw
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<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_
public static final com.mojang.serialization.Codec<BlockPredicate>
a
CODEC
field_45723
CODEC
f_291811_
public static final StreamCodec<RegistryFriendlyByteBuf, BlockPredicate>
b
STREAM_CODEC
field_49181
PACKET_CODEC
f_315415_

Constructor summary

ModifierConstructor
public (Optional<HolderSet<Block>> properties, Optional<StatePropertiesPredicate> nbt, Optional<NbtPredicate> arg2)

Method summary

Modifier and TypeMethod
public boolean
a(aqu arg0, jd 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 boolean
a(dtg arg0)
matches(BlockInWorld arg0)
method_57147(class_2694 arg0)
test(CachedBlockPosition pos)
m_321461_(C_2070_ arg0)
private boolean
a(dtc arg0)
matchesState(BlockState arg0)
method_57146(class_2680 arg0)
testState(BlockState state)
m_320876_(C_2064_ arg0)
private static boolean
a(dcz arg0, dqh arg1, dk arg2)
matchesBlockEntity(LevelReader arg0, BlockEntity arg1, NbtPredicate arg2)
method_57145(class_4538 arg0, class_2586 arg1, class_2105 arg2)
testBlockEntity(WorldView world, BlockEntity blockEntity, NbtPredicate nbtPredicate)
m_320500_(C_1599_ p_330206_, C_1991_ p_327732_, C_1941_ p_335422_)
public boolean
a()
requiresNbt()
method_57143()
hasNbt()
m_324452_()
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_()