TESLA

TESLA

15M Downloads

Add More Utilities To Tesla

TheCodedOne opened this issue ยท 25 comments

commented

This issue is intended as a discussion

Should more utilities like the powerbar be added to Tesla

Some ideas of utilities are,

  • Item Powerbar Rendering Helper
  • IEmpowerableItem interface
commented

YES

commented

I second the IEmpowerableItem, however I don't think ItemToolAdv is necessary because each mod will probably have tools that work differently. Maybe just me though. Then again, it's not like mods have to use the class, they could just add their own.

commented

I would say no. Keep the API slim, easy to update, and with only the content that is really needed by all mods that use Tesla

A collection of utilities could probably go into another small mod

commented

@ZeroNoRyouki The problem with an external small mod, people wouldn't add compatibility for it, plus if it fits into tesla's theme, why not, but in the end it is whatever darkhax decides

commented

@ProfessorProspector I second IEmpowerableItem too, but IDismantleable im not sure if i see how it fits into tesla

commented

True, IDismantleable doesn't make sense :P

commented

@ZeroNoRyouki Which is slimmer, Tesla adding utils that almost every single mod using tesla will use, or each of those mods adding the utils individually?

commented

Using the PowerBar as an example, i've gotten only good feedback about that being implemented into tesla

commented

@ProfessorProspector : an API-only Tesla mod (like the current one) and a common-utilities mod with GUI stuff and such that mod can use if they need it (not all mods that use Tesla will use it)

@TheCodedOne : compatibility? This is basically a small library of code. If I need it for my mod I will use it, not be compatible with it. I'm not saying that the PowerBar is a bad idea (though I will not implement it using capabs), I'll just not add it to Tesla because not all mods that use Tesla will use it

commented

Name 2 mods that use tesla and don't have tesla power bars in a gui

commented

@ZeroNoRyouki this stuff we're discussing isnt meant to target everyone, some people might want to do it their own way, which is fine they have free will, it is designed for the newer modders who dont know as much as some of the more experienced modders to be able to have something that looks good and functions well, while being able for them to learn how it works through the source code.

commented

@ProfessorProspector: Mods that don't have a GUI (say, blocks like EnderIO power banks that display the charge level on the block itself), or ones that have their own power bars

@TheCodedOne: well, if it's not for everyone why put it in the main API then?

Dont' get me wrong guys, I think this is really a good idea. I just will not put it in the main API

commented

@ZeroNoRyouki enderio has got GUI's for the powerbanks you know.. that do show the power level inside them

commented

commented

@TheCodedOne : yeah I know, but the main function of that GUI is to set the I/O rates and recharge stuff. Take that away and you would not need a GUI (and power bar) at all

commented

yo you be rustlin @TheCodedOne's jimmies and gettin him all mad and shit. he'd like you to not respond again. thank you for contacting TESLA customer service. make sure 2 give me 6 star rating and 100$ pls. thank u come again,.

commented

lol

commented

Personally, I feel as if adding things like a Powerbar will be super beneficial because i don't know that much about modding so adding powerbars is difficult for me. #VoteAddUtils

commented

#VoteAddUtils #VoteTrump

commented

Currently, i will work on 2 separate Pull requests

  • The Item Powerbar Rendering Helper
  • The IEmpowerableItem interface
commented

#BuildTheWall

commented

@ZeroNoRyouki and everyone else: The reason Tesla is a full on mod and not an API is so it can provide additional functionality that isn't included with a traditional API. Some current examples of this include the automatic initialization of the capabilities, several capability based utilities, unit conversion, and thanks to @TheCodedOne power bar rendering. I am definitely fine with giving mod authors the tools to do common things, this ensures that the code being used is efficient and reliable, it also makes things easier for newer developers.

commented

If there arent any more ideas i'll close this.