Posted July 2, 201510 yr Is it possible to make an update method in my mod's main class? I want to check for stuff such as if a player is wearing iron armor, or if they're outside. Most update methods I know of are in custom item/block classes themselves, I don't want that. So, is it possible to have an update method in the main class?
July 2, 201510 yr Events might be your best bet https://dl.dropboxusercontent.com/s/h777x7ugherqs0w/forgeevents.html Preferably the livingUpdateEvent might handle what you need. Currently updating my Mod to 1.10.2 https://bitbucket.org/hugo_the_dwarf/riseoftristram2016/src?at=master
July 2, 201510 yr If you only want to handle the player update tick and no other entities, you should use PlayerTickEvent (on the FML bus) rather than LivingUpdateEvent - the latter is fired for every single living entity and is overkill just to update the player. http://i.imgur.com/NdrFdld.png[/img]
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.