Jump to content

Nightstag

Members
  • Posts

    12
  • Joined

  • Last visited

Posts posted by Nightstag

  1. I was trying to use it for calling a method when a key is pressed, (or just running it in onUpdate, whatever) and I chose onUpdate because it had, in the past I think, a parameter for the player. (Whick a tickhandler does not have/support, afaik)

  2. So I'm attempting to use the onUpdate method, which, of course, requires @Override. However, I get an error stating that I need to override or implement a supertype method. So, of course, I type

     

    super.onUpdate(itemstack, world, player, par1, par2);

     

    I then get another error, stating that this method (onUpdate(ItemStack, Entity, int, boolean)) is undefined for the type object. Am I using the wrong parameters, or do I need to implement something else? Thanks.

     

     

×
×
  • Create New...

Important Information

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