<?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[LiquidBounce&#x27;s ScriptApi defines non-function as function]]></title><description><![CDATA[<p dir="auto">LiquidBounce's ScriptApi JavaDoc (<a href="https://scriptapi.liquidbounce.net/net/minecraft/network/play/server/S38PacketPlayerListItem.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://scriptapi.liquidbounce.net/net/minecraft/network/play/server/S38PacketPlayerListItem.html</a>) tells me that func_179768_b() is defined on S38PacketPlayerListItem and returns some S38PacketPlayerListItem.Action</p>
<p dir="auto">but when i call it, it throws an error.. any ideas?</p>
<pre><code>var tablistItem = Java.type('net.minecraft.network.play.server.S38PacketPlayerListItem')

script.registerModule({
	name: 'Example',
	category: 'Misc',
	description: ''
}, function (module) {
	module.on('packet', function(e) {
		var packet = e.getPacket()
		if (packet instanceof tablistItem) {
			var action = packet.func_179768_b()
			// throws TypeError: packet.func_179768_b is not a function
		}
	})
})
</code></pre>
]]></description><link>https://forum.liquidbounce.net/topic/7373/liquidbounce-s-scriptapi-defines-non-function-as-function</link><generator>RSS for Node</generator><lastBuildDate>Tue, 16 Jun 2026 09:01:58 GMT</lastBuildDate><atom:link href="https://forum.liquidbounce.net/topic/7373.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 08 Jan 2023 10:40:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to LiquidBounce&#x27;s ScriptApi defines non-function as function on Sun, 08 Jan 2023 10:54:46 GMT]]></title><description><![CDATA[<p dir="auto">@somedudeyouveneverheardof According to mcp-stable_22.srg located in LiquidBounce-1.8.9 folder, you should call <code>getAction()</code> instead of  <code>func_179768_b()</code>.</p>
<pre><code>MD: net/Minecraft/network/play/server/S38PacketPlayerListItem/getAction ()Lnet/Minecraft/network/play/server/S38PacketPlayerListItem$Action; net/minecraft/network/play/server/S38PacketPlayerListItem/func_179768_b ()Lnet/Minecraft/network/play/server/S38PacketPlayerListItem$Action;
</code></pre>
]]></description><link>https://forum.liquidbounce.net/post/37256</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/37256</guid><dc:creator><![CDATA[CzechHek]]></dc:creator><pubDate>Sun, 08 Jan 2023 10:54:46 GMT</pubDate></item><item><title><![CDATA[Reply to LiquidBounce&#x27;s ScriptApi defines non-function as function on Sun, 08 Jan 2023 11:31:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/czechhek" aria-label="Profile: CzechHek">@<bdi>CzechHek</bdi></a> thanks! that worked</p>
<p dir="auto">but why is the scriptapi incorrect? couldn't it be fixed?</p>
]]></description><link>https://forum.liquidbounce.net/post/37257</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/37257</guid><dc:creator><![CDATA[kaduvert]]></dc:creator><pubDate>Sun, 08 Jan 2023 11:31:18 GMT</pubDate></item><item><title><![CDATA[Reply to LiquidBounce&#x27;s ScriptApi defines non-function as function on Sun, 08 Jan 2023 10:54:46 GMT]]></title><description><![CDATA[<p dir="auto">@somedudeyouveneverheardof According to mcp-stable_22.srg located in LiquidBounce-1.8.9 folder, you should call <code>getAction()</code> instead of  <code>func_179768_b()</code>.</p>
<pre><code>MD: net/Minecraft/network/play/server/S38PacketPlayerListItem/getAction ()Lnet/Minecraft/network/play/server/S38PacketPlayerListItem$Action; net/minecraft/network/play/server/S38PacketPlayerListItem/func_179768_b ()Lnet/Minecraft/network/play/server/S38PacketPlayerListItem$Action;
</code></pre>
]]></description><link>https://forum.liquidbounce.net/post/37256</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/37256</guid><dc:creator><![CDATA[CzechHek]]></dc:creator><pubDate>Sun, 08 Jan 2023 10:54:46 GMT</pubDate></item></channel></rss>