minecraft

AbstractMethodError on resultset.getObject

亡梦爱人 提交于 2019-12-01 18:07:36
So I'm building a minecraft plugin, one part of the plugin grabs a bunch of block data from mysql and loads it into a cache when the server starts. I have a bit of code that runs fine in eclipse test cases. However when I load the plugin in a local minecraft server the I get the exception. java.lang.AbstractMethodError: Method com/mysql/jdbc/JDBC4ResultSet.getObject(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object; is abstract at com.mysql.jdbc.JDBC4ResultSet.getObject(JDBC4ResultSet.java) ~[spigot-1.8.8.jar:git-Spigot-db6de12-d3e0b6f] at fws.plugins.trigger.database.ModelDB

AbstractMethodError on resultset.getObject

不想你离开。 提交于 2019-12-01 17:49:45
问题 So I'm building a minecraft plugin, one part of the plugin grabs a bunch of block data from mysql and loads it into a cache when the server starts. I have a bit of code that runs fine in eclipse test cases. However when I load the plugin in a local minecraft server the I get the exception. java.lang.AbstractMethodError: Method com/mysql/jdbc/JDBC4ResultSet.getObject(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object; is abstract at com.mysql.jdbc.JDBC4ResultSet.getObject(JDBC4ResultSet

C# ping minecraft

丶灬走出姿态 提交于 2019-12-01 15:28:08
问题 So found this little code snippet that would allow you to ping a Minecraft server in PHP, but now i want to do this in C#. I tried doing this on my own but for some reason its just not working UdpClient client = new UdpClient(); IPEndPoint ep; try { ep = new IPEndPoint(IPAddress.Parse("-snip-"), -snip-); client.Connect(ep); } catch { Console.WriteLine("Error"); Console.ReadLine(); return; } byte[] bytes = new byte[1]; bytes[0] = (byte)0xFE; client.Send(bytes, bytes.Length); IPEndPoint rep =

How to do face removal in a unit-cube world a la Minecraft?

怎甘沉沦 提交于 2019-11-30 08:30:33
Important note: This question is NOT about geometry culling (frustrum culling, back face culling, occlusion culling or any of their friends.) This question is about geometry elimination at set-up time, long before we get to culling and rendering. In a unit-cube rendered world ( a la MineCraft), I'm trying to find algorithms for how to remove from my list of geometry faces that can't possibly be seen from any angle, no matter where the camera is. For example, imagine 2 squares: +----+ +----+ | | | | | | | | +----+ +----+ clearly there are 8 visible sides (4 on each square.) Now I move the

How to do face removal in a unit-cube world a la Minecraft?

一笑奈何 提交于 2019-11-29 11:29:06
问题 Important note: This question is NOT about geometry culling (frustrum culling, back face culling, occlusion culling or any of their friends.) This question is about geometry elimination at set-up time, long before we get to culling and rendering. In a unit-cube rendered world ( a la MineCraft), I'm trying to find algorithms for how to remove from my list of geometry faces that can't possibly be seen from any angle, no matter where the camera is. For example, imagine 2 squares: +----+ +----+ |

Constructing and sending binary data over network

孤人 提交于 2019-11-29 00:37:58
I am creating a command-line client for minecraft. There is a full spec on the protocol that can be found here: http://mc.kev009.com/Protocol . To answer your question beforehand, yes I am a bit of a C++ noob. I have various issues in implementing this protocol, of which each critical. The protocol says that all types are big-endian. I have no idea how I should check whether my data is little-endian and if yes how to convert to big-endian. The string datatype is a bit weird one. It's a modified UTF-8 string which is preceded by a short containing the string length. I have no idea how I should

How to create native binaries for your Java app? [duplicate]

馋奶兔 提交于 2019-11-28 21:58:19
This question already has an answer here: How can I convert my Java program to an .exe file? [closed] 13 answers I'm wondering how to package a Java application into a native binary for Windows, Linux and Mac OS X. I know Minecraft does this, but I can't figure out how. This is what'd I'd like to do: From NetBeans (preferably) or Eclipse, build the three binaries automatically. Include native libraries for OpenGL et. all. Obfuscate my code if possible. If there's some way to mimic the Minecraft auto-updater feature, that'd be totally awesome. So, are there any tools available to do this for

How to redirect DNS to different ports

眉间皱痕 提交于 2019-11-28 15:43:22
I own the domain "Arboristal.com". I also own all sub domains privately on arboristal.com. Such as lg.arboristal or ft.arboristal.com. Under my DNS settings, Arboristal.com is set to go to our web host who is currently hosting our website. I have three servers running at my house all running under one public IP address. (71.82.237.27) I also have three subdomains of Arboristal.com pointing towards my IP address. Each of the three servers run on their own ports (25565, 25566, 25567) I want for each subdomain to point to each open port on my IP Address. Unfortunately when you try to connect to

I keep getting a “The operator == is undefined for the argument type(s) boolean, int” and have no idea how to fix it

让人想犯罪 __ 提交于 2019-11-28 14:21:26
I keep getting a "The operator == is undefined for the argument type(s) boolean, int" in this bit of code at line 3: public void loadState(int i) { if (statesSaved[i] == 0) { return; } List list = TMIUtils.getMinecraft().h.at.e; for (int j = 0; j < 44; j++) { sx slot = (sx)list.get(j + 1); slot.c(null); ul itemstack = TMIUtils.copyStack(states[i][j]); if ((itemstack == null) || (itemstack.c < 0) || (itemstack.c >= sv.f.length) || (sv.f[itemstack.c] == null)) continue; slot.c(itemstack); } } I have no idea why this happens, since i have another class file with the same thing where there is no

error: no suitable constructor found for

て烟熏妆下的殇ゞ 提交于 2019-11-28 12:53:55
I am new to java, and am trying to make a mod for Minecraft, but I can't figure out how I can fix this error: src\minecraft\net\minecraft\src\ThreadConnectToServer.java:39: error: no suitabl e constructor found for Packet2ClientProtocol(int,Minecraft,String,String,int) GuiConnecting.getNetClientHandler(this.connectingGui).addToSendQueue (new Packet2ClientProtocol(51, GuiConnecting.func_74254_c(this.connectingGui), t his.Username, this.ip, this.port)); ^ constructor Packet2ClientProtocol.Packet2ClientProtocol(int,String,int) is n ot applicable (actual and formal argument lists differ in length)