Class BlockPredicate.Builder
- java.lang.Object
-
- net.minecraft.advancements.criterion.BlockPredicate.Builder
-
- Enclosing class:
- BlockPredicate
public static class BlockPredicate.Builder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private Block
block
private ITag<Block>
blocks
private NBTPredicate
nbt
private StatePropertiesPredicate
properties
-
Constructor Summary
Constructors Modifier Constructor Description private
Builder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BlockPredicate.Builder
block()
BlockPredicate
build()
BlockPredicate.Builder
of(Block p_233458_1_)
BlockPredicate.Builder
of(ITag<Block> p_226244_1_)
BlockPredicate.Builder
setProperties(StatePropertiesPredicate p_233459_1_)
-
-
-
Field Detail
-
block
@Nullable private Block block
-
properties
private StatePropertiesPredicate properties
-
nbt
private NBTPredicate nbt
-
-
Method Detail
-
block
public static BlockPredicate.Builder block()
-
of
public BlockPredicate.Builder of(Block p_233458_1_)
-
of
public BlockPredicate.Builder of(ITag<Block> p_226244_1_)
-
setProperties
public BlockPredicate.Builder setProperties(StatePropertiesPredicate p_233459_1_)
-
build
public BlockPredicate build()
-
-