Jump to content

Recommended Posts

Posted

Hello I have made a tick handler with the PlayerTickEvent and I have every thing setup, but when I went to test it I found out that the event is not being initialized. I use this: MinecraftForge.EVENT_BUS.register(new RCTickHandler()); to initialize it and this is my method :

 

@SubscribeEvent

public void PlayerTickEvent(PlayerTickEvent event) {

System.out.println("tetstjlfjsdjfsjfd");

 

if(event.side.equals(event.side.CLIENT))

TickPlayerClient(event.player);

if(event.side.equals(event.side.SERVER))

TickPlayerServer((EntityPlayerMP) event.player);

}

The method doesn't print anything out. Also I believe that I am initializing it in the right place because all of my other event stuff works fine.

Don't be afraid to ask question when modding, there are no stupid question! Unless you don't know java then all your questions are stupid!

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.