UpdateEventLib 2018-03-23

Create easier and more functional updates on things

  1. facemywrath
    Tested Minecraft Versions:
    • 1.11
    • 1.12
    UpdateEventLib is a library which allows a player to listen for the UpdateEvent, an event which is ran ever second and every tick.

    You can use the standard:
    Code (Text):
    @EventHandler
    public void eventName(UpdateEvent event)
    {
        //Do Stuff
    }
    With this you can use getReason() to return an UpdateReason of TICK or SECOND. Or you can create your own updates every custom amount of ticks and listen for them by creating a Timer object in main and insert a custom string as the name of the timer. If you do not create a custom timer using a name the getName() function will return null.
    Jumbo_1907 likes this.