feat: Add create-style filter items to transporter, greedy familiar and all worker spirits that pick up items.#1606
Open
klikli-dev wants to merge 102 commits intoversion/26.1.2from
Open
feat: Add create-style filter items to transporter, greedy familiar and all worker spirits that pick up items.#1606klikli-dev wants to merge 102 commits intoversion/26.1.2from
klikli-dev wants to merge 102 commits intoversion/26.1.2from
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a new filtering system for spirits using 'List' and 'Attribute' filters, replacing the previous tag-based filtering. It includes necessary infrastructure updates, such as adding the 'code-defined-gui' dependency, updating GUI rendering logic, and modifying spirit entity data handling. My feedback highlights concerns regarding the reduction of filter slots from 14 to 1, which may cause data loss for existing entities, and suggests verifying if migration logic is required.
| TagValueOutput tagOutput = TagValueOutput.createWithContext(ProblemReporter.DISCARDING, SpiritEntity.this.level().registryAccess()); | ||
| this.serialize(tagOutput); | ||
| SpiritEntity.this.entityData.set(FILTER_ITEMS, tagOutput.buildResult().toString()); | ||
| SpiritEntity.this.entityData.set(FILTER_ITEM, tagOutput.buildResult().toString()); |
Contributor
| String compoundStr = this.entityData.get(FILTER_ITEM); | ||
| try { | ||
| CompoundTag compound = compoundStr.isEmpty() ? new CompoundTag() : TagParser.parseCompoundFully(compoundStr); | ||
| compound.putInt("Size", 1); |
Contributor
|
|
||
| @Override | ||
| public int getMaxStackSize() { | ||
| return 1; |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.