Skip to content

Add chat component support for fluid stack chat output#409

Closed
Eldrinn-Elantey wants to merge 1 commit intomasterfrom
feat/fluid-stack-chat-component
Closed

Add chat component support for fluid stack chat output#409
Eldrinn-Elantey wants to merge 1 commit intomasterfrom
feat/fluid-stack-chat-component

Conversation

@Eldrinn-Elantey
Copy link

Summary

This PR introduces fluid-stack chat component support in AE2FluidCraft-Rework, mirroring the pattern previously added in AE2 for stack chat component rendering.

Changes

  • Added Util.getFluidChatComponent(IAEFluidStack):
    • Uses translated unlocalized key when available.
    • Falls back to display name when translation is unavailable.
  • Refactored BlockFluidBuffer chat output to use the new helper.
  • Kept formatted amount suffix in chat output.

Why

This makes fluid chat messages consistent with stack-based chat component behavior and improves localization support for fluid names in chat.

- Add `Util.getFluidChatComponent(IAEFluidStack)` to build localized chat components for fluid stacks, with fallback to display name.
- Update `BlockFluidBuffer` to use the new fluid chat component when showing stored fluid in chat.
- Keep amount formatting in chat output (`#,### mB`) and preserve existing behavior.
@Eldrinn-Elantey Eldrinn-Elantey deleted the feat/fluid-stack-chat-component branch March 5, 2026 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant