Jump to content

Tudedude

Members
  • Posts

    6
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Tudedude's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Just realized I was using an old source file. I'm very sorry for wasting your time
  2. Forgive me, I misunderstood what protected means. I do know a fair bit of Java, but am new to mod development after a long hiatus in which everything changed. I've never really had to use protected in my previous work, but I'll definitely revisit my access stuff. I also understand that the code changed, but the Potion class structure is really hard for me to understand I'm not really sure where it's pulling the constructor from, as the only one I see there is the constructor with three, so am I missing something?
  3. import net.minecraft.potion.Potion; public class BleedPot extends Potion{ public BleedPot(int par1, boolean par2, int par3) { super(par1, null, par2, par3); } public Potion setIconIndex(int par1, int par2) { super.setIconIndex(par1, par2); return this; } } It seems to be imported and constructed correctly, at least according to the tutorial. TBH, I don't even know where the constructor it's using is from, because the only constructor in the Potion class is protected, and has 3 arguments, and I haven't imported anything else 0_0
  4. Following this method: http://www.minecraftforum.net/forums/archive/tutorials/931752-forge-creating-custom-potion-effects I get an error, saying that the constructor is not found for the super constructor "super(par1, par2, par3); under the main potion constructor ( "public PotionYourmod(int par1, boolean par2, int par3){" ), and to add a ResourceLocation in between par1 and par2. In the Potion class itself, the constructor is only the 3 pars, but it is also protected so it can't be that method, right? Any insight into what might be going on? Edit - Looking back at that method, wth is the packet *.*; declaration? I've never seen that before, it brings up an error in Eclipse (unrecognized), and I can't find anything about it on Google...
  5. To be 100% honest, all of it lol. I've looked at the source, and it looks like the methods are protected, and all of the other methods I've found in tutorials haven't worked. Upon loading the client, it gives an NPE, pointing to my Potion object.
  6. I have Googled this multiple times I am completely unable to find current code that works for making custom potion effects in 1.8. Does anyone have any good examples?
×
×
  • Create New...

Important Information

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