#982: Add API to copy BlockState to a new Location

By: lbenav8095 <lubensaico@gmail.com>
This commit is contained in:
Bukkit/Spigot 2024-04-07 12:22:08 +10:00
parent 5479913288
commit ef44483fd2

View File

@ -57,6 +57,16 @@ public interface BlockState extends Metadatable {
@ApiStatus.Experimental
BlockState copy();
/**
* Copies the state to another block as an unplaced BlockState.
*
* @param location the location to copy the block state to
* @return the new block state
*/
@NotNull
@ApiStatus.Experimental
BlockState copy(@NotNull Location location);
/**
* Gets the type of this block state.
*