All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.nukkit.permission.PermissionAttachmentInfo Maven / Gradle / Ivy

There is a newer version: 1.20.40-r1
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy