Initial Commit
This commit is contained in:
1 parent
377b32db6e
commit
2d9a5eecba
14134 files changed
+1160982
No files matched your search
+28
@@ -0,0 +1,28 @@
|
||||
package net.minecraft;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
@FunctionalInterface
|
||||
public interface CharPredicate {
|
||||
boolean test(char pValue);
|
||||
|
||||
default CharPredicate and(CharPredicate pPredicate) {
|
||||
Objects.requireNonNull(pPredicate);
|
||||
return (p_178295_) -> {
|
||||
return this.test(p_178295_) && pPredicate.test(p_178295_);
|
||||
};
|
||||
}
|
||||
|
||||
default CharPredicate negate() {
|
||||
return (p_178285_) -> {
|
||||
return !this.test(p_178285_);
|
||||
};
|
||||
}
|
||||
|
||||
default CharPredicate or(CharPredicate pPredicate) {
|
||||
Objects.requireNonNull(pPredicate);
|
||||
return (p_178290_) -> {
|
||||
return this.test(p_178290_) || pPredicate.test(p_178290_);
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user