SubLib — Reference
Core Systems & API
SubLib provides several high-level technical systems that are utilized by its dependent mods to create unique gameplay experiences.
Advanced Raytracing
SubLib includes a robust raytracing engine that functions on both the client and server sides. This system allows mods to accurately detect what a player is looking at or pointing toward, which is essential for the spell-casting mechanics in the Mage class and the targeting logic used by the PetBuddy.
Targeting Logic
The library features a specialized targeting API. This logic is used to determine entity priorities for pets and class-based abilities, ensuring that summons and spells interact correctly with friendly versus hostile mobs.
Shield & Weapon Framework
SubLib provides developers with a streamlined method for coding custom shields and weapons. This framework was particularly vital in versions prior to Minecraft and continues to enhance how custom shields (like those in the Paladin class) handle damage reduction and blocking animations.
