Ticks
Class: UnifiedClientEvents.Ticks
Runs when the client ticks. atEnd Can be useful for providing custom functionality to Key Mappings.
Methods
UnifiedEvents.Tick.onStart(minecraft -> {
// your custom behaviour here
});
UnifiedEvents.Tick.onEnd(minecraft -> {
// your custom behaviour here
});Example
UnifiedEvents.EndTick.atEnd(minecraft -> {
// your custom behaviour here
while (ModKeyMappings.EXAMPLE_KEY.get().consumeClick()) {
// custom keybind behaviour
}
});