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

Rename the LootContext#requireParameter method to getOrThrow #4075

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

haykam821
Copy link
Contributor

This pull request renames the LootContext#requireParameter method to be more consistent with other classes that expose combinations of throwing, nullable-returning, and optional-returning methods for lookups. In fact, the implementation of this method calls the ContextParameterMap#getOrThrow method.

@haykam821 haykam821 added refactor A PR that renames existing names. release A PR that targets a release version of Minecraft labels Jan 1, 2025
@haykam821 haykam821 requested a review from a team January 1, 2025 19:39
@Shnupbups Shnupbups added the bug Fixes or discusses a bug within the mappings label Jan 2, 2025
@Shnupbups Shnupbups merged commit 05be47f into FabricMC:1.21.4 Jan 2, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes or discusses a bug within the mappings refactor A PR that renames existing names. release A PR that targets a release version of Minecraft
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants