org.bukkit.permissions
Class PermissionAttachmentInfo

java.lang.Object
  extended by org.bukkit.permissions.PermissionAttachmentInfo

public class PermissionAttachmentInfo
extends Object

Holds information on a permission and which PermissionAttachment provides it


Constructor Summary
PermissionAttachmentInfo(Permissible permissible, String permission, PermissionAttachment attachment, boolean value)
           
 
Method Summary
 PermissionAttachment getAttachment()
          Gets the attachment providing this permission.
 Permissible getPermissible()
          Gets the permissible this is attached to
 String getPermission()
          Gets the permission being set
 boolean getValue()
          Gets the value of this permission
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionAttachmentInfo

public PermissionAttachmentInfo(Permissible permissible,
                                String permission,
                                PermissionAttachment attachment,
                                boolean value)
Method Detail

getPermissible

public Permissible getPermissible()
Gets the permissible this is attached to

Returns:
Permissible this permission is for

getPermission

public String getPermission()
Gets the permission being set

Returns:
Name of the permission

getAttachment

public PermissionAttachment getAttachment()
Gets the attachment providing this permission. This may be null for default permissions (usually parent permissions).

Returns:
Attachment

getValue

public boolean getValue()
Gets the value of this permission

Returns:
Value of the permission


Copyright © 2013. All Rights Reserved.