Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow use of BlockEntityType for registering components on block entities. #63

Open
i509VCB opened this issue Nov 8, 2020 · 0 comments
Labels
components-block enhancement New feature or request

Comments

@i509VCB
Copy link

i509VCB commented Nov 8, 2020

Currently CCA uses the block entity class to identify a block entity for registering components. However this has some issues due to limiting the types of supported block entities.

In one of my mods, I have moved to a builder system to create a block entity and it's corresponding blocks and items so I do not have a mess registering stuff. Simply I have two block entity implementations, one with an inventory and one without. This is preferable to me atleast since I can avoid having 20+ classes just for each type of block entity when the changes are anything but visual changes or changes in ticking logic which I can easily abstract.

A solution to this would be adding a parallel registration pipeline which allows for use of block entity types for attaching components to block entity instances.

@Pyrofab Pyrofab added components-block enhancement New feature or request labels Nov 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
components-block enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants