This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
AbstractBlock::getShape(BlockState, IBlockReader, BlockPos, ISelectionContext) | |
The primary shape for "selection" raytraces, like clicking a block. | |
Defaults to a full cube. Delegated to by AbstractBlockState::getShape(IBlockReader, BlockPos, ISelectionContext) | |
Most of the other shape getters either default to this or default to empty, | |
so just overriding this shape getter is sufficient if finer variations aren't needed. | |
AbstractBlock::getCollisionShape(BlockState, IBlockReader, BlockPos, ISelectionContext) | |
The primary shape for collision raytraces. | |
Delegated to by AbstractBlockState::getCollisionShape(IBlockReader, BlockPos, ISelectionContext) |