▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/TimerAPI
TimerAPI

TimerAPI

An api easily create and coding as simple to timer.

709
2

TimerAPI

An api easily create and coding as simple to timer.

Features

  • On start, end and tick handling
  • Method chain writing
  • Some utility methods
  • Run timer as async

Usage

Add below to build.gradle.kts.

repositories {
    maven("https://repo.chihuyu.love/snapshots/")
}
dependencies {
    compileOnly("love.chihuyu:TimerAPI:1.4.1-SNAPSHOT")
}

Example

// this timer length is 180 * 20(1sec) = 3600tick(3min)
val timer = TimerAPI.build("wait ramen", duration = 180, period = 20, delay = 0)
    .start {
        hotWater.drip()
    }
    .tick {
        some()
    }
    .end {
        ramen.eat()
    }

timer.run()

Support

If you need any help or want to share some ideas to add, just DM me!

Discord: @hirosukt

Совместимость

Minecraft: Java Edition

1.21.x1.20.x1.19.x1.18.x1.17.x1.16.x1.15.x1.14.x1.13.x1.12.x1.11.x1.10.x1.9.x1.8.x

Платформы

Поддерживаемые окружения

Сервер

Создатели

Детали

Лицензия:LicenseRef-All-Rights-Reserved
Опубликован:2 года назад
Обновлён:2 года назад
Главная