So today I was updating my mod, The Creep Mod, and I was trying to sort out my custom teleporter class. I need to reference it in my portal block class, but I am having trouble registering it in my mod_CreepDimension.class. I put the following line outside of the load:
public static Teleporter par1TeleporterCreep = new TeleporterCreep();
That turns up a constructor error, so I assumed I needed more arguments, so I tried this:
public static Teleporter par1TeleporterCreep = new TeleporterCreep(TeleporterCreep.par1WorldServer);
That didn't work either. It couldn't find par1WorldServer in TeleporterCreep.class.
I tried a non-static variable. It detected it but spat out a static variable error. I really need help. Just for reference, here's the TeleporterCreep.class:
That turns up a constructor error, so I assumed I needed more arguments, so I tried this:
That didn't work either. It couldn't find par1WorldServer in TeleporterCreep.class.
I tried a non-static variable. It detected it but spat out a static variable error. I really need help. Just for reference, here's the TeleporterCreep.class:
And (if needed) the portal block class: