Package net.fabricmc.fabric.api.block
Interface BlockPickInteractionAware
public interface BlockPickInteractionAware
Convenience interface for blocks that want more stack picking context than what
Block.getPickStack(BlockView, BlockPos, BlockState)
provides.
The hit result is guaranteed to be a BlockHitResult
that did not miss.
-
Method Summary
Modifier and TypeMethodDescriptiongetPickedStack
(BlockState state, BlockView view, BlockPos pos, PlayerEntity player, HitResult result)
-
Method Details
-
getPickedStack
ItemStack getPickedStack(BlockState state, BlockView view, BlockPos pos, PlayerEntity player, HitResult result)
-