Inventory filters and finishing up some stuff #TrainsInMotion #Traincraft (1.7.10 rewrite)

- The setup file now notes that the eclipse function is busted. I believe it's forge's fault and I have no idea how to fix it.
- Finished up the functionality for using keys and tickets on trains and rollingstock.
- Moved the inventory handler instance to the generic transport class, since almost everything uses it to one extent or another.
- Added a some new transport types to the enum.
- Added an item type enum so we can filter by type or specific item.
- Inventories can now filter items from being accepted using either a type or a list of items.
- Refactored the rider offset variable, the non-plural name was getting me confused.
- removed a bunch of useless imports.


The main thing to note from this other than a bunch of stuff from yesterday got finished up, was that inventories for trains and rollingstock can now be filtered to only accept certain items or types of items (well, the code is there for it and it can be used in classes. No GUI for it just yet).
Some rollingstock in the future will do this by default, for instance you wouldn't want grains on a flatcar. While as others will let the player define it manually, for example you could set a boxcar to only allow food, and it will show a representation of that on the side (or at least that's how it's planned).
The system probably needs some better handling

Comments