From 987a10e861e96e87cdd055ae8c498fc7d32d48e0 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 3 Dec 2017 14:15:39 +1100 Subject: [PATCH] Deprecate BlockChangeDelegate By: md_5 --- paper-api/src/main/java/org/bukkit/BlockChangeDelegate.java | 2 ++ paper-api/src/main/java/org/bukkit/World.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/BlockChangeDelegate.java b/paper-api/src/main/java/org/bukkit/BlockChangeDelegate.java index e6b9f0e67b..3f1afd9c1a 100644 --- a/paper-api/src/main/java/org/bukkit/BlockChangeDelegate.java +++ b/paper-api/src/main/java/org/bukkit/BlockChangeDelegate.java @@ -4,7 +4,9 @@ package org.bukkit; * A delegate for handling block changes. This serves as a direct interface * between generation algorithms in the server implementation and utilizing * code. + * @deprecated rarely used API that was largely for implementation purposes */ +@Deprecated public interface BlockChangeDelegate { /** diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java index b6b90f3926..c8344c6daf 100644 --- a/paper-api/src/main/java/org/bukkit/World.java +++ b/paper-api/src/main/java/org/bukkit/World.java @@ -358,7 +358,9 @@ public interface World extends PluginMessageRecipient, Metadatable { * @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 + * @deprecated rarely used API that was largely for implementation purposes */ + @Deprecated public boolean generateTree(Location loc, TreeType type, BlockChangeDelegate delegate); /**