Jump to content

hydroflame

Members
  • Posts

    1511
  • Joined

  • Last visited

Everything posted by hydroflame

  1. yeah what i mean was: when the world is corrupted: get a reference to that hashmap (using reflection) then renderMap.put(EntityClass, infectedRenderer)
  2. lol... lololol.... hmm.. lolol .. lol model.render(); yup ...
  3. well ok so at some point you will set a new nbt to yout bagpack ... but nothign is ever set inside that :\ so what you have to do is something like this: Code: [select] ItemStack toStore ItemStack bagpack; toStore.writeToNBT(bagpack.getTagCompound()); that will take the first itemStack and write it inside the tagCompound of the bagpack.
  4. someone correct me if im wrong but i think every client use the exact same player.dat try it with a real server software and 2 client (you can open the server via ecipse by pressing the smaller arrow next to the green one)
  5. well onChestClose would be the whole "save" part
  6. are you starting a server and 2 client or only the client program ?
  7. ok :\ i know you CAN do it, but not how but what you have to do is check the meta of the item before allow it to be used as repair material :\ sorry
  8. put it in closeChest -> see what it does -> debug
  9. yeah thats my tutorial, i dont do the "100% correct beautiful working code" i just research on how it should work and why it works, so you can expect code from my tutorials to NOT work... yeah, basicly the copy you copy pasta does nothing, look at the Tessellator tutorial to see how to render a face, then you should be able to figure which face you want to render
  10. yeah we noticed your a bukkit coder, you're using commands .... but you could always just set a boolean in the nbt to true if the player has played. and check with the IPlayerTracker if its true when he enters the world
  11. that actually simple, your for loop should work but your List does not specify a generic type google "java generic types" and you should find a butload of info on that but basicly you want to make a private List<BrewingRecipe> theList; instead of a private List theList; the first one specify its a list of Brewing recipe while the 2nd will accept anything :\
  12. do you understand what the code me n gotolink are talking about ? do you understand what it does ? if not which part are you still confused with ? how are your java skills? beginner intermediate advance ? because maybe its just a question of practice to know what to place where did you try anything ? println to see what placing the code at certain place does ?
  13. what does that mean, the texture stays the same, the block becomes invisible ? code ? pictures ?
  14. yeah, sooo why dont you set a starting element for everyone with a IPlayerTracker, then tell new players to call that command to pick one.
  15. ok... well not to be mean but you are kinda taking this code public static void doStuff(){ //tottally empty } and expecting it to print "hello world" of course if you dont ask it anything it wont do anything, its a computer, its completelly void of any intelligence, it will do exactly what you ask it to (and if its nothign well nothign will happen)
  16. cant you just use a IPlayertracker to override whatever this weird system does ? like manually place a starting element ?
  17. the class "RenderManager" has a hashmap with all entities and their respective render class /** A map of entity classes and the associated renderer. */ public Map entityRenderMap = new HashMap(); /** The static instance of RenderManager. */ public static RenderManager instance = new RenderManager(); private RenderManager() { this.entityRenderMap.put(EntityCaveSpider.class, new RenderCaveSpider()); (some of the code was removed btw) maybe you could just get that render manager and manually override the class you want to render differently ?
  18. "somewhere" literally, the NullPointerException is due to that you are trying to call a method on a object that doesnt exists this mean "yeah i have a IBreingManager" (but only that i have one, it doesnt say what or who it is) then you go and the JVM goes ragemode yelling WHO THE F*** ARE YOU TALKING ABOUT, THERE'S NOTHING THERE !!! so probably in your main mod class during preinit or wtv you should make: CraftingManager.brewery = new BrewingManager(); actually it doesnt matter WHERE you place that, as long as its before line 44 of the method preInit in class DrinksCore. because thats when the code needs it
  19. ahh, ok, well thats a good starting point, now whats the content of this class ? because if theres nothing well .. no this its going to be all invisible also did you look on the wiki for the tessellator tutorial ? and the ISimpleBlockRenderingHandler tutorial ?
  20. well i guess you could place that inside closechest suince your onContainerClosed calls this anyway, but basicly anywhere where it should make sens to do it. as long as it works
  21. where do you create the instance of this ? aka where the brewery = new wtv();
  22. well you have to place it where it makes sens, obviously this probably wont go inside a new mob you create. whats the goal of the bagpack, to store 1 item ? 20 item ? 500 items? i imagine you want the content to be updated in the bagpack when you close the gui, the Container class has a onContainerClosed method, might be a good idea to save there, maybe you should be loading when the container opens ?
  23. what exactly did you do. because registering a ISimpleBlockRenderingHandler isnt particularelly hard, unless you lack the basic java knowledge to naviguate the code :\ did you create the new class ? did you try to register it ? did you debug a little to see where it could fail ?
  24. 2013-08-19 16:16:17 [sTDERR] java.lang.NullPointerException 2013-08-19 16:16:17 [sTDERR] at RV97.Drinks.Liquids.registerLiquidRecipes(Liquids.java:33) can we see those lines ?, actually the whole class and everythign related to it, its a NPE it shouldnt be that hard
  25. well ok so at some point you will set a new nbt to yout bagpack ... but nothign is ever set inside that :\ so what you have to do is something like this: ItemStack toStore ItemStack bagpack; toStore.writeToNBT(bagpack.getTagCompound()); that will take the first itemStack and write it inside the tagCompound of the bagpack. to read it from the nbt: ItemStack s; s.readFromNBT(bagpack.getTagCompound()); if you are dealing with a IInventory:
×
×
  • Create New...

Important Information

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