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