Bukkit  1.5.2-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
PermissionAttachmentInfo.java
Go to the documentation of this file.
1 package org.bukkit.permissions;
2 
7  private final Permissible permissible;
8  private final String permission;
9  private final PermissionAttachment attachment;
10  private final boolean value;
11 
12  public PermissionAttachmentInfo(Permissible permissible, String permission, PermissionAttachment attachment, boolean value) {
13  if (permissible == null) {
14  throw new IllegalArgumentException("Permissible may not be null");
15  } else if (permission == null) {
16  throw new IllegalArgumentException("Permissions may not be null");
17  }
18 
19  this.permissible = permissible;
20  this.permission = permission;
21  this.attachment = attachment;
22  this.value = value;
23  }
24 
31  return permissible;
32  }
33 
39  public String getPermission() {
40  return permission;
41  }
42 
50  return attachment;
51  }
52 
58  public boolean getValue() {
59  return value;
60  }
61 }