mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
SPIGOT-6780: Improve documentation for World#spawnFallingBlock
By: Doc <nachito94@msn.com>
This commit is contained in:
parent
7c9037dfee
commit
ad473b0e5c
1 changed files with 4 additions and 7 deletions
|
@ -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.
|
||||
* <p>
|
||||
* 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.
|
||||
* <p>
|
||||
* 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
|
||||
|
|
Loading…
Reference in a new issue