I need to run code each tick for every entity, including entities that don't extend EntityLivingBase (arrows for example). I do not need this handler to work on particles, but it is fine if it does. Looking through the forge code, the only relevant Event is LivingUpdateEvent, which only works on EntityLivingBase. Is there a way to do what I want without ASM? If not, could someone point me in the correct direction for learning how to do the necessary ASM? Thanks in advance.
I don't think that would work for my purposes, because I need the ability to cancel the entity update (I'm making something to speed up/slow down entities in an area). When using the ServerTickEvent, I don't have that power as far as I can tell.
I don't think that would work for my purposes, because I need the ability to cancel the entity update (I'm making something to speed up/slow down entities in an area). When using the ServerTickEvent, I don't have that power as far as I can tell.
for that to work you'll need to ASM the ServerTickEvent to not cause updates for some of the entities..
I need to run code each tick for every entity, including entities that don't extend EntityLivingBase (arrows for example). I do not need this handler to work on particles, but it is fine if it does. Looking through the forge code, the only relevant Event is LivingUpdateEvent, which only works on EntityLivingBase. Is there a way to do what I want without ASM? If not, could someone point me in the correct direction for learning how to do the necessary ASM? Thanks in advance.
You may be able to abuse the ServerTickEvent by iterating through all the worlds and getting the list of currently loaded entities
I don't think that would work for my purposes, because I need the ability to cancel the entity update (I'm making something to speed up/slow down entities in an area). When using the ServerTickEvent, I don't have that power as far as I can tell.
for that to work you'll need to ASM the ServerTickEvent to not cause updates for some of the entities..
--EDIT Never mind, I think I found a good one--
Is there any source you would recommend for learning how to do ASM with breaking everything?
Well, the official page references some tutorials, and also the documentation