I would prefer it be on my side, since I have multiple mods that use the registries. Basically, I need to know everything about ID/metadata/TileEntity usage, harvesting requirements, mechanics, and special notes, drop rates, seed behavior, and so on.
Basically everything in this.
https://github.com/ReikaKalseki/DragonAPI/blob/master/Interfaces/Registry/CropHandler.java#L18
https://github.com/ReikaKalseki/DragonAPI/blob/master/Base/CropHandlerBase.java
As of version 1.4 AgriCraft has an API:
https://github.com/InfinityRaider/A...om/InfinityRaider/AgriCraft/api/v1/APIv1.java
All the crops added by agricraft follow the vanilla forge crop rules (IGrowable, metadata up to 7 is mature), so they shouldn't require a seperate handler.
Then there is the most important part, that's the crop sticks they are TileEntities (
https://github.com/InfinityRaider/A...finityRaider/AgriCraft/api/v1/APIv1.java#L167).
To check if they are mature you can use
this method.
To harvest, call
this method, it'll do all the necessary operations and will return a List of ItemStacks containing the drops.
Then there are also some other methods concerning cross crops and weeds, they're all quite self-explanatory.
One thing I'd like to keep in tact is that seeds which have stats on them can not be planted on regular soil. To check if an ItemStack has stats on them, use
this method and if any of the values is smaller than zero, it doesn't have stats yet, so planting is allowed.
Agricraft also has the option to disable vanilla planting (meaning only planting seeds on crop sticks is allowed), this can be checked with
this method.
If you have any more questions, feel free to open an issue on my tracker, or on yours and tag me in it, or open a conversation in this forum.