Registry-related get methods
まだ誰も着手していません。
評価
調査の方向性
まず、issue に記載されている Registry、HolderGetter、HolderLookup、RegistryAccess、BootstapContext のメソッドを特定し、次に #10 で使用されたアプローチと比較します。ResourceKey または TagKey 型の引数が static フィールドに由来する呼び出し箇所を追跡し、影響を受けるローカル変数を特定します。完了とは、一覧にあるメソッド全体で、該当する変数がそれらのフィールドに由来する名前を一貫して使用している状態です。
索引モデルが issue の本文から書いたものです。
説明
A lot of the methods on Registry, HolderGetter, HolderLookup, RegistryAccess take ResourceKey as the sole parameter returning something. A lot of the time, those ResourceKey arguments are obtained from static final fields somewhere which makes choosing the name for the local var very easy.
Something like
Holder<Structure> structure1 = registry.getHolder(BuiltinStructures.NETHER_FOSSIL);
can be changed to
Holder<Structure> netherForsilStructure = registry.getHolder(BuiltinStructures.NETHER_FOSSIL);
This is similar to #10 and how the various is and has methods are handled, by looking at the field used in the parameter.
A non-exhaustive list of methods that this could apply to are:
TagKey
TagKey#create(ResourceKey, ResourceLocation)
ResourceKey
ResourceKey#create(ResourceKey, ResourceLocation)
Registry
Registry#get(ResourceKey)Registry#getHolder(ResourceKey)Registry#getOptional(ResourceKey)Registry#getOrThrow(ResourceKey)Registry#containsKey(ResourceKey)Registry#getHolder(ResourceKey)Registry#getTag(TagKey)Registry#getTagOrEmpty(TagKey)Registry#getOrCreateTag(TagKey)
RegistryAccess, RegistryAccess$Frozen, HolderLookup$Provider
RegistryAccess#lookup(ResourceKey)RegistryAccess#lookupOrThrow(ResourceKey)RegistryAccess#registry(ResourceKey)RegistryAccess#registryOrThrow(ResourceKey)
HolderGetter, HolderLookup
HolderGetter#get(ResourceKey)HolderGetter#getOrThrow(ResourceKey)HolderGetter#get(TagKey)HolderGetter#getOrThrow(TagKey)
BootstapContext
(yes there is a typo in Bootstap in the vanilla source)
Bootstap#register(ResourceKey, Object, Lifecycle)Bootstap#register(ResourceKey, Object)Bootstap#lookup(ResourceKey)
- 主要言語
- Java
- スター
- 24
- フォーク
- 1
- 平均マージ
- 2分
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PaperMC/codebook のほかの issue
-
Dependency Dashboardオープン
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
PaperMC/codebook の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
aoqia194/leaf-loader#19 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
apache/streampark#4521 ·
-
Update license yearオープン0 - Backlog 1 - Ready documentation good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
cbor
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
FasterXML/jackson-dataformats-binary#844 ·
メンテナーはふだん 1 日以内に返信
-
Issue: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
OpenAPITools/openapi-generator#25107 ·
メンテナーはふだん 1 日以内に返信