asusoda / Corundum

This is a new plugin-based server-side modding A.P.I. for Minecraft. [WIP]
MIT License
7 stars 1 forks source link

subclasses of type classes #13

Closed Variadicism-zz closed 9 years ago

Variadicism-zz commented 9 years ago

Because enums are final, they can't use inheritance. That means if we want to have subclasses of "type" classes, e.g. if we want MobType as a subclass of EntityType, we will have to do something different. As you may have noticed, I made a separate branch on the repo for an experimental code reworking where I am attempting to see if I can redo the system as described in option 2. (Our current code on the master branch leans toward option 1.)

So, we have a couple options here:

If only we could use Java 8....

Anyway, I'm not going to express opinion on this one yet; I'm going to let you guys reply first.

Variadicism-zz commented 9 years ago

It looks like we'll be going with option 2.