Interface IShiftScrollable

All Known Implementing Classes:
JackHammerItem, MinigunItem

public interface IShiftScrollable
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onShiftScrolled(net.minecraft.world.entity.player.Player player, boolean forward, net.minecraft.world.InteractionHand hand)
    Called both client- and server-side when a player shift-scrolls the mouse wheel, while holding an item (in main hand) which implements this interface.
  • Method Details

    • onShiftScrolled

      void onShiftScrolled(net.minecraft.world.entity.player.Player player, boolean forward, net.minecraft.world.InteractionHand hand)
      Called both client- and server-side when a player shift-scrolls the mouse wheel, while holding an item (in main hand) which implements this interface.
      Parameters:
      player - player doing the shift-scrolling
      forward - true if the mouse wheel was rotated up, false if rotated down
      hand -