<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Accessing non-class kotlin functions]]></title><description><![CDATA[<p dir="auto">There are these functions in LB source code that I want to access from a script, but since they're not Java/Kotlin classes, so how do I use them? I guess I could rewrite them in js, but bleh.</p>
<p dir="auto">Example: raytraceBlock from <a href="https://github.com/CCBlueX/LiquidBounce/blob/nextgen/src/main/kotlin/net/ccbluex/liquidbounce/utils/aiming/RotationFinding.kt" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/CCBlueX/LiquidBounce/blob/nextgen/src/main/kotlin/net/ccbluex/liquidbounce/utils/aiming/RotationFinding.kt</a></p>
]]></description><link>https://forum.liquidbounce.net/topic/8171/accessing-non-class-kotlin-functions</link><generator>RSS for Node</generator><lastBuildDate>Sat, 10 Oct 2026 11:20:34 GMT</lastBuildDate><atom:link href="https://forum.liquidbounce.net/topic/8171.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 17 Jun 2024 13:03:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Accessing non-class kotlin functions on Mon, 17 Jun 2024 15:37:10 GMT]]></title><description><![CDATA[<p dir="auto">I figured it out, lol. Just have to do</p>
<pre><code>Java.type("net.ccbluex.liquidbounce.utils.aiming.RotationFindingKt");
</code></pre>
<p dir="auto">a.k.a.: add <code>[filename]Kt</code> at the end of the type cause that's just how Kotlin works.</p>
]]></description><link>https://forum.liquidbounce.net/post/39445</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/39445</guid><dc:creator><![CDATA[karkov]]></dc:creator><pubDate>Mon, 17 Jun 2024 15:37:10 GMT</pubDate></item></channel></rss>