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

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

Go to download

A Minecraft Bedrock Edition server software implementation made in Java from scratch which supports all new features.

There is a newer version: 1.6.0.1-PN
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