Package org.bukkit.permissions
Class PermissionAttachmentInfo
- java.lang.Object
-
- org.bukkit.permissions.PermissionAttachmentInfo
-
public class PermissionAttachmentInfo extends Object
Holds information on a permission and whichPermissionAttachment
provides it
-
-
Constructor Summary
Constructors Constructor Description PermissionAttachmentInfo(Permissible permissible, String permission, PermissionAttachment attachment, boolean value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PermissionAttachment
getAttachment()
Gets the attachment providing this permission.Permissible
getPermissible()
Gets the permissible this is attached toString
getPermission()
Gets the permission being setboolean
getValue()
Gets the value of this permission
-
-
-
Constructor Detail
-
PermissionAttachmentInfo
public PermissionAttachmentInfo(@NotNull Permissible permissible, @NotNull String permission, @Nullable PermissionAttachment attachment, boolean value)
-
-
Method Detail
-
getPermissible
@NotNull public Permissible getPermissible()
Gets the permissible this is attached to- Returns:
- Permissible this permission is for
-
getPermission
@NotNull public String getPermission()
Gets the permission being set- Returns:
- Name of the permission
-
getAttachment
@Nullable 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
-
-