TechzoneMC / SonarPet

A fork of EchoPet, updated to 1.11
https://ci.techcable.net/job/SonarPet/
GNU General Public License v3.0
19 stars 16 forks source link

Complete rewrite of the NPC and version-specific code #118

Open Techcable opened 5 years ago

Techcable commented 5 years ago

I feel like the NPC code is the most fragile part of the codebase. It's been getting better, but I think I need to move all of the pet-related logic out of the NPC logic for cleanliness. Interaction with the new NPC code will simply involve listening for events and . The new interface must cleanly support multiple NPCs and human NPCs. It must be lightweight, of high quality, and well-encapsulated so that someday I can pull it out and maintain it as a separate library. Instead of using bytecode generation or magic template libraries, I intend to use readable python code to generate the version-specific code.

This will be the first of many improvements on the way to v2.0.0 and will pave the way for multiple pets, human pets, and much quicker updates to new Minecraft versions.