Skip to content

Conversation

@ghzdude
Copy link
Contributor

@ghzdude ghzdude commented Dec 11, 2025

What

Primarily moves code out of the filter classes and into their respective UI manager classes.

Implementation Details

mostly internal changes
delete IFilter interface
delete FilterReader interface
remove stack arg in filter reader constructor
make filter constructors no arg
make filters an item component and use directly
remove dirtyNotifiable from filter classes because filter reader already handles that
rename SimpleFilterUIManager -> SimpleItemFilterUIManager

Outcome

ui code is in the ui manager class and not the filter class

@ghzdude ghzdude added the type: refactor Suggestion to refactor a section of code label Dec 11, 2025
@ghzdude ghzdude marked this pull request as ready for review December 12, 2025 07:45
@ghzdude ghzdude requested a review from a team as a code owner December 12, 2025 07:45
@Zorbatron
Copy link
Member

Editing the settings of a cover as an item/from your hotbar doesn't work anymore. Any changes are lost when closing the UI.

@Zorbatron
Copy link
Member

Well, at least partially. It's pretty inconsistent with saving to NBT.
https://github.com/user-attachments/assets/895a4bce-1f4e-470c-9592-aeb8cb12851e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: refactor Suggestion to refactor a section of code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants