lingyunmo / Lanthanum

"Lanthanum" is a Minecraft mod created with Fabric.It is a project driven by personal interest and is available for Minecraft version 1.19.4.
MIT License
1 stars 2 forks source link

Update metal resistence #35

Closed lingyunmo closed 7 months ago

lingyunmo commented 7 months ago

Summary by CodeRabbit

coderabbitai[bot] commented 7 months ago

Walkthrough

The changes reflect a shift in the mod's focus from a "thirst" mechanic to a "metal resistance" mechanic. This includes updates to HUD overlays, key bindings, event handling, networking, and data management to support the new feature. The mod version has been bumped, and various classes have been renamed and repurposed to align with the metal resistance theme.

Changes

File Path Change Summary
gradle.properties Updated mod_version from 0.0.18 to 0.0.20.
.../lanthanum/LanthanumClient.java Changed import and registration from ThirstHudOverlay to MetalResistanceHudOverlay.
.../client/MetalResistanceHudOverlay.java Added new class for metal resistance HUD rendering.
.../event/KeyInputHandler.java Renamed key binding and variable from "drink_water" to "restore_metal_resistance".
.../event/PlayerTickHandler.java Added methods for metal presence and resistance handling; added initialized variable.
.../item/ModOrePlacedFeatures.java Removed unused import for ModOreConfiguredFeatures.
.../mixin/ModEntityDataSaverMixin.java Improved code formatting with consistent use of braces and spaces.
.../networking/ModMessage.java Renamed packet classes and identifiers to support metal resistance functionality.
.../networking/packet/MetalResistanceC2SPacket.java Introduced new packet class for metal resistance client-server communication.
.../networking/packet/MetalResistanceSyncDataS2CPacket.java Renamed and updated packet class for syncing metal resistance data to the client.
.../registry/ModPortal.java Cosmetic code formatting changes in portalBuilder method.
.../utils/MetalResistanceData.java New class with methods for managing and syncing metal resistance data.

As autumn leaves do twirl and dance, 🍂
Our mod takes on a new stance.
From thirst to metal, we resist,
With code and features, we persist. 🐇✨


Tips ### Chat with CodeRabbit Bot (`@coderabbitai`) - If you reply to a *review comment* from CodeRabbit, the bot will automatically respond. - To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment - Note: Review comments are made on code diffs or files, not on the PR overview. - Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. ### CodeRabbit Commands (invoked as PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger a review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@coderabbitai help` to get help. Note: For conversation with the bot, please use the review comments on code diffs or files. ### CodeRabbit Configration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - The JSON schema for the configuration file is available [here](https://coderabbit.ai/integrations/coderabbit-overrides.v2.json). - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json`