refactor(SimpleTombstone): 优化代码结构并添加 PlayerTombstoneData 类
- 删除多余的空行,提高代码整洁性- 在 SimpleTombstone.java 中添加 PlayerTombstoneData 记录类 - 用于存储玩家墓碑数据,包括玩家 UUID 和物品列表
This commit is contained in:
parent
54d7a8219f
commit
61d67213f6
@ -179,9 +179,8 @@ public class SimpleTombstone implements ModInitializer {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 在SimpleTombstone.java中添加
|
||||
|
||||
public record PlayerTombstoneData(UUID playerId, List<ItemStack> items) {
|
||||
public PlayerTombstoneData(UUID playerId, List<ItemStack> items) {
|
||||
this.playerId = playerId;
|
||||
|
Loading…
Reference in New Issue
Block a user