Interface SelectableSlotContainer
- All Known Implementing Classes:
ChiseledBookShelfBlock, ShelfBlock
public interface SelectableSlotContainer
-
Method Summary
Modifier and TypeMethodDescriptionintdefault OptionalIntgetHitSlot(BlockHitResult hitResult, Direction blockFacing) getRelativeHitCoordinatesForBlockFace(BlockHitResult hitResult, Direction blockFacing) intgetRows()private static intgetSection(float relativeCoordinate, int maxSections)
-
Method Details
-
getRows
int getRows() -
getColumns
int getColumns() -
getHitSlot
-
getRelativeHitCoordinatesForBlockFace
private static Optional<Vec2> getRelativeHitCoordinatesForBlockFace(BlockHitResult hitResult, Direction blockFacing) -
getSection
private static int getSection(float relativeCoordinate, int maxSections)
-