Class BlockPredicate
java.lang.Object
net.minecraft.advancements.critereon.BlockPredicate
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic BlockPredicate
private NbtPredicate
private StatePropertiesPredicate
-
Constructor Summary
ConstructorsConstructorDescriptionBlockPredicate(Tag<Block> p_146712_, Set<Block> p_146713_, StatePropertiesPredicate p_146714_, NbtPredicate p_146715_)
-
Method Summary
Modifier and TypeMethodDescriptionstatic BlockPredicate
fromJson(com.google.gson.JsonElement p_17918_)
boolean
matches(ServerLevel p_17915_, BlockPos p_17916_)
com.google.gson.JsonElement
-
Field Details
-
ANY
-
tag
-
blocks
-
properties
-
nbt
-
-
Constructor Details
-
BlockPredicate
public BlockPredicate(@Nullable Tag<Block> p_146712_, @Nullable Set<Block> p_146713_, StatePropertiesPredicate p_146714_, NbtPredicate p_146715_)
-
-
Method Details
-
matches
-
fromJson
-
serializeToJson
public com.google.gson.JsonElement serializeToJson()
-