Impliement Upgrade slots
modmuss50 opened this issue ยท 15 comments
This will allow the machines to accept power through the slots and take upgrades.
Well there is a problem @modmuss50 IC2 Exp Upgrades and IC2 Classic upgrades are totally differend...
IC2 Classic has a API in the API area and Exp has a API in their sourceCode...
The could colide^^
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
well with sourcecode i mean simply its not in the API. so you require IC2 Exp to have the class aviable...
its not as simple as just implementing the class and it works? I need to write some code to handle the items?
Well actuall it is... But with Exp you have the problem that you can not detect it easy with @optional
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)
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