Chunk lifecycle events with chunk systems that replace vanilla's (e.g. Moonrise)
まだ誰も着手していません。
評価
調査の方向性
The events come from mixins into ChunkStatusTasks.full, ChunkMap.scheduleUnload and ChunkHolder.updateFutures, which Moonrise replaces. Read the existing chunk event mixins and how NeoForge's ChunkEvent.Load/Unload are posted. The open question is who owns dispatch, so agree on a design with maintainers before writing code. Done means the events fire once with other chunk systems installed.
索引モデルが issue の本文から書いたものです。
説明
FFAPI fires ServerChunkEvents.CHUNK_LOAD, CHUNK_GENERATE, CHUNK_UNLOAD and FULL_CHUNK_STATUS_CHANGE from mixins into vanilla ChunkStatusTasks.full, ChunkMap.scheduleUnload and ChunkHolder.updateFutures. Moonrise replaces those code paths, so with Moonrise installed none of these events fire, and LoadedChunksCache stays empty (Tuinity/Moonrise#210). Moonrise does post NeoForge's ChunkEvent.Load/Unload.
On Fabric, Moonrise fires the Fabric API events itself. On NeoForge we're unsure where this should live. If Moonrise fires FFAPI's events and FFAPI later starts translating NeoForge's chunk events, everything would fire twice. If FFAPI translates NeoForge's events, the timing changes slightly: on plain NeoForge, ChunkEvent.Unload is posted after the chunk is saved, while Fabric API's CHUNK_UNLOAD fires before it. FULL_CHUNK_STATUS_CHANGE has no NeoForge equivalent either way.
How would you prefer to handle this, so these events work with other chunk systems without risking double dispatch?
- 主要言語
- Java
- スター
- 181
- フォーク
- 41
- 平均マージ
- 16時間 38分
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Sinytra/ForgifiedFabricAPI のほかの issue
-
1.21.x bug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
Sinytra/ForgifiedFabricAPI#276 ·
-
1.21.x bug
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
Sinytra/ForgifiedFabricAPI#269 ·
-
1.21.x bug
難易度 3/5 1〜2日 初心者へのやさしさ 53/100
Sinytra/ForgifiedFabricAPI#267 ·
-
1.21.x bug
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
Sinytra/ForgifiedFabricAPI#265 · コメント 6 件 ·
-
1.21.x bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
Sinytra/ForgifiedFabricAPI#263 · コメント 2 件 ·
Sinytra/ForgifiedFabricAPI の issue をすべて見る
似ている issue
-
難易度 2/5 1時間未満 初心者へのやさしさ 70/100
Vakore/ZappierGames#248 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
thelastpickle/cassandra-reaper#1748 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 3 日以内に返信
-
A proxy that fails to start logs a RejectedExecutionException stack trace from its shutdown hookオープンfollow-up
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
Sanne/incus-spawn#1953 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
OneBusAway/maglev#1917 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信