枚举的使用
org.bukkit.TreeType
-
org.bukkit中TreeType的使用
修饰符和类型方法说明static TreeType
返回带有指定名称的该类型的枚举常量。static TreeType[]
TreeType.values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。修饰符和类型方法说明boolean
RegionAccessor.generateTree
(@NotNull Location location, @NotNull Random random, @NotNull TreeType type) Creates a tree at the givenLocation
boolean
RegionAccessor.generateTree
(@NotNull Location location, @NotNull Random random, @NotNull TreeType type, @Nullable Consumer<? super BlockState> stateConsumer) Creates a tree at the givenLocation
boolean
RegionAccessor.generateTree
(@NotNull Location location, @NotNull Random random, @NotNull TreeType type, @Nullable Predicate<? super BlockState> statePredicate) Creates a tree at the givenLocation
boolean
World.generateTree
(@NotNull Location location, @NotNull TreeType type) 在指定的位置
创建一颗树.boolean
World.generateTree
(@NotNull Location loc, @NotNull TreeType type, @NotNull BlockChangeDelegate delegate) 已过时。this method does not handle tile entities (bee nests) -
org.bukkit.event.world中TreeType的使用
限定符构造器说明StructureGrowEvent
(@NotNull Location location, @NotNull TreeType species, boolean bonemeal, @Nullable Player player, @NotNull List<BlockState> blocks)