Is there anyway to extend another entity class in the mob code?

Started by shawne11 on Sat, 09/03/2016 - 12:42

Topic category: Advanced modding

Last seen on 16:18, 21. Jan 2019
Joined Oct 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Is there anyway to extend another entity class in the mob code?
Sat, 09/03/2016 - 12:42

I want to make a mob that is both tameable and rideable, however the code that ive been trying to use to make it rideable is not working. So is there a way to extend to another entity classes in the mob code to give two affects? such as extending the wolf code to make it tameable and extending the horse code to make it ridable?

Last seen on 00:21, 11. Aug 2019
Joined Aug 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
Simply you can just in code
Sun, 09/04/2016 - 10:00

Simply you can just in code change extends EnitityCreature or extends EntityMob to extends EntityHorse.
But you can not extend multiple things so better look on source of these two entities. You wll propably need extend EntityTameable , maybe implament IAnimal, then you can add some methods from EntityHorse.

Last seen on 16:18, 21. Jan 2019
Joined Oct 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Ok thanks
Mon, 09/05/2016 - 10:42

Ok thanks