mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 20:07:41 +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
@ -57,6 +57,16 @@ public interface BlockState extends Metadatable {
|
|||||||
@ApiStatus.Experimental
|
@ApiStatus.Experimental
|
||||||
BlockState copy();
|
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.
|
* Gets the type of this block state.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user