枚举的使用
org.bukkit.event.world.PortalCreateEvent.CreateReason
-
org.bukkit.event.world中PortalCreateEvent.CreateReason的使用
修饰符和类型方法说明PortalCreateEvent.getReason()
获取这个传送门的创建理由.返回带有指定名称的该类型的枚举常量。static PortalCreateEvent.CreateReason[]
PortalCreateEvent.CreateReason.values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。限定符构造器说明PortalCreateEvent
(@NotNull List<BlockState> blocks, @NotNull World world, @NotNull PortalCreateEvent.CreateReason reason) 已过时。PortalCreateEvent
(@NotNull List<BlockState> blocks, @NotNull World world, @Nullable Entity entity, @NotNull PortalCreateEvent.CreateReason reason)