Package net.minecraft.block.pattern
Class BlockMaterialMatcher
- java.lang.Object
-
- net.minecraft.block.pattern.BlockMaterialMatcher
-
- All Implemented Interfaces:
java.util.function.Predicate<BlockState>
public class BlockMaterialMatcher extends java.lang.Object implements java.util.function.Predicate<BlockState>
-
-
Field Summary
Fields Modifier and Type Field Description private static BlockMaterialMatcher
AIR
private Material
material
-
Constructor Summary
Constructors Modifier Constructor Description private
BlockMaterialMatcher(Material p_i47150_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BlockMaterialMatcher
forMaterial(Material p_189886_0_)
boolean
test(BlockState p_test_1_)
-
-
-
Field Detail
-
AIR
private static final BlockMaterialMatcher AIR
-
material
private final Material material
-
-
Constructor Detail
-
BlockMaterialMatcher
private BlockMaterialMatcher(Material p_i47150_1_)
-
-
Method Detail
-
forMaterial
public static BlockMaterialMatcher forMaterial(Material p_189886_0_)
-
test
public boolean test(@Nullable BlockState p_test_1_)
- Specified by:
test
in interfacejava.util.function.Predicate<BlockState>
-
-