clarify function names

This commit is contained in:
DBotThePony 2022-09-09 12:59:29 +07:00
parent 41c8172375
commit 01e861032e
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -79,7 +79,7 @@ fun onPostScreenInit(event: ScreenEvent.Init.Post) {
event.addListener(widget)
whileClient({ minecraft.screen == screen }) {
tickWhileClient({ minecraft.screen == screen }) {
widget.panel.x = screen.guiLeft + screen.xSize + 2f
widget.panel.y = screen.guiTop.toFloat()
}
@ -127,19 +127,19 @@ fun tickClientPre(ticker: IConditionalTickable) {
preTickList.add(ticker, LOGGED_IN, "Not logged in")
}
fun untilClient(ticker: () -> Boolean) {
fun tickUntilClient(ticker: () -> Boolean) {
tickClient(IConditionalTickable.wrap(ticker))
}
fun untilClientPre(ticker: () -> Boolean) {
fun tickUntilClientPre(ticker: () -> Boolean) {
tickClientPre(IConditionalTickable.wrap(ticker))
}
fun whileClient(condition: () -> Boolean, ticker: () -> Unit) {
fun tickWhileClient(condition: () -> Boolean, ticker: () -> Unit) {
tickClient(IConditionalTickable.wrap(condition, ticker))
}
fun whileClientPre(condition: () -> Boolean, ticker: () -> Unit) {
fun tickWhileClientPre(condition: () -> Boolean, ticker: () -> Unit) {
tickClientPre(IConditionalTickable.wrap(condition, ticker))
}