mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
#982: Add API to copy BlockState to a new Location
By: lbenav8095 <lubensaico@gmail.com>
This commit is contained in:
parent
5479913288
commit
ef44483fd2
1 changed files with 10 additions and 0 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue