You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Daniel Voznyy edited this page Sep 2, 2020
·
1 revision
All custom mobs share a common CustomMob class. However, since protected values and methods commonly need to be accessed or overriden, each mob must manually reimplement each method correctly.
MobBase and the annotation processor
Because this boilerplate code is undesirable, mobzy provides an annotation processor which will copy code from a base entity class (MobBase), which implements CustomMob and extends NMSEntityInsentient.
Simply annotate your new type with @GenerateFromBaseClass and extend the generated class. For example if you wished to extend NMSEntityPig, you would do: