Denizen
Denizen copied to clipboard
Cross-version `InventoryView` compatibility
Reported on Discord.
Ended up going with reflection instead of modulizing it, since it'd be one util class instead of methods in every version module, and performance wise it should be basically the same due to static final MethodHandles (I think?).
Additions
-
InventoryViewUtil- util for calling relevantInventoryViewmethods with reflection.
Changes
-
InventoryViewmethod usages now useInventoryViewUtil.
[!NOTE]
InventoryViewUtilhas some static util methods for invoking theMethodHandles, not sure how does that affect (performance) things? might have to call them directly?