mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-26 10:39:07 +00:00
Jigsaw piece clone
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user