net.minecraft.advancements.critereon

public record BlockPredicate

az
net.minecraft.advancements.critereon.BlockPredicate
net.minecraft.class_4550
net.minecraft.predicate.BlockPredicate
net.minecraft.src.C_411_

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_
private final DataComponentMatchers
f
components
comp_3832
components
f_380024_
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> components, DataComponentMatchers arg3)

Method summary

Modifier and TypeMethod
public boolean
a(asb arg0, iw 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(ebu arg0)
matches(BlockInWorld arg0)
method_57147(class_2694 arg0)
test(CachedBlockPosition pos)
m_321461_(C_2070_ arg0)
private boolean
a(ebq arg0)
matchesState(BlockState arg0)
method_57146(class_2680 arg0)
testState(BlockState state)
m_320876_(C_2064_ arg0)
private static boolean
a(dkm arg0, dyo arg1, da arg2)
matchesBlockEntity(LevelReader arg0, BlockEntity arg1, NbtPredicate arg2)
method_57145(class_4538 arg0, class_2586 arg1, class_2105 arg2)
testNbt(WorldView world, BlockEntity blockEntity, NbtPredicate nbtPredicate)
m_320500_(C_1599_ p_330206_, C_1991_ p_327732_, C_1941_ p_335422_)
private static boolean
a(dyo arg0, bo arg1)
matchesComponents(BlockEntity arg0, DataComponentMatchers arg1)
method_68677(class_2586 arg0, class_10914 arg1)
testComponents(BlockEntity blockEntity, ComponentsPredicate components)
m_385730_(C_1991_ p_391686_, C_379313_ p_395336_)
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_()
public DataComponentMatchers
e()
components()
comp_3832()
components()
f_380024_()