Ellpeck / PrettyPipes

Pretty Pipes is a simple to use, all-inclusive item transport mod featuring simple pipes that can be upgraded using modules to accomplish much more advanced tasks.
https://modrinth.com/mod/pretty-pipes
MIT License
21 stars 19 forks source link

[Suggestion] Generify "items" travelling through pipes for addon purposes #161

Open Quarris opened 2 years ago

Quarris commented 2 years ago

please it make addons ez mode

Ellpeck commented 2 years ago

Note to self: My current idea is to expand the TYPES registry to PipeItemType, which allows constructing and loading PipeItem instances like now, but also allows adding additional capabilities, checks, and abilities to pipes and pipe networks by iterating each registered pipe item type when checking for abilities. I'd also like to get rid of IPipeItem and turn PipeItem into an abstract class that shares all important values like position, path compiling, and start and goal inventory caches.