I don't doubt it, when I say I was a Forge noob I was serious, I didn't even know its existence yesterday morning
Actually I'm trying to monitor four type of events: when the player receive damage, when the player inflict damage, when the player die and when the player kill a mob. Every time one of these even happened, I want a file to be update as fast as possible. I only want that in the classic offline client side.
I won't have problem to create and update a file with java, I suppose I won't have problem with the event handler if I follow the tutorial (except if there were changes in envent handler between 1.8 and 1.10.2? ), and finally I just have to find the 4 events I need. I will see the descriptions and those you mention
But what did you mean by "extract attacker from DamageSource."?
EDIT: LivingAttackEvent you mention and LivingDeathEvent may be what I need, but when it says "a living entity", it mean it is trigger when a mob get damage but also when the player get damage? I saw getEntity get the identity of the source of the damage but I saw nothing to get the identity of the victim...
EDIT2: Ok, I get it, I saw the DamageSource source field in the description of LivingAttackEvent so this is the way to get the attacker identity... However when I write
@SubscribeEvent
public void onDamagesReceived(LivingAttackEvent e) {
e.
}
after e. eclipse propose me several methods like "getEntity(): Entity - EntityEvent", "getEntityLiving(): EntityLivingBase - LivingEvent" and "getSource(): DamageSource- LivingAttackAvent". Won't one of these give me the attacker identity?