cn.nukkit.permission.PermissionAttachmentInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powernukkit Show documentation
Show all versions of powernukkit Show documentation
A Minecraft Bedrock Edition server software implementation made in Java from scratch which supports all new features.
package cn.nukkit.permission;
/**
* @author MagicDroidX (Nukkit Project)
*/
public class PermissionAttachmentInfo {
private Permissible permissible;
private String permission;
private PermissionAttachment attachment;
private boolean value;
public PermissionAttachmentInfo(Permissible permissible, String permission, PermissionAttachment attachment, boolean value) {
if (permission == null) {
throw new IllegalStateException("Permission may not be null");
}
this.permissible = permissible;
this.permission = permission;
this.attachment = attachment;
this.value = value;
}
public Permissible getPermissible() {
return permissible;
}
public String getPermission() {
return permission;
}
public PermissionAttachment getAttachment() {
return attachment;
}
public boolean getValue() {
return value;
}
}