mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-06 20:56:41 +00:00
I hope these are the last few errors
This commit is contained in:
@ -21,16 +21,12 @@ public abstract class ABlockMask extends AbstractExtentMask {
|
||||
List<String> strings = new ArrayList<>();
|
||||
for (BlockType type : BlockTypes.values) {
|
||||
if (type != null) {
|
||||
boolean hasAll = true;
|
||||
boolean hasAny = false;
|
||||
boolean hasAll;
|
||||
List<BlockState> all = type.getAllStates();
|
||||
for (BlockState state : all) {
|
||||
hasAll &= test(state);
|
||||
hasAny = true;
|
||||
}
|
||||
hasAll = all.stream().map(this::test).reduce(true, (a, b) -> a && b);
|
||||
if (hasAll) {
|
||||
strings.add(type.getId());
|
||||
} else if (hasAny) {
|
||||
} else {
|
||||
for (BlockState state : all) {
|
||||
if (test(state)) {
|
||||
strings.add(state.getAsString());
|
||||
|
@ -81,15 +81,15 @@ public interface Mask {
|
||||
return value == null ? this : value;
|
||||
}
|
||||
|
||||
default Mask and(Mask other) {
|
||||
Mask value = and(other);
|
||||
return value == null ? new MaskIntersection(this, other) : value;
|
||||
}
|
||||
// default Mask and(Mask other) {
|
||||
// Mask value = and(other);
|
||||
// return value == null ? new MaskIntersection(this, other) : value;
|
||||
// }
|
||||
|
||||
default Mask or(Mask other) {
|
||||
Mask value = or(other);
|
||||
return value == null ? new MaskUnion(this, other) : value;
|
||||
}
|
||||
// default Mask or(Mask other) {
|
||||
// Mask value = or(other);
|
||||
// return value == null ? new MaskUnion(this, other) : value;
|
||||
// }
|
||||
|
||||
default Mask inverse() {
|
||||
if (this instanceof Masks.AlwaysTrue) {
|
||||
|
Reference in New Issue
Block a user