Skip to content

Update getId and getIdOrThrow to match vanilla added method.#5169

Merged
modmuss50 merged 1 commit intoFabricMC:26.1from
Patbox:getid_match_vanilla
Jan 29, 2026
Merged

Update getId and getIdOrThrow to match vanilla added method.#5169
modmuss50 merged 1 commit intoFabricMC:26.1from
Patbox:getid_match_vanilla

Conversation

@Patbox
Copy link
Member

@Patbox Patbox commented Jan 28, 2026

Simple pr that updates methods added in #5116 to match vanilla naming, as Mojang added a private method to Item.Properties that does the same thing.
So this pr:

  • Renames Item.Properties#getId() -> #itemId()
  • Renames BlockBehaviour.Properties#getId() -> #blockId()
  • Renames BlockBehaviour.Properties#getIdOrThrow() -> #blockIdOrThrow()
  • Removes Item.Properties#getIdOrThrow()
  • Access widens Item.Properties#itemIdOrThrow()

@modmuss50 modmuss50 added the status: merge me please Pull requests that are ready to merge label Jan 29, 2026
@modmuss50 modmuss50 merged commit 18b981c into FabricMC:26.1 Jan 29, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup small change status: merge me please Pull requests that are ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants