Tech Reborn

Tech Reborn

30M Downloads

Impliement Upgrade slots

modmuss50 opened this issue ยท 15 comments

commented

This will allow the machines to accept power through the slots and take upgrades.

commented

Well there is a problem @modmuss50 IC2 Exp Upgrades and IC2 Classic upgrades are totally differend...

commented

Is there an API or something that I can hook into?

commented

IC2 Classic has a API in the API area and Exp has a API in their sourceCode...
The could colide^^

commented

With it being in the source code it could be hard for me to use. With yours I can use JTraits to add it to the class

commented

well with sourcecode i mean simply its not in the API. so you require IC2 Exp to have the class aviable...

commented

I was trying not to do that, but it looks like I may have to

commented

its not as simple as just implementing the class and it works? I need to write some code to handle the items?

commented

Well actuall it is... But with Exp you have the problem that you can not detect it easy with @optional

commented

So you have to implement these interfaces and have to be sure that Exp is installed.... (For machines and ItemUpgrades)

If you want to make that machines get supportet you have to simply check the upgrade slots and calculate the numbers. you do not have to support every function but that what you want to support. (onInstalling (classic only i think) and onTick should be supported)

commented

Ok, that doesn't sound too bad. Thanks for the help

commented

only problem you will have if you support Exp then you need Special external TileEntites because @optional is not working for Exp... So you can not remove the Interface from Your machines if you support Exp (only if you do it yourself). Other way around it is possible

commented

Ive got away round that issue.

commented

cool

commented

Might have to use are own till Ic2 gets to 1.8.9