mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Jigsaw piece clone
This commit is contained in:
parent
160eee04ff
commit
9adbbcee93
@ -1,5 +1,6 @@
|
||||
package com.volmit.iris.object;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.volmit.iris.util.*;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
@ -43,4 +44,8 @@ public class IrisJigsawPiece extends IrisRegistrant
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public IrisJigsawPiece copy() {
|
||||
return new Gson().fromJson(new Gson().toJson(this), getClass());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user