枚举的使用
org.bukkit.ServerLinks.Type
-
org.bukkit中ServerLinks.Type的使用
修饰符和类型方法说明ServerLinks.ServerLink.getType()
Gets the type of this link if it is a known special type.static ServerLinks.Type
返回带有指定名称的该类型的枚举常量。static ServerLinks.Type[]
ServerLinks.Type.values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。修饰符和类型方法说明ServerLinks.addLink
(@NotNull ServerLinks.Type type, @NotNull URI url) Adds the given link to the list of links.ServerLinks.getLink
(@NotNull ServerLinks.Type type) Gets the link of a given type, if it exists.ServerLinks.setLink
(@NotNull ServerLinks.Type type, @NotNull URI url) Adds the given link, overwriting the first link of the same type if already set.