From 7d1f5b64cbf387a608cca794b4daa6f305af429c Mon Sep 17 00:00:00 2001 From: Doc Date: Sun, 16 Apr 2023 10:32:33 +1000 Subject: [PATCH] SPIGOT-6780: Improve documentation for World#spawnFallingBlock --- src/main/java/org/bukkit/World.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java index a4cb298c..5bc173fb 100644 --- a/src/main/java/org/bukkit/World.java +++ b/src/main/java/org/bukkit/World.java @@ -1217,11 +1217,11 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient /** * Spawn a {@link FallingBlock} entity at the given {@link Location} of - * the specified {@link Material}. The material dictates what is falling. + * the specified {@link MaterialData}. The MaterialData dictates what is falling. * When the FallingBlock hits the ground, it will place that block. *

* The Material must be a block type, check with {@link Material#isBlock() - * material.isBlock()}. The Material may not be air. + * data.getItemType().isBlock()}. The Material may not be air. * * @param location The {@link Location} to spawn the FallingBlock * @param data The block data @@ -1234,14 +1234,11 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient /** * Spawn a {@link FallingBlock} entity at the given {@link Location} of - * the specified {@link Material}. The material dictates what is falling. + * the specified {@link BlockData}. The BlockData dictates what is falling. * When the FallingBlock hits the ground, it will place that block. - *

- * The Material must be a block type, check with {@link Material#isBlock() - * material.isBlock()}. The Material may not be air. * * @param location The {@link Location} to spawn the FallingBlock - * @param data The block data + * @param data The {@link BlockData} of the FallingBlock to spawn * @return The spawned {@link FallingBlock} instance * @throws IllegalArgumentException if {@link Location} or {@link * BlockData} are null