Skip to content

Commit

Permalink
fix(CustomBlockData): add missing copyTo method
Browse files Browse the repository at this point in the history
  • Loading branch information
darksaid98 committed May 29, 2024
1 parent 382467d commit f694cd3
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,22 @@ public boolean isEmpty() {
return pdc.isEmpty();
}

/**
* Copies all values from this {@link PersistentDataContainer} to the provided
* container.
* <p>
* This method only copies custom object keys. Existing tags, like the display
* name, will not be copied as the values are stored using your namespace.
*
* @param other the container to copy to
* @param replace whether to replace any matching values in the target container
* @throws IllegalArgumentException if the other container is null
*/
@Override
public void copyTo(@NotNull PersistentDataContainer other, boolean replace) {

}

@NotNull
@Override
public PersistentDataAdapterContext getAdapterContext() {
Expand Down

0 comments on commit f694cd3

Please sign in to comment.