-
Notifications
You must be signed in to change notification settings - Fork 549
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
SlimefunItemStack reimplementation #4251
base: walshy/mc-1.21
Are you sure you want to change the base?
Conversation
Pro Tip!
If your changes do not fall into any of these categories, don't worry. You can just ignore this message in that case! 👀 |
src/main/java/io/github/thebusybiscuit/slimefun4/api/items/SlimefunItemStack.java
Show resolved
Hide resolved
src/main/java/io/github/thebusybiscuit/slimefun4/api/items/SlimefunItemStack.java
Outdated
Show resolved
Hide resolved
...io/github/thebusybiscuit/slimefun4/implementation/items/electric/machines/ElectricPress.java
Outdated
Show resolved
Hide resolved
Really not a fan of getDelegate tbh, not sure a great other solution tho |
src/main/java/io/github/thebusybiscuit/slimefun4/api/items/SlimefunItemStack.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/thebusybiscuit/slimefun4/core/commands/subcommands/BackpackCommand.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/thebusybiscuit/slimefun4/api/items/SlimefunItem.java
Outdated
Show resolved
Hide resolved
NOTE TO FUTURE SELF: Use ForwardingObject over lombok's @DeleGate
Once this works i will try replacing it with google's ForwardingObject rather than adding a new dependency, similar to how many paper classes are implemented so to not get surprises later on (Edit) this breaks a lot of compatibility compared to using lombok as you need to first get the delegate and then run the methods on the delegate, instead lombok generates code to access said delegate methods directly |
7e5f09a
to
d12ae85
Compare
Slimefun preview buildA Slimefun preview build is available for testing! https://preview-builds.walshy.dev/download/Slimefun/4251/768a3d20
|
d12ae85
to
b646376
Compare
# Conflicts: # pom.xml # src/main/java/io/github/thebusybiscuit/slimefun4/api/gps/GPSNetwork.java # src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/electric/machines/CarbonPress.java # src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/electric/machines/ElectricPress.java # src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/electric/machines/HeatedPressureChamber.java # src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/electric/reactors/Reactor.java # src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/magical/talismans/EnderTalisman.java # src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/magical/talismans/Talisman.java
No idea why it still says Merge Conflicts when i already solved those, it looks like there are some problems, rewriting them here for consistency
|
tested this and everything seems to be working fine. no errors in console and all items working as intended. |
WrongItemStackException isn't used anymore, should it be removed altogether? also |
Search for the exception and the function, and the result is only Slimefun core and its fork. No other plugins use them, so I say just remove them. |
Pull request made: Intybyte#3 |
retested 11-24-24 all seems to be working fine on preview build 6d38511 |
No need to retest from 0 the last commit as it just removes unused code |
We've done a ton of testing, had no issues, everything is working perfectly |
What is preventing this from being merged? |
Description
We can't extend itemstack anymore we need to fix EVERYTHING
Proposed changes
Use a delegate instead of extending itemstack
Related Issues (if applicable)
Checklist
I have also tested the proposed changes in combination with various popular addons and can confirm my changes do not break them.This is the frontrow for watching all addons burn.