From ad473b0e5cb9cec5cfa3e454880345fa7c28b186 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 16 Apr 2023 10:32:33 +1000 Subject: [PATCH] SPIGOT-6780: Improve documentation for World#spawnFallingBlock By: Doc --- paper-api/src/main/java/org/bukkit/World.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java index a4cb298c43..5bc173fba9 100644 --- a/paper-api/src/main/java/org/bukkit/World.java +++ b/paper-api/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