Class ExpandLeftClickEmptyEvent

java.lang.Object
com.blamejared.crafttweaker.natives.event.interact.ExpandLeftClickEmptyEvent

@ZenRegister public class ExpandLeftClickEmptyEvent extends Object
This event is fired when a player left clicks while targeting a block. This event controls which of BlockBehaviour.attack(BlockState, Level, BlockPos, Player) and/or the item harvesting methods will be called. Note that if the event is canceled and the player holds down left mouse, the event will continue to fire. This is due to how vanilla calls the left click handler methods. Also note that creative mode directly breaks the block without running any other logic.
DocEvent:
canceled none of the above noted methods to be called.
  • Field Details

    • BUS

      public static final IEventBus<net.minecraftforge.event.entity.player.PlayerInteractEvent.LeftClickEmpty> BUS
  • Constructor Details

    • ExpandLeftClickEmptyEvent

      public ExpandLeftClickEmptyEvent()