diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-19 13:57:16 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-19 13:57:16 +0100 |
commit | 25b6fe99c4d03c565bc8cb024c4b6e232203614d (patch) | |
tree | 148651d131c41acb5685638a82048d9d0a2bf8d4 /src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt | |
parent | fef46f5b4b6f6ade36dd56ebb39c199402f521b6 (diff) | |
download | skyhanni-25b6fe99c4d03c565bc8cb024c4b6e232203614d.tar.gz skyhanni-25b6fe99c4d03c565bc8cb024c4b6e232203614d.tar.bz2 skyhanni-25b6fe99c4d03c565bc8cb024c4b6e232203614d.zip |
Added farming contest timer
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt index 62a8c2c61..e5c06a6a8 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt @@ -492,6 +492,15 @@ object RenderUtils { } } + /** + * Accepts a single line to print. + * This line is a list of things to print. Can print String or ItemStack objects. + */ + fun Position.renderSingleLineWithItems(list: List<Any?>) { + if (list.isEmpty()) return + renderLine(list, 0) + } + private fun Position.renderLine(line: List<Any?>, offsetY: Int) { val renderer = Minecraft.getMinecraft().fontRendererObj val resolution = ScaledResolution(Minecraft.getMinecraft()) |