Interface InteractionEvents.AttackBlock

Enclosing class:
InteractionEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface InteractionEvents.AttackBlock
A player starts hitting a block (the first click, not each tick of breaking it); interrupting stops it.
  • Method Summary

    Modifier and Type
    Method
    Description
    onAttackBlock(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction face)
     
  • Method Details

    • onAttackBlock

      EventResult onAttackBlock(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction face)