public class MaterialPredicate extends Object implements Predicate<BlockState>
Modifier and Type | Field and Description |
---|---|
private static MaterialPredicate |
IS_AIR |
private Material |
material |
Modifier | Constructor and Description |
---|---|
private |
MaterialPredicate(Material material) |
Modifier and Type | Method and Description |
---|---|
static MaterialPredicate |
create(Material material) |
boolean |
test(BlockState blockState) |
private static final MaterialPredicate IS_AIR
private final Material material
private MaterialPredicate(Material material)
public static MaterialPredicate create(Material material)
public boolean test(@Nullable BlockState blockState)
test
in interface Predicate<BlockState>