Package net.minecraft.world.level.block
Interface SelectableSlotContainer
- All Known Implementing Classes:
ChiseledBookShelfBlock,ShelfBlock
public interface SelectableSlotContainer
-
Method Summary
Modifier and TypeMethodDescriptionintdefault OptionalIntgetHitSlot(BlockHitResult pHitResult, Direction pDirection) getRelativeHitCoordinatesForBlockFace(BlockHitResult pHitResult, Direction pDirection) intgetRows()private static intgetSection(float pPos, int pCount)
-
Method Details
-
getRows
int getRows() -
getColumns
int getColumns() -
getHitSlot
-
getRelativeHitCoordinatesForBlockFace
private static Optional<Vec2> getRelativeHitCoordinatesForBlockFace(BlockHitResult pHitResult, Direction pDirection) -
getSection
private static int getSection(float pPos, int pCount)
-