Shared capabilities for tiles and items
rubensworks opened this issue ยท 1 comments
Using @NBTPersist, automatically create a capability that is shared across tiles and items so that they can be used similarly and share logic.
@NBTPersist should have an additional parameter to select if this field should be persisted after block breaking or not.
Make something like TileComponents
, that can tick are NBT serializable and can provide capabilities. This can then be used for reusable components like tanks and inventories.