Class ClientHotbarScrollEvents
java.lang.Object
net.fabricmc.fabric.api.event.client.player.ClientHotbarScrollEvents
Events pertaining to using the scroll wheel in the hotbar to change the selected item.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Event<ClientHotbarScrollEvents.After> An event that is invoked after player scrolling changes the selected hotbar slot.static final Event<ClientHotbarScrollEvents.Allow> An event that checks whether the player's scrolling will change the selected hotbar slot.static final Event<ClientHotbarScrollEvents.Before> An event that is invoked before player scrolling changes the selected hotbar slot. -
Method Summary
-
Field Details
-
ALLOW
An event that checks whether the player's scrolling will change the selected hotbar slot.Returning
falsecancels the hotbar selection change without running anymore registered callbacks. -
BEFORE
An event that is invoked before player scrolling changes the selected hotbar slot.This event is only fired if the result of
ALLOWistrue. -
AFTER
An event that is invoked after player scrolling changes the selected hotbar slot.This event is only fired if the result of
ALLOWistrue.
-