Jump to content

Draco18s

Members
  • Posts

    16559
  • Joined

  • Last visited

  • Days Won

    156

Everything posted by Draco18s

  1. Putting quote marks around things does not make them important. http://www.unnecessaryquotes.com/
  2. And where is this function?
  3. If it's not a static variable, then you need a reference to an instance of that class.
  4. Technically SSP is SMP, the server is just on localhost. This has been true since 1.4 I believe. The annotation EnergyPulse gave you is not going to help you.
  5. Just to be a complete dick:
  6. It's like ChickenChunks. There's a core (the "api") and then there's each mod. Or BuildCraft. There's the base mod, then all the extensions (as child mods)
  7. That would be using the metadata. if(side == meta) {return front }
  8. Let's try the Forge version. Which I got to by opening up ModLoader.java and finding that function, because FML is just a remapping of ModLoader functions to Forge functions. LanguageRegistry.addStringLocalization(key, lang, value);
  9. Oh well. At least that line is floating around now for searches. I managed to find it only by accident when helping someone else. My question for you, if you've done it, is how do you localize the entity name? Mine keeps coming out as mod.[ent name].entityliving or somesuch.
  10. I've got a Git repository I can backtrack to, it's just annoying as hell at this point to do so, because the error I was working on fixing spans three different classes. Frak. Edit: Went back to my git version and still got the error. I think it's that save that's fubar'd.
  11. I think the idea is that he wants the function on vanilla blocks as well.
  12. While messing around with a data sorting and storage problem, this error started up. It happens once a tick and I have no idea why, as none of the code I'm working with deals with living entities (although I do have four in my mod, none of them should be in the world and last I checked, they rendered just fine). 2013-06-22 17:37:17 [iNFO] [sTDERR] java.lang.NullPointerException 2013-06-22 17:37:17 [iNFO] [sTDERR] at net.minecraft.client.renderer.entity.RenderLiving.func_77031_a(RenderLiving.java:136) 2013-06-22 17:37:17 [iNFO] [sTDERR] at net.minecraft.client.renderer.entity.RenderLiving.func_76986_a(RenderLiving.java:546) 2013-06-22 17:37:17 [iNFO] [sTDERR] at net.minecraft.client.renderer.entity.RenderManager.func_78719_a(RenderManager.java:310) 2013-06-22 17:37:17 [iNFO] [sTDERR] at net.minecraft.client.renderer.entity.RenderManager.func_78720_a(RenderManager.java:279) 2013-06-22 17:37:17 [iNFO] [sTDERR] at net.minecraft.client.renderer.RenderGlobal.func_72713_a(RenderGlobal.java:508) 2013-06-22 17:37:17 [iNFO] [sTDERR] at net.minecraft.client.renderer.EntityRenderer.func_78471_a(EntityRenderer.java:1150) 2013-06-22 17:37:17 [iNFO] [sTDERR] at net.minecraft.client.renderer.EntityRenderer.func_78480_b(EntityRenderer.java:991) 2013-06-22 17:37:17 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:871) 2013-06-22 17:37:17 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:760) 2013-06-22 17:37:17 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source)
  13. BlockDescriptor is a Mystcraft API class, it contains block ID, block metadata, and an instability function that returns an integer. I'm trying to sort the array from lowest to highest instability (so that the most unstable material is rarer than the more stable materials). For some reason, allBlocks[0] is ended up as the most unstable (between the 4 blocks I've been using as a test), but the rest of the array is sorted correctly. Input order is Dirt, Diamond Ore, Coal Ore, Birtch Logs (instability values of 0, 1000, 100, 0 respectively). Output order is Diamond Ore, Dirt, Birtch Logs, Coal Ore. What is wrong with my sort function?
  14. EntityList.addMapping(MobEntity.class, "Mob", mobID, baseColor, secondaryColor); Edit: Had the egg code wrong. This will work better. As for getting them into a custom tab, I don't know.
  15. Good luck doing it any other way. The way...Pahimar sets up his code might work, but I never got my eclipse working that way. And there's literally nothing bad about putting it with the rest of your source code. Yes it'll get reobfuscated, but you don't need to add it to your release zip.
  16. Download the API. Extract the zip into your /src/minecraft folder.
  17. Yes. TickRegistry.registerTickHandler(new MyGui(), Side.CLIENT);
  18. Or use MultiMC, MagicLauncher, or another mod manager.
  19. Like I said, twice. Both times server to client.
  20. Then you know more than I do. I've dealt with packets like twice, both times I used Packet250.
  21. TileEntity has this function called... public Packet getDescriptionPacket() { return null; } You need to overide that, have it create a packet with the new data, then PacketDispatcher.sendPacketToServer(packet) Which then the packet will asrive at the server and you'll need to override public void onDataPacket(INetworkManager net, Packet132TileEntityData pkt) { } To read the packet, and also send that data back to all players.
  22. You need the magic of PACKETS! And a packet handler! Packet250CustomPayload ahoy!
  23. The magic of Forge methods. EntityRegistry.addSpawn(...) EntityList.entityEggs.put(...)
  24. On neighbor changed -> isProvidingWeakPower(x, y, z)
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.