clarify function names
This commit is contained in:
parent
41c8172375
commit
01e861032e
@ -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))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user