Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

IForgeItem#46

Merged
coderbot16 merged 21 commits intoPatchworkMC:masterfrom
Virtuoel:feature/iforgeitem
Mar 7, 2020
Merged

IForgeItem#46
coderbot16 merged 21 commits intoPatchworkMC:masterfrom
Virtuoel:feature/iforgeitem

Conversation

@Virtuoel
Copy link
Copy Markdown
Contributor

Areas with tasks to be resolved in later PRs:

  • getToolTypes and getHarvestLevel once ToolType is implemented
  • Use tag from Forge Tags class in isBeaconPayment once the class is added
  • initCapabilities once ICapabilityProvider is added
  • getAnimationParameters once ITimeValue is added
  • Move contents of getCreatorModId to ForgeHooksClient?

Tasks to resolve later:
- `getToolTypes` and `getHarvestLevel` once `ToolType` is implemented
- Use tag from Forge Tags class in `isBeaconPayment` once implemented
- `initCapabilities` once `ICapabilityProvider` is added
- `getAnimationParameters` once `ITimeValue` is added
- Move contents of `getCreatorModId` to `ForgeHooksClient`?
Copy link
Copy Markdown
Member

@coderbot16 coderbot16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of the things in IForgeItem have not been truly implemented, because a lot of the functionality involves patches elsewhere that call these methods.

@coderbot16
Copy link
Copy Markdown
Member

However, this is a good start!

Copy link
Copy Markdown
Member

@coderbot16 coderbot16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a good start. I have some comment nitpicks. Also, it may be a good idea to split this into a patchwork-extensions-item module or similar because I can forsee just item extensions alone becoming huge.

Comment thread patchwork-extensions/src/main/java/com/patchworkmc/mixin/extension/MixinItem.java Outdated
Copy link
Copy Markdown
Member

@coderbot16 coderbot16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking much better, I see one or two minor logic issues but otherwise this looks ready. The comment about patchwork-extensions-item does still apply since the item mixins alone could become a few thousand lines of code, and it could be better to split it off. This should be an easy case of git mv if we do split it off. Thanks for all the hard work!

Comment thread patchwork-extensions/src/main/java/com/patchworkmc/mixin/extension/MixinItem.java Outdated
@coderbot16
Copy link
Copy Markdown
Member

The CI failures are likely spurious, once you push some more code they should work.

Copy link
Copy Markdown
Member

@TheGlitch76 TheGlitch76 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could a README.MD file be added to the root of the module that lists off things that need to be implemented elsewhere? I think that would make updating a lot easier than having to hunt things down

Copy link
Copy Markdown
Member

@coderbot16 coderbot16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I'd just like the REACH_DISTANCE thing to be removed. Also, before I merge this, could you do the move to patchwork-extensions-item?

Comment thread patchwork-extensions/src/main/java/com/patchworkmc/mixin/extension/MixinItem.java Outdated
@coderbot16
Copy link
Copy Markdown
Member

I think a README file is good, even if it is just a list of all the TODOs.

@Virtuoel Virtuoel requested a review from coderbot16 March 2, 2020 22:39
Copy link
Copy Markdown
Member

@coderbot16 coderbot16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious, is patchwork-fml actually needed? Otherwise this looks good to merge.

Comment thread patchwork-extensions-item/build.gradle Outdated
@coderbot16
Copy link
Copy Markdown
Member

Thanks for this!

@coderbot16 coderbot16 merged commit fa1b318 into PatchworkMC:master Mar 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants