java.lang.Object
com.refinedmods.refinedstorage.apiimpl.network.security.SecurityCard
All Implemented Interfaces:
ISecurityCard

public class SecurityCard extends Object implements ISecurityCard
  • Constructor Details

    • SecurityCard

      public SecurityCard(@Nullable UUID owner)
  • Method Details

    • getPermissions

      public Map<Permission,Boolean> getPermissions()
    • getOwner

      @Nullable public UUID getOwner()
      Specified by:
      getOwner in interface ISecurityCard
      Returns:
      the owner of this card, or null if this is a global card
    • hasPermission

      public boolean hasPermission(Permission permission)
      Specified by:
      hasPermission in interface ISecurityCard
      Parameters:
      permission - the permission to check for
      Returns:
      true if the bound player has the given permission, false otherwise