SPIGOT-6697: Deprecate generateTree with BlockChangeDelegate as it does not handle tiles

This commit is contained in:
md_5 2021-08-22 18:12:37 +10:00
parent c9a46ebf16
commit ca5b4b1ae6
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

View file

@ -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);
/**