Jump to content

help updating tick handler


jamiemac262

Recommended Posts

okay, so after a week's work i am finally down to my last 10 errors on the Sim-U-Kraft Mod.

 

i cannot find a single tutorial or helpful topic on the internet to explain to me how to update this "CommonTickHandler" class to 1.7.

 

here is the section of the class that is fill of errors:


    @Override
    public void tickStart(EnumSet<TickType> type, Object... tickData)
    {
    }

    @Override
    public void tickEnd(EnumSet<TickType> type, Object... tickData)
    {
        if (type.equals(EnumSet.of(TickType.SERVER)))
        {
            onTickInGame();
        }

        if (type.equals(EnumSet.of(TickType.WORLDLOAD)))
        {
            System.out.println("WorldLoad event tick");
        }
    }

    @Override
    public EnumSet<TickType> ticks()
    {
        return EnumSet.of(TickType.SERVER, TickType.WORLDLOAD); //add more types?
    }


    public String getLabel()
    {
        return "CommonTickHandler";
    }
}

 

could anybody help me out here?

 

it looks like the "TickType" class doesn't exist anymore

 

i also have errors with "tickStart(....)" and "tickEnd(....)"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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