Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Make it possible to extend API.

Joined
Nov 22, 2013
Messages
30
It would be awesome that every class could not have a final modifier... I want to be able to extend the API so stuff keeps organized and really good.
 
Joined
Dec 10, 2014
Messages
3,255
It would be awesome that every class could not have a final modifier... I want to be able to extend the API so stuff keeps organized and really good.
Wrapper classes get the job done.

Don'ty understand what you meen? you can have packages etc? unless im totaly missing the point
He means extending the API as in creating a class Bank that extends the API's Bank class, allowing him to access the API's Bank methods through his custom class.

I asked Cloud about it before, and the reasons he had were reasonable so it doesn't really bother me. There are other ways to extend the API that work just as well imo.
 
Joined
Nov 22, 2013
Messages
30
Well I would rather just do it directly :p For example I wanna have a custom PredefnedPath, where it treats vertices in a different way, but I still want to be able to use its step method.. That way would be the best if I could just extend it.
 
Joined
Dec 10, 2014
Messages
3,255
Well I would rather just do it directly :p For example I wanna have a custom PredefnedPath, where it treats vertices in a different way, but I still want to be able to use its step method.. That way would be the best if I could just extend it.

If you don't have a destination or you're within a certain distance from the destination then get the next best vertex (using your custom treatment) and click on the MinimapCoordinate corresponding to that vertex's Coordinate :p
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
I finalize things intentionally, I don't want there to be any confusion about where the method originates from and due to the nature of static methods in java I know confusion would eventually show up.
 
Top