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