mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-05 02:22:12 +01:00
SPIGOT-6697: Deprecate generateTree with BlockChangeDelegate as it does not handle tiles
By: md_5 <git@md-5.net>
This commit is contained in:
parent
f84947b942
commit
99ce197044
1 changed files with 3 additions and 0 deletions
|
@ -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
|
* @param delegate A class to call for each block changed as a result of
|
||||||
* this method
|
* this method
|
||||||
* @return true if the tree was created successfully, otherwise false
|
* @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);
|
public boolean generateTree(@NotNull Location loc, @NotNull TreeType type, @NotNull BlockChangeDelegate delegate);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue