-
Notifications
You must be signed in to change notification settings - Fork 9
Pseudo sigil chest contents use config #116
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
Merged
loenaaaa
merged 10 commits into
GTNewHorizons:master
from
loenaaaa:pseudo-sigil-add-config
Feb 8, 2026
Merged
Changes from 8 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
90330d6
changed to use config + refactor
loenaaaa 9de12d3
Merge branch 'GTNewHorizons:master' into pseudo-sigil-add-config
loenaaaa d6875cf
use right method
loenaaaa c37fcab
Merge remote-tracking branch 'origin/pseudo-sigil-add-config' into ps…
loenaaaa db6fca4
use wrapper class and hashSet
loenaaaa d0d828e
Update chest contents instantiation to use ItemStackBaseCompare
loenaaaa 8ce2793
Merge branch 'master' into pseudo-sigil-add-config
loenaaaa f996e15
refactoring
loenaaaa 74c079c
remove redundant stuff
loenaaaa 05294fe
improve log message
loenaaaa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
36 changes: 36 additions & 0 deletions
36
src/main/java/com/fouristhenumber/utilitiesinexcess/utils/ItemStackBaseCompare.java
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| package com.fouristhenumber.utilitiesinexcess.utils; | ||
|
|
||
| import net.minecraft.item.Item; | ||
| import net.minecraft.item.ItemStack; | ||
|
|
||
| /** | ||
| * Wrapper class of ItemStack that compares with itemStack Item, Count and Damage. | ||
| */ | ||
|
|
||
| public class ItemStackBaseCompare { | ||
|
|
||
| public ItemStackBaseCompare(ItemStack itemStack) { | ||
| item = itemStack.getItem(); | ||
| count = itemStack.stackSize; | ||
| damage = itemStack.getItemDamage(); | ||
| } | ||
|
|
||
| Item item; | ||
| int count; | ||
| int damage; | ||
|
|
||
| @Override | ||
| public boolean equals(Object o) { | ||
| if (!(o instanceof ItemStackBaseCompare that)) return false; | ||
| return count == that.count && damage == that.damage && item.equals(that.item); | ||
| } | ||
|
|
||
| @Override | ||
| public int hashCode() { | ||
| int result = 1; | ||
| result = 31 * result + (item != null ? item.hashCode() : 0); | ||
| result = 31 * result + count; | ||
| result = 31 * result + damage; | ||
| return result; | ||
| } | ||
| } |
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.
Uh oh!
There was an error while loading. Please reload this page.