Add BlockData setter for FallingBlock (#9829)

This commit is contained in:
Md5Lukas
2023-10-14 22:46:31 +02:00
parent e7c0e0e246
commit c7a0d627ba
4 changed files with 149 additions and 46 deletions

View File

@@ -295,17 +295,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ //@Deprecated // Paper
public boolean refreshChunk(int x, int z);
/**
@@ -0,0 +0,0 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @return The spawned {@link FallingBlock} instance
* @throws IllegalArgumentException if {@link Location} or {@link
* MaterialData} are null or {@link Material} of the {@link MaterialData} is not a block
+ * @deprecated use {@link #spawnFallingBlock(Location, BlockData)}
*/
@NotNull
+ @Deprecated // Paper
public FallingBlock spawnFallingBlock(@NotNull Location location, @NotNull MaterialData data) throws IllegalArgumentException;
/**
@@ -0,0 +0,0 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
// Paper end - view distance api