Skip to content

Commit

Permalink
feat: tooltipChunked
Browse files Browse the repository at this point in the history
  • Loading branch information
andantet committed Nov 11, 2024
1 parent 8dd531e commit d98c665
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ kotlin_version=2.0.21
fabric_kotlin_version=1.12.3

# mod properties
mod_version=1.3.13
mod_version=1.3.14
maven_group=net.mcbrawls
mod_id=slate
7 changes: 7 additions & 0 deletions src/main/kotlin/net/mcbrawls/slate/tile/Tile.kt
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ abstract class Tile {
tooltip(tooltips.toList())
}

/**
* Builds a chunked tooltip.
*/
inline fun tooltipChunked(builder: MutableList<TooltipChunk>.() -> Unit) {
tooltip(mutableListOf<TooltipChunk>().apply(builder))
}

/**
* Adds a click callback for the given click type.
*/
Expand Down

0 comments on commit d98c665

Please sign in to comment.