java.lang.Object
me.emafire003.dev.coloredglowlib.compat.permissions.PermissionsChecker
public class PermissionsChecker
extends Object
-
-
Constructor Summary
Constructors
-
Method Summary
static Predicate<net.minecraft.server.command.ServerCommandSource>
static boolean
hasPerms(net.minecraft.entity.Entity entity,
String permission,
boolean defValue)
static Predicate<net.minecraft.server.command.ServerCommandSource>
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
permissions
public static final boolean permissions
-
Constructor Details
-
PermissionsChecker
public PermissionsChecker()
-
Method Details
-
multiple
@SafeVarargs
public static Predicate<net.minecraft.server.command.ServerCommandSource> multiple(Predicate<net.minecraft.server.command.ServerCommandSource>... args)
-
hasPerms
public static Predicate<net.minecraft.server.command.ServerCommandSource> hasPerms(String permission,
int defaultValue)
-
hasPerms
public static boolean hasPerms(net.minecraft.entity.Entity entity,
String permission,
boolean defValue)