Package net.minestom.server.permission
Interface PermissionVerifier
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface used to check if the
nbt data of a Permission is correct.-
Method Summary
Modifier and TypeMethodDescriptionbooleanisValid(@Nullable org.jglrxavpok.hephaistos.nbt.NBTCompound nbtCompound) Called when usingPermissionHandler.hasPermission(String, PermissionVerifier).
-
Method Details
-
isValid
boolean isValid(@Nullable @Nullable org.jglrxavpok.hephaistos.nbt.NBTCompound nbtCompound) Called when usingPermissionHandler.hasPermission(String, PermissionVerifier).- Parameters:
nbtCompound- the data of the permission, can be null if not any- Returns:
- true if
PermissionHandler.hasPermission(String, PermissionVerifier)should return true, false otherwise
-