LiquidBounce's ScriptApi defines non-function as function
-
LiquidBounce's ScriptApi JavaDoc (https://scriptapi.liquidbounce.net/net/minecraft/network/play/server/S38PacketPlayerListItem.html) tells me that func_179768_b() is defined on S38PacketPlayerListItem and returns some S38PacketPlayerListItem.Action
but when i call it, it throws an error.. any ideas?
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 } }) }) -
LiquidBounce's ScriptApi JavaDoc (https://scriptapi.liquidbounce.net/net/minecraft/network/play/server/S38PacketPlayerListItem.html) tells me that func_179768_b() is defined on S38PacketPlayerListItem and returns some S38PacketPlayerListItem.Action
but when i call it, it throws an error.. any ideas?
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 } }) })@somedudeyouveneverheardof According to mcp-stable_22.srg located in LiquidBounce-1.8.9 folder, you should call
getAction()instead offunc_179768_b().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; -
K kaduvert has marked this topic as solved on
-
@somedudeyouveneverheardof According to mcp-stable_22.srg located in LiquidBounce-1.8.9 folder, you should call
getAction()instead offunc_179768_b().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;
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login