Class BlockPredicate
java.lang.Object
net.minecraft.advancements.criterion.BlockPredicate
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BlockPredicate
private final Block
private final NBTPredicate
private final StatePropertiesPredicate
-
Constructor Summary
ConstructorsConstructorDescriptionBlockPredicate
(ITag<Block> p_i225708_1_, Block p_i225708_2_, StatePropertiesPredicate p_i225708_3_, NBTPredicate p_i225708_4_) -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockPredicate
fromJson
(com.google.gson.JsonElement p_226237_0_) boolean
matches
(ServerWorld p_226238_1_, BlockPos p_226238_2_) com.google.gson.JsonElement
-
Field Details
-
ANY
-
tag
-
block
-
properties
-
nbt
-
-
Constructor Details
-
BlockPredicate
public BlockPredicate(@Nullable ITag<Block> p_i225708_1_, @Nullable Block p_i225708_2_, StatePropertiesPredicate p_i225708_3_, NBTPredicate p_i225708_4_)
-
-
Method Details
-
matches
-
fromJson
-
serializeToJson
public com.google.gson.JsonElement serializeToJson()
-