{"id":187,"date":"2026-10-06T00:06:40","date_gmt":"2026-10-05T16:06:40","guid":{"rendered":"https:\/\/blog.leawsic.ltd\/?post_type=shuoshuo&#038;p=187"},"modified":"2026-10-06T00:07:26","modified_gmt":"2026-10-05T16:07:26","slug":"java-%e7%89%88%e7%a6%bb%e7%ba%bf-uuid-%e7%94%9f%e6%88%90%e5%85%ac%e5%bc%8f","status":"publish","type":"shuoshuo","link":"https:\/\/blog.leawsic.ltd\/index.php\/shuoshuo\/java-%e7%89%88%e7%a6%bb%e7%ba%bf-uuid-%e7%94%9f%e6%88%90%e5%85%ac%e5%bc%8f\/","title":{"rendered":"Java \u7248\u79bb\u7ebf UUID \u751f\u6210\u516c\u5f0f"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>import java.nio.charset.StandardCharsets;\nimport java.util.UUID;\n\nclass Main {\n    public static void main(String&#91;] args) {\n        System.out.println(UUID.nameUUIDFromBytes((\"OfflinePlayer:\" + playerName).getBytes(StandardCharsets.UTF_8)));\n    }\n}<\/code><\/pre>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"emotion":"","emotion_color":"","title_style":"","license":""},"categories":[2],"class_list":["post-187","shuoshuo","type-shuoshuo","status-publish","hentry","category-tech"],"_links":{"self":[{"href":"https:\/\/blog.leawsic.ltd\/index.php\/wp-json\/wp\/v2\/shuoshuo\/187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.leawsic.ltd\/index.php\/wp-json\/wp\/v2\/shuoshuo"}],"about":[{"href":"https:\/\/blog.leawsic.ltd\/index.php\/wp-json\/wp\/v2\/types\/shuoshuo"}],"author":[{"embeddable":true,"href":"https:\/\/blog.leawsic.ltd\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.leawsic.ltd\/index.php\/wp-json\/wp\/v2\/comments?post=187"}],"wp:attachment":[{"href":"https:\/\/blog.leawsic.ltd\/index.php\/wp-json\/wp\/v2\/media?parent=187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.leawsic.ltd\/index.php\/wp-json\/wp\/v2\/categories?post=187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}