Patchouli

Patchouli

168M Downloads

Feature Request: API method to open book at a specific entry ID

desht opened this issue ยท 2 comments

commented

As the subject says: it would be nice to be able to do something like

// server version
PatchouliAPI.instance.openBookGUI(EntityPlayerMP player, bookResourceLocation, "category_id/entry_id");
// client version
PatchouliAPI.instance.openBookGUI(bookResourceLocation, "category_id/entry_id");

My particular use-case is the PneumaticCraft programmer, where I'd like to be able to hover over one of the programming widgets and press a hotkey to open the documentation for that widget (this is possible right now with IGWmod, but I want to support Patchouli too!)

As a bonus feature, it would also be useful to have some way to prevent the user leaving that entry, in the case where you might want to allow opening a specific entry, but not allow general book browsing without an actual book in your inventory.

commented

I agree, a method like this would be really useful to link documentation to buttons or hotkeys!

commented

this exists in 1.15 now