Interface IShiftScrollable
- All Known Implementing Classes:
JackHammerItem,MinigunItem
public interface IShiftScrollable
-
Method Summary
Modifier and TypeMethodDescriptionvoidonShiftScrolled(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 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 which implements this interface.- Parameters:
player- player doing the shift-scrollingforward- true if the mouse wheel was rotated up, false if rotated downhand- hand in which the item is held
-