Class BlockPredicate
- java.lang.Object
-
- net.minecraft.advancements.criterion.BlockPredicate
-
public class BlockPredicate extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BlockPredicate.Builder
-
Field Summary
Fields Modifier and Type Field Description static BlockPredicate
ANY
private Block
block
private NBTPredicate
nbt
private StatePropertiesPredicate
properties
private ITag<Block>
tag
-
Constructor Summary
Constructors Constructor Description BlockPredicate(ITag<Block> p_i225708_1_, Block p_i225708_2_, StatePropertiesPredicate p_i225708_3_, NBTPredicate p_i225708_4_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BlockPredicate
fromJson(com.google.gson.JsonElement p_226237_0_)
boolean
matches(ServerWorld p_226238_1_, BlockPos p_226238_2_)
com.google.gson.JsonElement
serializeToJson()
-
-
-
Field Detail
-
ANY
public static final BlockPredicate ANY
-
block
@Nullable private final Block block
-
properties
private final StatePropertiesPredicate properties
-
nbt
private final NBTPredicate nbt
-
-
Constructor Detail
-
BlockPredicate
public BlockPredicate(@Nullable ITag<Block> p_i225708_1_, @Nullable Block p_i225708_2_, StatePropertiesPredicate p_i225708_3_, NBTPredicate p_i225708_4_)
-
-
Method Detail
-
matches
public boolean matches(ServerWorld p_226238_1_, BlockPos p_226238_2_)
-
fromJson
public static BlockPredicate fromJson(@Nullable com.google.gson.JsonElement p_226237_0_)
-
serializeToJson
public com.google.gson.JsonElement serializeToJson()
-
-