net.minecraft.advancements.critereon

public record BlockPredicate

ax
net.minecraft.advancements.critereon.BlockPredicate
net.minecraft.class_4550
net.minecraft.predicate.BlockPredicate
net.minecraft.advancements.critereon.CriterionConditionBlock

Field summary

Modifier and TypeField
private final Optional<HolderSet<Block>>
c
blocks
comp_1732
blocks
private final Optional<StatePropertiesPredicate>
d
properties
comp_1733
state
private final Optional<NbtPredicate>
e
nbt
comp_1734
nbt
public static final com.mojang.serialization.Codec<BlockPredicate>
a
CODEC
field_45723
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, BlockPredicate>
b
STREAM_CODEC
field_49181
PACKET_CODEC

Constructor summary

ModifierConstructor
public (Optional<HolderSet<Block>> arg0, Optional<StatePropertiesPredicate> arg1, Optional<NbtPredicate> arg2)

Method summary

Modifier and TypeMethod
public boolean
a(ash arg0, jh arg1)
matches(ServerLevel arg0, BlockPos arg1)
method_22454(class_3218 arg0, class_2338 arg1)
test(ServerWorld world, BlockPos pos)
public boolean
a(dxz arg0)
matches(BlockInWorld arg0)
method_57147(class_2694 arg0)
test(CachedBlockPosition pos)
private boolean
a(dxv arg0)
matchesState(BlockState arg0)
method_57146(class_2680 arg0)
testState(BlockState state)
private static boolean
a(dhl arg0, dux arg1, dm 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)
public boolean
a()
requiresNbt()
method_57143()
hasNbt()
public Optional<HolderSet<Block>>
b()
blocks()
comp_1732()
blocks()
public Optional<StatePropertiesPredicate>
c()
properties()
comp_1733()
state()
public Optional<NbtPredicate>
d()
nbt()
comp_1734()
nbt()