Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

通用数据 #821

Merged
merged 59 commits into from
Nov 9, 2024
Merged

通用数据 #821

merged 59 commits into from
Nov 9, 2024

Conversation

StarWishsama
Copy link
Member

@StarWishsama StarWishsama commented Jan 18, 2024

简介

添加 SlimefunUniversalData
添加一种基于 UUID 的箱子菜单,用于 ColoredEnderChests 和机器人等。

测试

  • 数据库表正确性
  • 数据库控制器增删查改
  • 通用数据 API
  • 通用数据机器 Ticker 支持
  • 机器人数据迁移

相关的 Issues (没有可不填)

#807

@StarWishsama
Copy link
Member Author

引入 UUIDData (UniversalData? 待定):

  • 基于 UUID 的通用 "方块" 数据
  • 对于机器人,存储最新一次位置
  • ...

@StarWishsama StarWishsama marked this pull request as draft January 18, 2024 16:32
@StarWishsama StarWishsama changed the title 统一菜单 通用数据 Mar 11, 2024
@StarWishsama StarWishsama force-pushed the feat/universal-inventory branch from 9665162 to 1185b0e Compare May 28, 2024 12:09
# Conflicts:
#	.git-hooks/pre-commit
#	src/main/java/com/xzavier0722/mc/plugin/slimefun4/storage/adapter/sqlcommon/SqlCommonAdapter.java
#	src/main/java/io/github/thebusybiscuit/slimefun4/implementation/listeners/BlockListener.java
#	src/main/java/me/mrCookieSlime/Slimefun/api/inventory/BlockMenuPreset.java
@StarWishsama StarWishsama marked this pull request as ready for review August 8, 2024 07:50
# Conflicts:
#	.github/workflows/pr-checker.yml
#	src/main/java/io/github/thebusybiscuit/slimefun4/implementation/listeners/BlockListener.java
#	src/main/java/io/github/thebusybiscuit/slimefun4/implementation/tasks/TickerTask.java
# Conflicts:
#	src/main/java/city/norain/slimefun4/SlimefunExtended.java
- Remove `last_present` field and use kv store to store it
- Introduced `trait` for UniversalData to show their special ability
- Spilt `SlimefunUniversalData` to `SlimefunUniversalData` and `SlimefunUniversalBlockData`
- Refactor android menu
# Conflicts:
#	src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/androids/ProgrammableAndroid.java
@StarWishsama StarWishsama merged commit 091919e into dev Nov 9, 2024
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant