枚举的使用
org.bukkit.permissions.PermissionDefault
-
org.bukkit.permissions中PermissionDefault的使用
修饰符和类型方法说明static @Nullable PermissionDefault
查找一个默认权限的名称.Permission.getDefault()
Gets the default value of this permission.static PermissionDefault
返回带有指定名称的该类型的枚举常量。static PermissionDefault[]
PermissionDefault.values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。修饰符和类型方法说明static @NotNull Permission
Permission.loadPermission
(@NotNull String name, @NotNull Map<?, ?> data, @Nullable PermissionDefault def, @Nullable List<Permission> output) Loads a Permission from a map of data, usually used from retrieval from a yaml file.static @NotNull List<Permission>
Permission.loadPermissions
(@NotNull Map<?, ?> data, @NotNull String error, @Nullable PermissionDefault def) Loads a list of Permissions from a map of data, usually used from retrieval from a yaml file.void
Permission.setDefault
(@NotNull PermissionDefault value) Sets the default value of this permission.限定符构造器说明Permission
(@NotNull String name, @Nullable String description, @Nullable PermissionDefault defaultValue) Permission
(@NotNull String name, @Nullable String description, @Nullable PermissionDefault defaultValue, @Nullable Map<String, Boolean> children) Permission
(@NotNull String name, @Nullable PermissionDefault defaultValue) Permission
(@NotNull String name, @Nullable PermissionDefault defaultValue, @Nullable Map<String, Boolean> children) -
org.bukkit.plugin中PermissionDefault的使用
修饰符和类型方法说明PluginDescriptionFile.getPermissionDefault()
Gives the defaultdefault
state ofpermissions
registered for the plugin. -
org.bukkit.util.permissions中PermissionDefault的使用
修饰符和类型方法说明static @NotNull Permission
DefaultPermissions.registerPermission
(@NotNull String name, @Nullable String desc, @Nullable PermissionDefault def) static @NotNull Permission
DefaultPermissions.registerPermission
(@NotNull String name, @Nullable String desc, @Nullable PermissionDefault def, @NotNull Permission parent) static @NotNull Permission
DefaultPermissions.registerPermission
(@NotNull String name, @Nullable String desc, @Nullable PermissionDefault def, @Nullable Map<String, Boolean> children) static @NotNull Permission
DefaultPermissions.registerPermission
(@NotNull String name, @Nullable String desc, @Nullable PermissionDefault def, @Nullable Map<String, Boolean> children, @NotNull Permission parent)