net.minecraft.advancements.criterion

public record BlockPredicate

as
net.minecraft.advancements.criterion.BlockPredicate
net.minecraft.class_4550
net.minecraft.predicate.BlockPredicate
net.minecraft.src.C_432247_
net.minecraft.advancements.criterion.CriterionConditionBlock

字段概要

修饰符与类型字段
private final Optional<HolderSet<Block>>
c
blocks
comp_1732
blocks
f_434497_
private final Optional<StatePropertiesPredicate>
d
properties
comp_1733
state
f_434389_
private final Optional<NbtPredicate>
e
nbt
comp_1734
nbt
f_434067_
private final DataComponentMatchers
f
components
comp_3832
components
f_434309_
public static final com.mojang.serialization.Codec<BlockPredicate>
a
CODEC
field_45723
CODEC
f_436908_
public static final StreamCodec<RegistryFriendlyByteBuf, BlockPredicate>
b
STREAM_CODEC
field_49181
PACKET_CODEC
f_433832_

构造函数概要

修饰符构造函数
public (Optional<HolderSet<Block>> blocks, Optional<StatePropertiesPredicate> state, Optional<NbtPredicate> nbt, DataComponentMatchers components)

方法概要

修饰符与类型方法
public boolean
a(axf arg0, is arg1)
matches(ServerLevel arg0, BlockPos arg1)
method_22454(class_3218 arg0, class_2338 arg1)
test(ServerWorld world, BlockPos pos)
m_440536_(C_12_ p_454322_, C_4675_ arg1)
public boolean
a(eol arg0)
matches(BlockInWorld arg0)
method_57147(class_2694 arg0)
test(CachedBlockPosition pos)
m_440156_(C_2070_ arg0)
private boolean
a(eoh arg0)
matchesState(BlockState arg0)
method_57146(class_2680 arg0)
testState(BlockState state)
m_446636_(C_2064_ arg0)
private static boolean
a(dwr arg0, elb arg1, ct 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_442489_(C_1599_ p_451674_, C_1991_ p_457244_, C_432607_ p_452985_)
private static boolean
a(elb arg0, bh arg1)
matchesComponents(BlockEntity arg0, DataComponentMatchers arg1)
method_68677(class_2586 arg0, class_10914 arg1)
testComponents(BlockEntity blockEntity, ComponentsPredicate components)
m_445279_(C_1991_ p_455937_, C_432941_ p_459108_)
public boolean
a()
requiresNbt()
method_57143()
hasNbt()
m_444410_()
public Optional<HolderSet<Block>>
b()
blocks()
comp_1732()
blocks()
f_434497_()
public Optional<StatePropertiesPredicate>
c()
properties()
comp_1733()
state()
f_434389_()
public Optional<NbtPredicate>
d()
nbt()
comp_1734()
nbt()
f_434067_()
public DataComponentMatchers
e()
components()
comp_3832()
components()
f_434309_()