From 99ce197044378082c8d3cbac621d9088bc633fa2 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 22 Aug 2021 18:12:37 +1000 Subject: [PATCH] SPIGOT-6697: Deprecate generateTree with BlockChangeDelegate as it does not handle tiles By: md_5 --- paper-api/src/main/java/org/bukkit/World.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java index 1deb7c09c1..64062724d7 100644 --- a/paper-api/src/main/java/org/bukkit/World.java +++ b/paper-api/src/main/java/org/bukkit/World.java @@ -549,7 +549,10 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient * @param delegate A class to call for each block changed as a result of * this method * @return true if the tree was created successfully, otherwise false + * @see #generateTree(org.bukkit.Location, java.util.Random, org.bukkit.TreeType, org.bukkit.util.Consumer) + * @deprecated this method does not handle tile entities (bee nests) */ + @Deprecated public boolean generateTree(@NotNull Location loc, @NotNull TreeType type, @NotNull BlockChangeDelegate delegate); /**