-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Implemented smithing table functionality #6202
base: minor-next
Are you sure you want to change the base?
Conversation
There's not much more I can do at this point, everthing is fixed except for save ids. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good to me, one comment.
This comment was marked as off-topic.
This comment was marked as off-topic.
3999602
to
5360b77
Compare
yeah, ready to be reviewed again. |
what is still missing? |
nothing. just reviews 😭 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here are some micro-optimizations which I believe may help the API
…to smithing-table
Co-authored-by: Dylan T. <[email protected]>
…ocketMine-MP into smithing-table
This reverts commit 30a4edb.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks mostly OK.
I'm a bit uneasy about allowing custom armor trim patterns because they'll generate confusing errors if the objects are duplicated. The ArmorTrimPattern
and ArmorTrimMaterial
classes should use the NotCloneable
and NotSerializable
traits.
Introduction
This PR adds working smithing tables to pocketmine.
There are no known issues or problems
Changes
API changes
Amor->setTrim(ArmorTrim)
Armor->getTrim() : ?ArmorTrim
Armor->clearTrim()
SmithingTableInventory->getInput() : Item
SmithingTableInventory->getAddition() : Item
SmithingTableInventory->getTemplate() : Item
The new enums:
ArmorTrimPattern
&ArmorTrimMaterial
(required to constructArmorTrim
)Tests
Tested ingame with the smithing table several times:
Tested the code