19 lines
538 B
Java
19 lines
538 B
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package net.minecraft.server.permissions;
|
|
|
|
import net.minecraft.server.permissions.Permission;
|
|
|
|
public interface PermissionSet {
|
|
public static final PermissionSet NO_PERMISSIONS = permission -> false;
|
|
public static final PermissionSet ALL_PERMISSIONS = permission -> true;
|
|
|
|
public boolean hasPermission(Permission var1);
|
|
|
|
default public PermissionSet union(PermissionSet other) {
|
|
return permission -> this.hasPermission(permission) || other.hasPermission(permission);
|
|
}
|
|
}
|
|
|