SPIGOT-7283, SPIGOT-7318: Add AsyncStructureGenerateEvent and BlockState cloning

By: Lauriichan <laura.endress@playuniverse.org>
This commit is contained in:
Bukkit/Spigot
2023-09-29 06:54:33 +10:00
parent 3c1bbc1492
commit be348c55c4
4 changed files with 330 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import org.bukkit.World;
import org.bukkit.block.data.BlockData;
import org.bukkit.material.MaterialData;
import org.bukkit.metadata.Metadatable;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@ -47,6 +48,15 @@ public interface BlockState extends Metadatable {
@NotNull
BlockData getBlockData();
/**
* Returns a copy of this BlockState as an unplaced BlockState.
*
* @return a copy of the block state
*/
@NotNull
@ApiStatus.Experimental
BlockState copy();
/**
* Gets the type of this block state.
*