[sorry this will be my last for a while] giving entities armor and ItemDamageEvent

ok, this will be my last for a while, I just wanna know, I tried
@EventHandler
public void GiveEntityArmor(EntityDamageEvent e){
Entity ent = e.getEntity();
if (!(ent instanceof Player)){
// I tried stuff like ent.getInventory and getArmor and stuff but it doesn't work, thank you!!
}
}
last, Is there a PlayerItemDamageEvent like in Bukkit?? Thank you!!
 

CreeperFace

🇨🇿🇺🇦 Слава Україні!
Staff member
ok, this will be my last for a while, I just wanna know, I tried
@EventHandler
public void GiveEntityArmor(EntityDamageEvent e){
Entity ent = e.getEntity();
if (!(ent instanceof Player)){
// I tried stuff like ent.getInventory and getArmor and stuff but it doesn't work, thank you!!
}
}
last, Is there a PlayerItemDamageEvent like in Bukkit?? Thank you!!
I'm afraid nukkit doesn't have such event implemented
 
Top