@SubscribeEvent
public static void onPlayerDealDamage(LivingAttackEvent e)
{
if(e.getSource().getEntity() instanceof ServerPlayerEntity)
{
ServerPlayerEntity player = (ServerPlayerEntity) e.getSource().getEntity();
boolean isFullSet = true;
for(ItemStack itemStack:player.inventory.armor)
{
if(!(itemStack.getItem() instanceof ArmorItem))
{
isFullSet = false;
}
}
if(isFullSet)
{
if(e.getSource() == DamageSource.WITHER)
{
e.amount *= 1.3f;
}
}
}
}