Package appeng.api.implementations.items
Interface IBiometricCard
@NonExtendable
public interface IBiometricCard
Implemented by the biometric card item.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddPermission(net.minecraft.world.item.ItemStack itemStack, SecurityPermissions permission) add a permission to the item stack.getPermissions(net.minecraft.world.item.ItemStack itemStack) com.mojang.authlib.GameProfilegetProfile(net.minecraft.world.item.ItemStack is) booleanhasPermission(net.minecraft.world.item.ItemStack is, SecurityPermissions permission) Check if a permission is encoded on the card.voidremovePermission(net.minecraft.world.item.ItemStack itemStack, SecurityPermissions permission) remove a permission from the item stack.voidsetProfile(net.minecraft.world.item.ItemStack itemStack, com.mojang.authlib.GameProfile username) Set theGameProfileto null, to clear it.
-
Method Details
-
setProfile
void setProfile(net.minecraft.world.item.ItemStack itemStack, com.mojang.authlib.GameProfile username) Set theGameProfileto null, to clear it. -
getProfile
@Nullable com.mojang.authlib.GameProfile getProfile(net.minecraft.world.item.ItemStack is) - Returns:
GameProfileof the player encoded on this card, or null.
-
getPermissions
- Parameters:
itemStack- card- Returns:
- the full list of permissions encoded on the card.
-
hasPermission
Check if a permission is encoded on the card.- Parameters:
permission- card- Returns:
- true if this permission is set on the card.
-
removePermission
remove a permission from the item stack.- Parameters:
itemStack- cardpermission- to be removed permission
-
addPermission
add a permission to the item stack.- Parameters:
itemStack- cardpermission- to be added permission
-