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

Make pet classes inherit from their respective NMS classes. #40

Closed Techcable closed 8 years ago

Techcable commented 8 years ago

Reduces logic duplication between NMS and sonarpets, signifigantly reducing the amount of work in an update. We can easily utilize existing logic in minecraft now, allowing pets to act 'normally'.

Since java doesn't have multiple inheritance, I use java 8's default interface methods, which allows us to reduce SonarPets logic duplication.

Before we implement human pets however, we have to seperate 'EntityLiving' logic from 'EntityInsentient' logic. Basically, right now the plugin assumes all pets are mobs. We have to change that before we can add human pets (unless we fake them with packets).

TODO:

Techcable commented 8 years ago

Life's to short, push to master!