The NyaLib Block module contains various features relating to blocks and extending their functionality.
Features
- Voxel Shapes - allows for combining of multiple Axis Aligned Bounding Boxes to create more complex shapes
BlockEntityInit- an interface which can be implemented on aBlockEntitycontaining aninit(BlockState)method which is called when theBlockEntityis either initialized or when it’s loaded from NBT after the world and coordinate fields have been setHasBlockEntity- an interface which can be implemented on aBlockwhich serves as an alternative to extending theTemplateBlockWithEntityclass, also providing more context like the world and coordinates in thecreateBlockEntitymethodRedstoneLevelProvider- an interface which can be implemented on aBlockto allow it to output any strength of a redstone signal rather than the default on/off behavior